瀏覽代碼

! Postgre doesn't like smallint sizes

emanuele 13 年之前
父節點
當前提交
819e6b7da6
共有 1 個文件被更改,包括 16 次插入16 次删除
  1. 16 16
      other/install_2-1_postgresql.sql

+ 16 - 16
other/install_2-1_postgresql.sql

@@ -253,22 +253,22 @@ CREATE SEQUENCE {$db_prefix}ban_items_seq;
 CREATE TABLE {$db_prefix}ban_items (
   id_ban int default nextval('{$db_prefix}ban_items_seq'),
   id_ban_group smallint NOT NULL default '0',
-  ip_low1 smallint(255) NOT NULL default '0',
-  ip_high1 smallint(255) NOT NULL default '0',
-  ip_low2 smallint(255) NOT NULL default '0',
-  ip_high2 smallint(255) NOT NULL default '0',
-  ip_low3 smallint(255) NOT NULL default '0',
-  ip_high3 smallint(255) NOT NULL default '0',
-  ip_low4 smallint(255) NOT NULL default '0',
-  ip_high4 smallint(255) NOT NULL default '0',
-  ip_low5 smallint(255) NOT NULL default '0',
-  ip_high5 smallint(255) NOT NULL default '0',
-  ip_low6 smallint(255) NOT NULL default '0',
-  ip_high6 smallint(255) NOT NULL default '0',
-  ip_low7 smallint(255) NOT NULL default '0',
-  ip_high7 smallint(255) NOT NULL default '0',
-  ip_low8 smallint(255) NOT NULL default '0',
-  ip_high8 smallint(255) NOT NULL default '0',
+  ip_low1 smallint NOT NULL default '0',
+  ip_high1 smallint NOT NULL default '0',
+  ip_low2 smallint NOT NULL default '0',
+  ip_high2 smallint NOT NULL default '0',
+  ip_low3 smallint NOT NULL default '0',
+  ip_high3 smallint NOT NULL default '0',
+  ip_low4 smallint NOT NULL default '0',
+  ip_high4 smallint NOT NULL default '0',
+  ip_low5 smallint NOT NULL default '0',
+  ip_high5 smallint NOT NULL default '0',
+  ip_low6 smallint NOT NULL default '0',
+  ip_high6 smallint NOT NULL default '0',
+  ip_low7 smallint NOT NULL default '0',
+  ip_high7 smallint NOT NULL default '0',
+  ip_low8 smallint NOT NULL default '0',
+  ip_high8 smallint NOT NULL default '0',
   hostname varchar(255) NOT NULL,
   email_address varchar(255) NOT NULL,
   id_member int NOT NULL default '0',