mirror of
https://git.osgeo.org/gitea/postgis/postgis
synced 2024-10-25 17:42:38 +00:00
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:
parent
7761d221f0
commit
7eb713ddfa
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue