Add ipb_anon_only and ipb_create_account columns.
authorGreg Sabino Mullane <greg@users.mediawiki.org>
Sun, 16 Jul 2006 15:32:45 +0000 (15:32 +0000)
committerGreg Sabino Mullane <greg@users.mediawiki.org>
Sun, 16 Jul 2006 15:32:45 +0000 (15:32 +0000)
maintenance/postgres/tables.sql

index 60e1a4d..136b0d0 100644 (file)
@@ -180,16 +180,18 @@ CREATE TABLE hitcounter (
 
 CREATE SEQUENCE ipblocks_ipb_id_val;
 CREATE TABLE ipblocks (
-  ipb_id           INTEGER      NOT NULL  PRIMARY KEY DEFAULT nextval('ipblocks_ipb_id_val'),
-  ipb_address      CIDR             NULL,
-  ipb_user         INTEGER          NULL  REFERENCES "user"(user_id) ON DELETE SET NULL,
-  ipb_by           INTEGER      NOT NULL  REFERENCES "user"(user_id) ON DELETE CASCADE,
-  ipb_reason       TEXT         NOT NULL,
-  ipb_timestamp    TIMESTAMPTZ  NOT NULL,
-  ipb_auto         CHAR         NOT NULL  DEFAULT '0',
-  ipb_expiry       TIMESTAMPTZ  NOT NULL,
-  ipb_range_start  TEXT,
-  ipb_range_end    TEXT
+  ipb_id              INTEGER      NOT NULL  PRIMARY KEY DEFAULT nextval('ipblocks_ipb_id_val'),
+  ipb_address         CIDR             NULL,
+  ipb_user            INTEGER          NULL  REFERENCES "user"(user_id) ON DELETE SET NULL,
+  ipb_by              INTEGER      NOT NULL  REFERENCES "user"(user_id) ON DELETE CASCADE,
+  ipb_reason          TEXT         NOT NULL,
+  ipb_timestamp       TIMESTAMPTZ  NOT NULL,
+  ipb_auto            CHAR         NOT NULL  DEFAULT '0',
+  ipb_anon_only bool  CHAR         NOT NULL  DEFAULT '0',
+  ipb_create_account  CHAR         NOT NULL  DEFAULT '1',
+  ipb_expiry          TIMESTAMPTZ  NOT NULL,
+  ipb_range_start     TEXT,
+  ipb_range_end       TEXT
 );
 CREATE INDEX ipb_address ON ipblocks (ipb_address);
 CREATE INDEX ipb_user    ON ipblocks (ipb_user);