浏览代码

postgre and sqlite don't have tinyint type

Signed-off-by: emanuele <[email protected]>
emanuele 12 年之前
父节点
当前提交
092fe0e9ce
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      other/upgrade_2-1_postgresql.sql
  2. 1 1
      other/upgrade_2-1_sqlite.sql

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

@@ -243,7 +243,7 @@ upgrade_query("
 ---{
 upgrade_query("
 	ALTER TABLE {$db_prefix}log_topics
-	ADD COLUMN disregarded tinyint NOT NULL DEFAULT '0'");
+	ADD COLUMN disregarded int NOT NULL DEFAULT '0'");
 
 INSERT INTO {$db_prefix}settings
 	(variable, value)

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

@@ -223,7 +223,7 @@ $smcFunc['db_alter_table']('{db_prefix}log_topics', array(
 			'name' => 'disregarded',
 			'null' => false,
 			'default' => 0,
-			'type' => 'tinyint',
+			'type' => 'int',
 			'auto' => false,
 		),
 	)