Browse Source

! Postgre doesn't like smallint sizes

emanuele 13 years ago
parent
commit
819e6b7da6
1 changed files with 16 additions and 16 deletions
  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',