Patch to create interwiki table in database for interwiki mappings.
authorBrion Vibber <brion@users.mediawiki.org>
Thu, 21 Aug 2003 11:33:17 +0000 (11:33 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Thu, 21 Aug 2003 11:33:17 +0000 (11:33 +0000)
maintenance/archives/patch-interwiki.sql [new file with mode: 0644]
maintenance/archives/patch-list.txt

diff --git a/maintenance/archives/patch-interwiki.sql b/maintenance/archives/patch-interwiki.sql
new file mode 100644 (file)
index 0000000..0fa40cd
--- /dev/null
@@ -0,0 +1,11 @@
+-- Creates interwiki prefix<->url mapping table
+-- used from 2003-08-21 dev version.
+-- Import the default mappings from maintenance/interwiki.sql
+
+CREATE TABLE interwiki (
+  iw_prefix char(32) NOT NULL,
+  iw_url char(127) NOT NULL,
+  iw_local BOOL NOT NULL,
+  UNIQUE KEY iw_prefix (iw_prefix)
+);
+
index c16ec35..7bf9deb 100644 (file)
@@ -114,3 +114,14 @@ OutputPage.php User.php maintenance/buildTables.inc maintenance/patch-cache.sql
 
 * 2003-05-30: File upload license fields
 Adds fields to 'image' table.
+INCOMPLETE, DO NOT USE
+
+
+* 2003-08-21: Interwiki URL table
+Moves the interwiki prefix<->url mapping table from a static array
+into the database. If you've got a custom table, be sure to make
+your changes!
+
+Run patch-interwiki.sql to create the interwiki table, then the
+plain interwiki.sql to load up the default set of mappings.
+