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 /modules/search/helpers/search_installer.php | |
| parent | ad56995bafffeca89c44b07cb4f25da7b36a1a99 (diff) | |
Change the pattern to identify tables that need prefix substitution to
mirror the drupal pattern of using braces {}.
Diffstat (limited to 'modules/search/helpers/search_installer.php')
| -rw-r--r-- | modules/search/helpers/search_installer.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/search/helpers/search_installer.php b/modules/search/helpers/search_installer.php index 05775fec..46f92e83 100644 --- a/modules/search/helpers/search_installer.php +++ b/modules/search/helpers/search_installer.php @@ -22,7 +22,7 @@ class search_installer { $version = module::get_version("search"); $db = Database::instance(); if ($version == 0) { - $db->query("CREATE TABLE `[search_records]` ( + $db->query("CREATE TABLE {search_records} ( `id` int(9) NOT NULL auto_increment, `item_id` int(9), `dirty` boolean default 1, @@ -32,7 +32,7 @@ class search_installer { ENGINE=MyISAM DEFAULT CHARSET=utf8;"); // populate the index with dirty records - $db->query("INSERT INTO `[search_records]` (`item_id`) SELECT `id` FROM `[items]`"); + $db->query("INSERT INTO {search_records} (`item_id`) SELECT `id` FROM {items}"); module::set_version("search", 1); if (ORM::factory("search_record")->count_all() < 10) { @@ -47,7 +47,7 @@ class search_installer { static function uninstall() { $db = Database::instance(); - $db->query("DROP TABLE `[search_records]`"); + $db->query("DROP TABLE {search_records}"); site_status::clear("search_index_out_of_date"); module::delete("search"); } |
