Переглянути джерело

Merge pull request #586 from jdarwood007/fixes-580-pr

Fixes 580 pr
Michael Eshom 11 роки тому
батько
коміт
bc87cfb1ac

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

@@ -203,6 +203,11 @@ VALUES
 	('enable_unwatch', 0);
 ---#
 
+---# Fixing column name change...
+ALTER TABLE {$db_prefix}log_topics
+CHANGE COLUMN disregarded unwatched tinyint(3) NOT NULL DEFAULT '0';
+---#
+
 /******************************************************************************/
 --- Fixing mail queue for long messages
 /******************************************************************************/

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

@@ -263,6 +263,14 @@ VALUES
 ---}
 ---#
 
+---# Fixing column name change...
+---{
+upgrade_query("
+	ALTER TABLE {$db_prefix}log_topics
+	CHANGE COLUMN disregarded unwatched tinyint(3) NOT NULL DEFAULT '0';");
+---}
+---#
+
 /******************************************************************************/
 --- Name changes
 /******************************************************************************/

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

@@ -247,6 +247,22 @@ VALUES
 ---}
 ---#
 
+---# Fixing column name change...
+---{
+$smcFunc['db_alter_table']('{db_prefix}log_topics', array(
+	'change' => array(
+		'disregarded' => array(
+			'name' => 'unwatched',
+			'null' => false,
+			'default' => 0,
+			'type' => 'int',
+			'auto' => false,
+		),
+	)
+));
+---}
+---#
+
 /******************************************************************************/
 --- Name changes
 /******************************************************************************/