Add ipb_by_text to Postgres schema.
authorGreg Sabino Mullane <greg@users.mediawiki.org>
Tue, 19 Feb 2008 00:58:52 +0000 (00:58 +0000)
committerGreg Sabino Mullane <greg@users.mediawiki.org>
Tue, 19 Feb 2008 00:58:52 +0000 (00:58 +0000)
maintenance/postgres/tables.sql
maintenance/updaters.inc

index 97ff17d..9ea22bc 100644 (file)
@@ -220,6 +220,7 @@ CREATE TABLE ipblocks (
   ipb_address           TEXT             NULL,
   ipb_user              INTEGER          NULL  REFERENCES mwuser(user_id) ON DELETE SET NULL,
   ipb_by                INTEGER      NOT NULL  REFERENCES mwuser(user_id) ON DELETE CASCADE,
+  ipb_by_text           TEXT         NOT NULL  DEFAULT '',
   ipb_reason            TEXT         NOT NULL,
   ipb_timestamp         TIMESTAMPTZ  NOT NULL,
   ipb_auto              SMALLINT     NOT NULL  DEFAULT 0,
index e9a6ffc..15a578e 100644 (file)
@@ -1340,6 +1340,7 @@ function do_postgres_updates() {
                array("archive",       "ar_page_id",           "INTEGER"),
                array("image",         "img_sha1",             "TEXT NOT NULL DEFAULT ''"),
                array("ipblocks",      "ipb_anon_only",        "CHAR NOT NULL DEFAULT '0'"),
+               array("ipblocks",      "ipb_by_text",          "TEXT NOT NULL DEFAULT ''"),
                array("ipblocks",      "ipb_block_email",      "CHAR NOT NULL DEFAULT '0'"),
                array("ipblocks",      "ipb_create_account",   "CHAR NOT NULL DEFAULT '1'"),
                array("ipblocks",      "ipb_deleted",          "SMALLINT NOT NULL DEFAULT 0"),