diff options
author | Bharat Mediratta <bharat@menalto.com> | 2009-07-29 16:40:01 -0700 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2009-07-29 16:40:01 -0700 |
commit | 7438a9c8893a5f584df3fb6a1552262c7da39b86 (patch) | |
tree | 41b22dfc3966d21e521ad6521e7a489622333bad /modules/gallery/helpers | |
parent | ead6a61d9e96d37ca3a0aecb93d18755099e341c (diff) |
Remove some scary debug code.
Diffstat (limited to 'modules/gallery/helpers')
-rw-r--r-- | modules/gallery/helpers/gallery_installer.php | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/modules/gallery/helpers/gallery_installer.php b/modules/gallery/helpers/gallery_installer.php index 2322110e..12031ccb 100644 --- a/modules/gallery/helpers/gallery_installer.php +++ b/modules/gallery/helpers/gallery_installer.php @@ -102,16 +102,6 @@ class gallery_installer { KEY `weight` (`weight` DESC)) ENGINE=InnoDB DEFAULT CHARSET=utf8;"); - $db->query("DELIMITER | - CREATE TRIGGER setweight BEFORE INSERT ON {items} - FOR EACH ROW BEGIN - DECLARE new_weight int(9); - SELECT weight+1 FROM {items} - ORDER BY weight LIMIT 1 INTO new_weight; - SET NEW.weight = new_weight; - END;| - DELIMITER ;"); - $db->query("CREATE TABLE {logs} ( `id` int(9) NOT NULL auto_increment, `category` varchar(64) default NULL, |