[Pkg-zenoss-commits] r179 - in /packages/zenoss/trunk/debian/patches: 00list drop_triggers_before_db_creation
zack at users.alioth.debian.org
zack at users.alioth.debian.org
Tue Jun 19 23:44:15 UTC 2007
Author: zack
Date: Tue Jun 19 23:44:15 2007
New Revision: 179
URL: http://svn.debian.org/wsvn/pkg-zenoss/?sc=1&rev=179
Log:
remove trigger if existent before creation, enables reinstalling zenoss on a old database
Added:
packages/zenoss/trunk/debian/patches/drop_triggers_before_db_creation (with props)
Modified:
packages/zenoss/trunk/debian/patches/00list
Modified: packages/zenoss/trunk/debian/patches/00list
URL: http://svn.debian.org/wsvn/pkg-zenoss/packages/zenoss/trunk/debian/patches/00list?rev=179&op=diff
==============================================================================
--- packages/zenoss/trunk/debian/patches/00list (original)
+++ packages/zenoss/trunk/debian/patches/00list Tue Jun 19 23:44:15 2007
@@ -6,3 +6,4 @@
remove-ZENHOME-rest
zenfunctions-pythonpath
zensocket-location
+drop_triggers_before_db_creation
Added: packages/zenoss/trunk/debian/patches/drop_triggers_before_db_creation
URL: http://svn.debian.org/wsvn/pkg-zenoss/packages/zenoss/trunk/debian/patches/drop_triggers_before_db_creation?rev=179&op=file
==============================================================================
--- packages/zenoss/trunk/debian/patches/drop_triggers_before_db_creation (added)
+++ packages/zenoss/trunk/debian/patches/drop_triggers_before_db_creation Tue Jun 19 23:44:15 2007
@@ -1,0 +1,20 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## rm_trigger_before_db_creation.dpatch by Stefano Zacchiroli <zack at debian.org>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Drop the triggers used by Zenoss so that reinstallation over an already
+## DP: existing database is possible.
+
+ at DPATCH@
+diff -urNad trunk~/Products/ZenEvents/db/zenevents.sql trunk/Products/ZenEvents/db/zenevents.sql
+--- trunk~/Products/ZenEvents/db/zenevents.sql 2007-04-18 16:21:42.000000000 +0100
++++ trunk/Products/ZenEvents/db/zenevents.sql 2007-06-20 00:37:23.000000000 +0100
+@@ -78,6 +78,8 @@
+ INDEX lastTime(lastTime)
+ ) ENGINE=INNODB;
+
++DROP TRIGGER IF EXISTS status_delete;
++
+ CREATE TRIGGER status_delete BEFORE DELETE ON status
+ FOR EACH ROW INSERT INTO history SET
+ dedupid=OLD.dedupid,
Propchange: packages/zenoss/trunk/debian/patches/drop_triggers_before_db_creation
------------------------------------------------------------------------------
svn:executable = *
More information about the Pkg-zenoss-commits
mailing list