File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -385,7 +385,7 @@ sub createTestDB {
385
385
unless version_greater_eq($dbver , $POSGRESQL_MIN_VERSION );
386
386
387
387
# Create a database with postgis installed in it
388
- mysystem(" createdb $connopts $databaseName " );
388
+ mysystem(" createdb $connopts $databaseName " ) if !dbExists( $databaseName ) ;
389
389
die " ERROR: Failed to create database '$databaseName '!\n " unless dbExists($databaseName );
390
390
my $encoding = ' ' ;
391
391
if ($OS =~ / msys/
@@ -398,6 +398,10 @@ sub createTestDB {
398
398
if ($vpgr ) {
399
399
$myver = " VERSION '$vpgr '" ;
400
400
}
401
+
402
+
403
+ mysystem(" $psql $connopts -c \" DROP EXTENSION IF EXISTS pgrouting $myver \" $databaseName " );
404
+
401
405
print " Installing pgrouting extension $myver \n " if $VERBOSE ;
402
406
mysystem(" $psql $connopts -c \" CREATE EXTENSION pgrouting $myver CASCADE\" $databaseName " );
403
407
You can’t perform that action at this time.
0 commit comments