From: Greg Sabino Mullane Date: Sat, 12 Apr 2008 00:29:43 +0000 (+0000) Subject: Add ar_parent_id column. X-Git-Tag: 1.31.0-rc.0~48429 X-Git-Url: http://git.cyclocoop.org/data/Fool?a=commitdiff_plain;h=7c256b8c7a21e496971db31982f9709dc9643634;p=lhc%2Fweb%2Fwiklou.git Add ar_parent_id column. --- diff --git a/maintenance/postgres/tables.sql b/maintenance/postgres/tables.sql index 4557150da5..e6648f5cb0 100644 --- a/maintenance/postgres/tables.sql +++ b/maintenance/postgres/tables.sql @@ -135,6 +135,7 @@ CREATE TABLE archive ( ar_title TEXT NOT NULL, ar_text TEXT, -- technically should be bytea, but not used anymore ar_page_id INTEGER NULL, + ar_parent_id INTEGER NULL, ar_comment TEXT, ar_user INTEGER NULL REFERENCES mwuser(user_id) ON DELETE SET NULL, ar_user_text TEXT NOT NULL, diff --git a/maintenance/updaters.inc b/maintenance/updaters.inc index 8ccdbc402a..e0208b6e4f 100644 --- a/maintenance/updaters.inc +++ b/maintenance/updaters.inc @@ -1375,6 +1375,7 @@ function do_postgres_updates() { array("archive", "ar_deleted", "SMALLINT NOT NULL DEFAULT 0"), array("archive", "ar_len", "INTEGER"), array("archive", "ar_page_id", "INTEGER"), + array("archive", "ar_parent_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 ''"),