From b7c0058a7e8e4e0af29589aa5805d1949428eb24 Mon Sep 17 00:00:00 2001 From: OverlordQ Date: Sat, 4 Sep 2010 04:14:51 +0000 Subject: [PATCH] Followup to r72349, PG table def + updater for module_deps --- includes/installer/PostgresUpdater.php | 1 + maintenance/postgres/archives/patch-module_deps.sql | 7 +++++++ 2 files changed, 8 insertions(+) create mode 100644 maintenance/postgres/archives/patch-module_deps.sql diff --git a/includes/installer/PostgresUpdater.php b/includes/installer/PostgresUpdater.php index d42a89dbb2..e36c246331 100644 --- a/includes/installer/PostgresUpdater.php +++ b/includes/installer/PostgresUpdater.php @@ -57,6 +57,7 @@ class PostgresUpdater extends DatabaseUpdater { array( 'addTable', 'iwlinks', 'patch-iwlinks.sql' ), array( 'addTable', 'msg_resource', 'patch-msg_resource.sql' ), array( 'addTable', 'msg_resource_links','patch-msg_resource_links.sql' ), + array( 'addTable', 'module_deps', 'patch-module_deps.sql' ), # Needed before new field array( 'convertArchive2' ), diff --git a/maintenance/postgres/archives/patch-module_deps.sql b/maintenance/postgres/archives/patch-module_deps.sql new file mode 100644 index 0000000000..703dcdaf5b --- /dev/null +++ b/maintenance/postgres/archives/patch-module_deps.sql @@ -0,0 +1,7 @@ +CREATE TABLE module_deps ( + md_module TEXT NOT NULL, + md_skin TEXT NOT NULL, + md_deps TEXT NOT NULL +); + +CREATE UNIQUE INDEX md_module_skin_idx ON module_deps (md_module, md_skin); -- 2.20.1