Index: trunk/phase3/maintenance/postgres/compare_schemas.pl |
— | — | @@ -574,5 +574,4 @@ |
575 | 575 | OLD: searchindex ## We use tsearch2 directly on the page table instead |
576 | 576 | RENAME: user mwuser ## Reserved word causing lots of problems |
577 | 577 | RENAME: text pagecontent ## Reserved word |
578 | | -NEW: mediawiki_version ## Just us, for now |
579 | 578 | XFILE: ../archives/patch-profiling.sql |
Index: trunk/phase3/maintenance/postgres/archives/patch-mediawiki_version.sql |
— | — | @@ -1,18 +0,0 @@ |
2 | | -CREATE TABLE mediawiki_version ( |
3 | | - type TEXT NOT NULL, |
4 | | - mw_version TEXT NOT NULL, |
5 | | - notes TEXT NULL, |
6 | | - |
7 | | - pg_version TEXT NULL, |
8 | | - pg_dbname TEXT NULL, |
9 | | - pg_user TEXT NULL, |
10 | | - pg_port TEXT NULL, |
11 | | - mw_schema TEXT NULL, |
12 | | - ts2_schema TEXT NULL, |
13 | | - ctype TEXT NULL, |
14 | | - |
15 | | - sql_version TEXT NULL, |
16 | | - sql_date TEXT NULL, |
17 | | - cdate TIMESTAMPTZ NOT NULL DEFAULT now() |
18 | | -); |
19 | | - |
Index: trunk/phase3/maintenance/postgres/tables.sql |
— | — | @@ -609,27 +609,6 @@ |
610 | 610 | CREATE UNIQUE INDEX user_properties_user_property ON user_properties (up_user,up_property); |
611 | 611 | CREATE INDEX user_properties_property ON user_properties (up_property); |
612 | 612 | |
613 | | -CREATE TABLE mediawiki_version ( |
614 | | - type TEXT NOT NULL, |
615 | | - mw_version TEXT NOT NULL, |
616 | | - notes TEXT NULL, |
617 | | - |
618 | | - pg_version TEXT NULL, |
619 | | - pg_dbname TEXT NULL, |
620 | | - pg_user TEXT NULL, |
621 | | - pg_port TEXT NULL, |
622 | | - mw_schema TEXT NULL, |
623 | | - ts2_schema TEXT NULL, |
624 | | - ctype TEXT NULL, |
625 | | - |
626 | | - sql_version TEXT NULL, |
627 | | - sql_date TEXT NULL, |
628 | | - cdate TIMESTAMPTZ NOT NULL DEFAULT now() |
629 | | -); |
630 | | - |
631 | | -INSERT INTO mediawiki_version (type,mw_version,sql_version,sql_date) |
632 | | - VALUES ('Creation','??','$LastChangedRevision$','$LastChangedDate$'); |
633 | | - |
634 | 613 | CREATE TABLE l10n_cache ( |
635 | 614 | lc_lang TEXT NOT NULL, |
636 | 615 | lc_key TEXT NOT NULL, |
Index: trunk/phase3/maintenance/postgres/mediawiki_mysql2postgres.pl |
— | — | @@ -421,12 +421,6 @@ |
422 | 422 | SELECT setval('user_user_id_seq', 1+coalesce(max(user_id),0),false) FROM mwuser; |
423 | 423 | }; |
424 | 424 | |
425 | | -## Finally, make a record in the mediawiki_version table about this import |
426 | | -print qq{ |
427 | | -INSERT INTO mediawiki_version (type,mw_version,notes) VALUES ('MySQL import','??', |
428 | | -'Imported from file created on $now. Old version: $current_version'); |
429 | | -}; |
430 | | - |
431 | 425 | print "COMMIT;\n\\o\n\n-- End of dump\n\n"; |
432 | 426 | select $oldselect; |
433 | 427 | close $mdump or die qq{Could not close "$MYSQLDUMPFILE": $!\n}; |
— | — | @@ -438,7 +432,6 @@ |
439 | 433 | ## or leave blank if it should be skipped |
440 | 434 | pagecontent text |
441 | 435 | mwuser user |
442 | | -mediawiki_version |
443 | 436 | archive2 |
444 | 437 | profiling |
445 | 438 | objectcache |
Index: trunk/phase3/maintenance/updaters.inc |
— | — | @@ -1580,7 +1580,6 @@ |
1581 | 1581 | |
1582 | 1582 | $newtables = array( |
1583 | 1583 | array("category", "patch-category.sql"), |
1584 | | - array("mediawiki_version", "patch-mediawiki_version.sql"), |
1585 | 1584 | array("mwuser", "patch-mwuser.sql"), |
1586 | 1585 | array("pagecontent", "patch-pagecontent.sql"), |
1587 | 1586 | array("querycachetwo", "patch-querycachetwo.sql"), |
— | — | @@ -2032,16 +2031,5 @@ |
2033 | 2032 | ## in case they have the old 'default' versions |
2034 | 2033 | if ( $numver >= 8.3 ) |
2035 | 2034 | $wgDatabase->sourceFile(archive('patch-tsearch2funcs.sql')); |
2036 | | - |
2037 | | - ## Put a new row in the mediawiki_version table |
2038 | | - $wgDatabase->insert( 'mediawiki_version', |
2039 | | - array( |
2040 | | - 'type' => 'Update', |
2041 | | - 'ctype' => 'U', |
2042 | | - 'mw_version' => $wgVersion, |
2043 | | - 'pg_version' => $version, |
2044 | | - 'sql_version' => '$LastChangedRevision$', |
2045 | | - 'sql_date' => '$LastChangedDate$', |
2046 | | - ) ); |
2047 | 2035 | return; |
2048 | 2036 | } |
Index: trunk/phase3/maintenance/ibm_db2/tables.sql |
— | — | @@ -721,27 +721,6 @@ |
722 | 722 | CREATE UNIQUE INDEX ls_field_val ON log_search (ls_field,ls_value,ls_log_id); |
723 | 723 | CREATE INDEX ls_log_id ON log_search (ls_log_id); |
724 | 724 | |
725 | | -CREATE TABLE mediawiki_version ( |
726 | | - type VARCHAR(1024) NOT NULL, |
727 | | - mw_version VARCHAR(1024) NOT NULL, |
728 | | - notes VARCHAR(1024) , |
729 | | - |
730 | | - pg_version VARCHAR(1024) , |
731 | | - pg_dbname VARCHAR(1024) , |
732 | | - pg_user VARCHAR(1024) , |
733 | | - pg_port VARCHAR(1024) , |
734 | | - mw_schema VARCHAR(1024) , |
735 | | - ts2_schema VARCHAR(1024) , |
736 | | - ctype VARCHAR(1024) , |
737 | | - |
738 | | - sql_version VARCHAR(1024) , |
739 | | - sql_date VARCHAR(1024) , |
740 | | - cdate TIMESTAMP(3) NOT NULL DEFAULT CURRENT TIMESTAMP |
741 | | -); |
742 | | - |
743 | | -INSERT INTO mediawiki_version (type,mw_version,sql_version,sql_date) |
744 | | - VALUES ('Creation','??','$LastChangedRevision: 34049 $','$LastChangedDate: 2008-04-30 10:20:36 -0400 (Wed, 30 Apr 2008) $'); |
745 | | - |
746 | 725 | -- Table for storing localisation data |
747 | 726 | CREATE TABLE l10n_cache ( |
748 | 727 | -- Language code |
Index: trunk/phase3/includes/db/DatabasePostgres.php |
— | — | @@ -1346,12 +1346,6 @@ |
1347 | 1347 | $dbn = $this->addQuotes($this->mDBname); |
1348 | 1348 | $ctype = $this->addQuotes( pg_fetch_result($this->doQuery("SHOW lc_ctype"),0,0) ); |
1349 | 1349 | |
1350 | | - $SQL = "UPDATE mediawiki_version SET mw_version=$mwv, pg_version=$pgv, pg_user=$pgu, ". |
1351 | | - "mw_schema = $mws, ts2_schema = $tss, pg_port=$pgp, pg_dbname=$dbn, ". |
1352 | | - "ctype = $ctype ". |
1353 | | - "WHERE type = 'Creation'"; |
1354 | | - $this->query($SQL); |
1355 | | - |
1356 | 1350 | ## Avoid the non-standard "REPLACE INTO" syntax |
1357 | 1351 | $f = fopen( "../maintenance/interwiki.sql", 'r' ); |
1358 | 1352 | if ($f == false ) { |
Index: trunk/phase3/includes/db/DatabaseIbm_db2.php |
— | — | @@ -747,8 +747,6 @@ |
748 | 748 | |
749 | 749 | $res = $this->sourceFile( "../maintenance/ibm_db2/tables.sql" ); |
750 | 750 | $res = null; |
751 | | - |
752 | | - // TODO: update mediawiki_version table |
753 | 751 | |
754 | 752 | // TODO: populate interwiki links |
755 | 753 | |