diff options
author | jhilden <jakobhilden@gmail.com> | 2009-06-29 16:03:45 -0400 |
---|---|---|
committer | jhilden <jakobhilden@gmail.com> | 2009-06-29 16:03:45 -0400 |
commit | b31b3bd5bff4f8d5b5721e0fdd86579028a5b03a (patch) | |
tree | 9baa2a301c1e26dcf872e0bbfbb09be34cb020d5 /modules/exif/helpers | |
parent | eb82f6a64a6b4e0b4e18ca92689bd467cba6e1bd (diff) | |
parent | 5de6de6a133c6c906ee63b5a2ab1b08bc14ca17e (diff) |
Merge branch 'master' of git@github.com:gallery/gallery3
Diffstat (limited to 'modules/exif/helpers')
-rw-r--r-- | modules/exif/helpers/exif_installer.php | 26 |
1 files changed, 11 insertions, 15 deletions
diff --git a/modules/exif/helpers/exif_installer.php b/modules/exif/helpers/exif_installer.php index da49f649..0233f2bb 100644 --- a/modules/exif/helpers/exif_installer.php +++ b/modules/exif/helpers/exif_installer.php @@ -19,21 +19,17 @@ */ class exif_installer { static function install() { - $version = module::get_version("exif"); - - if ($version == 0) { - $db = Database::instance(); - $db->query("CREATE TABLE IF NOT EXISTS {exif_records} ( - `id` int(9) NOT NULL auto_increment, - `item_id` INTEGER(9) NOT NULL, - `key_count` INTEGER(9) default 0, - `data` TEXT, - `dirty` BOOLEAN default 1, - PRIMARY KEY (`id`), - KEY(`item_id`)) - ENGINE=InnoDB DEFAULT CHARSET=utf8;"); - module::set_version("exif", 1); - } + $db = Database::instance(); + $db->query("CREATE TABLE IF NOT EXISTS {exif_records} ( + `id` int(9) NOT NULL auto_increment, + `item_id` INTEGER(9) NOT NULL, + `key_count` INTEGER(9) default 0, + `data` TEXT, + `dirty` BOOLEAN default 1, + PRIMARY KEY (`id`), + KEY(`item_id`)) + ENGINE=InnoDB DEFAULT CHARSET=utf8;"); + module::set_version("exif", 1); } static function activate() { |