Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions python/ribasim/ribasim/db_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ def exists(connection: Connection, name: str) -> bool:

def _set_gpkg_attribute_table(connection: Connection, table: str) -> None:
# Set geopackage attribute table
if not exists(connection, "gpkg_contents"):
return # Not a geopackage (yet?), so skip
with closing(connection.cursor()) as cursor:
sql = "INSERT OR REPLACE INTO gpkg_contents (table_name, data_type, identifier, last_change) VALUES (?, ?, ?, ?)"
cursor.execute(sql, (table, "attributes", table, fake_date))
Expand Down
Loading
Loading