only attempt to create the postgis extension when it does not already exist
This commit is contained in:
parent
0b825adcf2
commit
7b119c1c77
|
@ -89,7 +89,7 @@ class PostGISCreation(DatabaseCreation):
|
||||||
self.connection.close()
|
self.connection.close()
|
||||||
self.connection.settings_dict["NAME"] = test_database_name
|
self.connection.settings_dict["NAME"] = test_database_name
|
||||||
cursor = self.connection.cursor()
|
cursor = self.connection.cursor()
|
||||||
cursor.execute("CREATE EXTENSION postgis")
|
cursor.execute("CREATE EXTENSION IF NOT EXISTS postgis")
|
||||||
cursor.connection.commit()
|
cursor.connection.commit()
|
||||||
|
|
||||||
return test_database_name
|
return test_database_name
|
||||||
|
|
Loading…
Reference in New Issue