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
This commit is contained in:
Sandro Santilli 2011-12-24 11:21:35 +00:00
parent 7761d221f0
commit 7eb713ddfa

View file

@ -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";