Kaydet (Commit) 7b119c1c authored tarafından Thomas Schreiber's avatar Thomas Schreiber Kaydeden (comit) Claude Paroz

only attempt to create the postgis extension when it does not already exist

üst 0b825adc
...@@ -89,7 +89,7 @@ class PostGISCreation(DatabaseCreation): ...@@ -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
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