Browse Source

Remove integration hooks on upgrade, per issue #499

Signed-off-by: Michael Eshom <[email protected]>
Michael Eshom 11 years ago
parent
commit
8487309e9c
3 changed files with 27 additions and 0 deletions
  1. 9 0
      other/upgrade_2-1_mysql.sql
  2. 9 0
      other/upgrade_2-1_postgresql.sql
  3. 9 0
      other/upgrade_2-1_sqlite.sql

+ 9 - 0
other/upgrade_2-1_mysql.sql

@@ -313,3 +313,12 @@ CREATE TABLE IF NOT EXISTS {$db_prefix}moderator_groups (
   id_group smallint(5) unsigned NOT NULL default '0',
   PRIMARY KEY (id_board, id_group)
 ) ENGINE=MyISAM;
+---#
+
+/******************************************************************************/
+--- Cleaning up integration hooks
+/******************************************************************************/
+---# Deleting integration hooks
+DELETE FROM {$db_prefix}settings
+WHERE variable LIKE 'integrate_%';
+---#

+ 9 - 0
other/upgrade_2-1_postgresql.sql

@@ -370,3 +370,12 @@ CREATE TABLE IF NOT EXISTS {$db_prefix}moderator_groups (
   id_group smallint NOT NULL default '0',
   PRIMARY KEY (id_board, id_group)
 );
+---#
+
+/******************************************************************************/
+--- Cleaning up integration hooks
+/******************************************************************************/
+---#
+DELETE FROM {$db_prefix}settings
+WHERE variable LIKE 'integrate_%';
+---#

+ 9 - 0
other/upgrade_2-1_sqlite.sql

@@ -354,3 +354,12 @@ CREATE TABLE IF NOT EXISTS {$db_prefix}moderator_groups (
   id_group smallint NOT NULL default '0',
   PRIMARY KEY (id_board, id_group)
 );
+---#
+
+/******************************************************************************/
+--- Cleaning up integration hooks
+/******************************************************************************/
+---#
+DELETE FROM {$db_prefix}settings
+WHERE variable LIKE 'integrate_%';
+---#