From: Greg Sabino Mullane Date: Wed, 28 Feb 2007 23:44:02 +0000 (+0000) Subject: Bump default version, put in check for 1.8 schema. X-Git-Tag: 1.31.0-rc.0~53935 X-Git-Url: https://git.cyclocoop.org//%22?a=commitdiff_plain;h=7416f57a9caa9b603aa8f95ccd6d06ac365bb4d5;p=lhc%2Fweb%2Fwiklou.git Bump default version, put in check for 1.8 schema. --- diff --git a/maintenance/postgres/wp_mysql2postgres.pl b/maintenance/postgres/wp_mysql2postgres.pl index 57e32e960a..0cb5f3246b 100644 --- a/maintenance/postgres/wp_mysql2postgres.pl +++ b/maintenance/postgres/wp_mysql2postgres.pl @@ -53,7 +53,7 @@ GetOptions my $PG_SCHEMA = "tables.sql"; ## What version we default to when we can't parse the old schema -my $MW_DEFAULT_VERSION = '1.8'; +my $MW_DEFAULT_VERSION = '1.9'; ## Try and find a working version of mysqldump $verbose and warn "Locating the mysqldump executable\n"; @@ -133,9 +133,12 @@ elsif ($current_schema !~ /CREATE TABLE \S+validate /) { elsif ($current_schema !~ /ipb_auto tinyint/) { $current_version = '1.7'; } -else { +elsif ($current_schema !~ /CREATE TABLE \S+profiling /) { $current_version = '1.8'; } +else { + $current_version = '1.9'; +} if (!$current_version) { warn qq{WARNING! Could not figure out the old version, assuming MediaWiki $MW_DEFAULT_VERSION\n};