r31455 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r31454‎ | r31455 | r31456 >
Date:16:41, 2 March 2008
Author:greg
Status:old
Tags:
Comment:
Don't CASCADE on TRUNCATE, not available in old versions of Postgres.
Modified paths:
  • /trunk/phase3/maintenance/postgres/mediawiki_mysql2postgres.pl (modified) (history)

Diff [purge]

Index: trunk/phase3/maintenance/postgres/mediawiki_mysql2postgres.pl
@@ -9,7 +9,6 @@
1010 ## If having UTF-8 problems, there are reports that adding --compatible=postgresql
1111 ## may help.
1212
13 -
1413 use strict;
1514 use warnings;
1615 use Data::Dumper;
@@ -275,7 +274,7 @@
276275 for my $t (@torder, 'objectcache', 'querycache') {
277276 next if $t eq '---';
278277 my $tname = $special{$t}||$t;
279 - printf qq{TRUNCATE TABLE %-20s CASCADE;\n}, qq{"$tname"};
 278+ printf qq{TRUNCATE TABLE %-20s\n}, qq{"$tname"};
280279 }
281280 print "\n\n";
282281

Status & tagging log