Followup to r72349, PG table def + updater for module_deps
authorOverlordQ <overlordq@users.mediawiki.org>
Sat, 4 Sep 2010 04:14:51 +0000 (04:14 +0000)
committerOverlordQ <overlordq@users.mediawiki.org>
Sat, 4 Sep 2010 04:14:51 +0000 (04:14 +0000)
includes/installer/PostgresUpdater.php
maintenance/postgres/archives/patch-module_deps.sql [new file with mode: 0644]

index d42a89d..e36c246 100644 (file)
@@ -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 (file)
index 0000000..703dcda
--- /dev/null
@@ -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);