summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2009-08-05 07:47:17 -0700
committerTim Almdal <tnalmdal@shaw.ca>2009-08-05 07:47:17 -0700
commit81d39a9bb15577b0c8a59b2b14fd27fb1b7d26d9 (patch)
treeec35997cd96f1871b4a261fc18cfaa4f02134ddb /modules
parent187d4b209d6bd3fce2fa81a88e31f587d9eb4624 (diff)
Remove the trigger definition code
Diffstat (limited to 'modules')
-rw-r--r--modules/gallery/helpers/gallery_installer.php10
1 files changed, 0 insertions, 10 deletions
diff --git a/modules/gallery/helpers/gallery_installer.php b/modules/gallery/helpers/gallery_installer.php
index fd2cd7f9..d12dad70 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,