From 7c256b8c7a21e496971db31982f9709dc9643634 Mon Sep 17 00:00:00 2001 From: Greg Sabino Mullane Date: Sat, 12 Apr 2008 00:29:43 +0000 Subject: [PATCH] Add ar_parent_id column. --- maintenance/postgres/tables.sql | 1 + maintenance/updaters.inc | 1 + 2 files changed, 2 insertions(+) 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 ''"), -- 2.20.1