diff options
author | Tim Almdal <tnalmdal@shaw.ca> | 2009-02-28 06:37:28 +0000 |
---|---|---|
committer | Tim Almdal <tnalmdal@shaw.ca> | 2009-02-28 06:37:28 +0000 |
commit | c04ff8e02f01691dc2e325efc523e43f3aebaf95 (patch) | |
tree | 8fbdfe90c1bb04b9b8b74500904c09f126430e19 /core/controllers | |
parent | ad56995bafffeca89c44b07cb4f25da7b36a1a99 (diff) |
Change the pattern to identify tables that need prefix substitution to
mirror the drupal pattern of using braces {}.
Diffstat (limited to 'core/controllers')
-rw-r--r-- | core/controllers/admin_maintenance.php | 2 | ||||
-rw-r--r-- | core/controllers/scaffold.php | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/core/controllers/admin_maintenance.php b/core/controllers/admin_maintenance.php index e24cc50b..6f553161 100644 --- a/core/controllers/admin_maintenance.php +++ b/core/controllers/admin_maintenance.php @@ -23,7 +23,7 @@ class Admin_Maintenance_Controller extends Admin_Controller { */ public function index() { $query = Database::instance()->query( - "UPDATE `tasks` SET `state` = 'stalled' " . + "UPDATE {tasks} SET `state` = 'stalled' " . "WHERE done = 0 " . "AND state <> 'stalled' " . "AND unix_timestamp(now()) - updated > 120"); diff --git a/core/controllers/scaffold.php b/core/controllers/scaffold.php index 554d576c..cdbe0f95 100644 --- a/core/controllers/scaffold.php +++ b/core/controllers/scaffold.php @@ -509,8 +509,8 @@ class Scaffold_Controller extends Template_Controller { // We now have a clean install with just the packages that we want. Make sure that the // database is clean too. $db = Database::instance(); - $db->query("TRUNCATE `[sessions]`"); - $db->query("TRUNCATE `[logs]`"); + $db->query("TRUNCATE {sessions}"); + $db->query("TRUNCATE {logs}"); $db->update("users", array("password" => ""), array("id" => 2)); $dbconfig = Kohana::config('database.default'); |