瀏覽代碼

Remove integration hooks on upgrade, per issue #499

Signed-off-by: Michael Eshom <oldiesmann@oldiesmann.us>
Michael Eshom 12 年之前
父節點
當前提交
8487309e9c
共有 3 個文件被更改,包括 27 次插入0 次删除
  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_%';
+---#