Development

#4953 (Error in sqlite set up in sf_sandbox_1_2)

You must first sign up to be able to contribute.

Ticket #4953 (closed defect: fixed)

Opened 5 years ago

Last modified 5 years ago

Error in sqlite set up in sf_sandbox_1_2

Reported by: tdgsandf Assigned to: fabien
Priority: minor Milestone: 1.2.0 RC1
Component: other Version: 1.2.0 BETA2
Keywords: propel config Cc:
Qualification: Unreviewed

Description

config/propel.ini

and

config/databases.yml

in the sandbox have not been updated yet for propel 1.3 and/or other symfony 1.2 advances.

This means that the sandbox is not useable "out of the box".

The following changes will rectify this:

diff -ruN sf_sandbox/config/databases.yml new_sandbox/config/databases.yml
--- sf_sandbox/config/databases.yml     2008-11-10 21:49:30.000000000 +0000
+++ new_sandbox/config/databases.yml     2008-11-16 15:46:37.000000000 +0000
@@ -2,6 +2,4 @@
   propel:
     class:      sfPropelDatabase
     param:
-      phptype:  sqlite
-      database: %SF_DATA_DIR%/sandbox.db
-
+      dsn: sqlite://.//%SF_DATA_DIR%/sandbox.db
diff -ruN sf_sandbox/config/propel.ini new_sandbox/config/propel.ini
--- sf_sandbox/config/propel.ini        2008-11-10 21:49:30.000000000 +0000
+++ new_sandbox/config/propel.ini        2008-11-16 15:59:47.000000000 +0000
@@ -2,9 +2,6 @@
 propel.packageObjectModel  = true
 propel.project             = sf_sandbox
 propel.database            = sqlite
-propel.database.driver     = mysql
-propel.database.url        = sqlite://./../../../../../../../data/sandbox.db
-propel.database.creole.url = ${propel.database.url}
 propel.database.user       = root
 propel.database.password   = 
 propel.database.encoding   = utf8

With these changes (and a couple of documentation tweaks to be bugged separately) the 1.2 tutorial will run against the 1.2 sandbox.

Change History

11/16/08 21:04:05 changed by fabien

  • status changed from new to closed.
  • resolution set to fixed.

(In [13036]) [1.2] fixed sandbox default database configuration (closes #4953)