From 7eb713ddfa1bd65e4ca0012dd06d4962390e6f5c Mon Sep 17 00:00:00 2001 From: Sandro Santilli Date: Sat, 24 Dec 2011 11:21:35 +0000 Subject: [PATCH] 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 --- utils/create_undef.pl | 3 +++ 1 file changed, 3 insertions(+) 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"; -- 2.50.1