Skip to content

Commit

Permalink
cicd: fixed command
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivica Matic committed Nov 13, 2023
1 parent 62e7bcd commit 4c7cd49
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion database.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,11 @@ def store_collection_in_database(

if __name__ == '__main__':
plugin_enable_statement = sa.text("CREATE EXTENSION IF NOT EXISTS postgis;")
with engine.connect() as conn:
with engine.begin() as conn:
conn.execute(plugin_enable_statement)
logger.info("Enabled postgis extension")
print("Enabled postgis extension")
# commit the changes


base.metadata.create_all(engine)

0 comments on commit 4c7cd49

Please sign in to comment.