Commit 7b119c1c authored by Thomas Schreiber's avatar Thomas Schreiber Committed by Claude Paroz
Browse files

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

parent 0b825adc
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -89,7 +89,7 @@ class PostGISCreation(DatabaseCreation):
            self.connection.close()
            self.connection.settings_dict["NAME"] = test_database_name
            cursor = self.connection.cursor()
            cursor.execute("CREATE EXTENSION postgis")
            cursor.execute("CREATE EXTENSION IF NOT EXISTS postgis")
            cursor.connection.commit()

        return test_database_name