From: Sandro Santilli Date: Sat, 24 Dec 2011 11:21:35 +0000 (+0000) Subject: Drop tables in reverse order, reducing probability of fkey troubles X-Git-Tag: 2.0.0alpha1~317 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7eb713ddfa1bd65e4ca0012dd06d4962390e6f5c;p=postgis Drop tables in reverse order, reducing probability of fkey troubles git-svn-id: http://svn.osgeo.org/postgis/trunk@8558 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/utils/create_undef.pl b/utils/create_undef.pl index ed9085573..2119fcf46 100755 --- a/utils/create_undef.pl +++ b/utils/create_undef.pl @@ -149,6 +149,9 @@ foreach my $view (@views) } print "-- Drop all tables.\n"; +# we reverse table definitions so foreign key constraints +# are more likely not to get in our way +@tables = reverse(@tables); foreach my $table (@tables) { print "DROP TABLE $table;\n";