Explorar el Código

postgre and sqlite don't have tinyint type

Signed-off-by: emanuele <[email protected]>
emanuele hace 12 años
padre
commit
092fe0e9ce
Se han modificado 2 ficheros con 2 adiciones y 2 borrados
  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,
 		),
 	)