aboutsummaryrefslogtreecommitdiffstats
path: root/maintenance/postgres/mediawiki_mysql2postgres.pl
diff options
context:
space:
mode:
authorGreg Sabino Mullane <greg@users.mediawiki.org>2008-03-02 16:41:29 +0000
committerGreg Sabino Mullane <greg@users.mediawiki.org>2008-03-02 16:41:29 +0000
commitef7a5cf274fd9ed999b3b5968a6bdb9da70d4d1f (patch)
treeb6c99cbdd218eeef39eb20b2f28a160d2ddb6af3 /maintenance/postgres/mediawiki_mysql2postgres.pl
parentd2a7be1488c9aae0368aedd5180e1d7649838e2e (diff)
downloadmediawikicore-ef7a5cf274fd9ed999b3b5968a6bdb9da70d4d1f.tar.gz
mediawikicore-ef7a5cf274fd9ed999b3b5968a6bdb9da70d4d1f.zip
Don't CASCADE on TRUNCATE, not available in old versions of Postgres.
Notes
Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/31455
Diffstat (limited to 'maintenance/postgres/mediawiki_mysql2postgres.pl')
-rw-r--r--maintenance/postgres/mediawiki_mysql2postgres.pl3
1 files changed, 1 insertions, 2 deletions
diff --git a/maintenance/postgres/mediawiki_mysql2postgres.pl b/maintenance/postgres/mediawiki_mysql2postgres.pl
index 8a3bb2c488ab..eb87eebf51a5 100644
--- a/maintenance/postgres/mediawiki_mysql2postgres.pl
+++ b/maintenance/postgres/mediawiki_mysql2postgres.pl
@@ -9,7 +9,6 @@
## If having UTF-8 problems, there are reports that adding --compatible=postgresql
## may help.
-
use strict;
use warnings;
use Data::Dumper;
@@ -275,7 +274,7 @@ $verbose and warn qq{Writing truncates to empty existing tables\n};
for my $t (@torder, 'objectcache', 'querycache') {
next if $t eq '---';
my $tname = $special{$t}||$t;
- printf qq{TRUNCATE TABLE %-20s CASCADE;\n}, qq{"$tname"};
+ printf qq{TRUNCATE TABLE %-20s\n}, qq{"$tname"};
}
print "\n\n";