Commit f1568810 authored by Paul Ramsey's avatar Paul Ramsey

Drop pre-existing db when running without any special mode flags on database handling


git-svn-id: http://svn.osgeo.org/postgis/trunk@17309 b70326c6-7e19-0410-871a-916f4a2858ee
parent 239f2286
Pipeline #50999375 passed with stage
in 25 minutes and 20 seconds
......@@ -235,9 +235,9 @@ else
}
else
{
print STDERR "Database $DB already exists.\n";
print STDERR "Drop it, or run with the --nocreate flag to use it.\n";
exit(1);
print STDERR "Database $DB already exists, dropping.\n";
`dropdb $DB`;
create_spatial();
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment