diff options
author | Tim Almdal <tnalmdal@shaw.ca> | 2009-02-27 21:07:18 +0000 |
---|---|---|
committer | Tim Almdal <tnalmdal@shaw.ca> | 2009-02-27 21:07:18 +0000 |
commit | bd15853708ae73ee69220738a061e10d015d7fb9 (patch) | |
tree | facfbd5b08e3cbb8e7fa2b4adf433b54d4c0c5bc /modules/exif/helpers | |
parent | 0b9fe18a6bf4036a05db7f9479d7b55d3fe5c782 (diff) |
This implements table prefix for all the queries in core, user, exif,
tag, search, comment and notification modules (Ticket #68)
Diffstat (limited to 'modules/exif/helpers')
-rw-r--r-- | modules/exif/helpers/exif_installer.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/exif/helpers/exif_installer.php b/modules/exif/helpers/exif_installer.php index 791cd4a6..964a9e6c 100644 --- a/modules/exif/helpers/exif_installer.php +++ b/modules/exif/helpers/exif_installer.php @@ -23,7 +23,7 @@ class exif_installer { if ($version == 0) { $db = Database::instance(); - $db->query("CREATE TABLE IF NOT EXISTS `exif_keys` ( + $db->query("CREATE TABLE IF NOT EXISTS `[exif_keys]` ( `id` int(9) NOT NULL auto_increment, `item_id` int(9) NOT NULL, `name` varchar(64) NOT NULL, @@ -32,7 +32,7 @@ class exif_installer { PRIMARY KEY (`id`), UNIQUE KEY(`item_id`, `summary`, `name`)) ENGINE=InnoDB DEFAULT CHARSET=utf8;"); - $db->query("CREATE TABLE IF NOT EXISTS `exif_records` ( + $db->query("CREATE TABLE IF NOT EXISTS `[exif_records]` ( `id` int(9) NOT NULL auto_increment, `item_id` int(9) NOT NULL, `dirty` BOOLEAN default 1, @@ -44,7 +44,7 @@ class exif_installer { static function uninstall() { $db = Database::instance(); - $db->query("DROP TABLE IF EXISTS `exif_keys`;"); + $db->query("DROP TABLE IF EXISTS `[exif_keys]`;"); module::delete("exif"); } } |