diff options
| author | Tim Almdal <tnalmdal@shaw.ca> | 2009-06-23 15:17:03 -0700 |
|---|---|---|
| committer | Tim Almdal <tnalmdal@shaw.ca> | 2009-06-23 15:17:03 -0700 |
| commit | 79522bd4f31f8e4d70e754e42d5d33c4031519c9 (patch) | |
| tree | 12819f685a9983fb783af457ebd9aa5cded09c62 /modules/search/helpers/search_installer.php | |
| parent | 8f443cef3e304c12f9e3555332880395051e7e3d (diff) | |
| parent | da09185a4baa739dd011804eb1301cdf2d126c11 (diff) | |
Merge branch 'master' of git@github.com:gallery/gallery3
Diffstat (limited to 'modules/search/helpers/search_installer.php')
| -rw-r--r-- | modules/search/helpers/search_installer.php | 23 |
1 files changed, 10 insertions, 13 deletions
diff --git a/modules/search/helpers/search_installer.php b/modules/search/helpers/search_installer.php index ed4a3a90..cd253be4 100644 --- a/modules/search/helpers/search_installer.php +++ b/modules/search/helpers/search_installer.php @@ -19,20 +19,17 @@ */ class search_installer { static function install() { - $version = module::get_version("search"); $db = Database::instance(); - if ($version == 0) { - $db->query("CREATE TABLE {search_records} ( - `id` int(9) NOT NULL auto_increment, - `item_id` int(9), - `dirty` boolean default 1, - `data` LONGTEXT default NULL, - PRIMARY KEY (`id`), - KEY(`item_id`), - FULLTEXT INDEX (`data`)) - ENGINE=MyISAM DEFAULT CHARSET=utf8;"); - module::set_version("search", 1); - } + $db->query("CREATE TABLE {search_records} ( + `id` int(9) NOT NULL auto_increment, + `item_id` int(9), + `dirty` boolean default 1, + `data` LONGTEXT default NULL, + PRIMARY KEY (`id`), + KEY(`item_id`), + FULLTEXT INDEX (`data`)) + ENGINE=MyISAM DEFAULT CHARSET=utf8;"); + module::set_version("search", 1); } static function activate() { |
