From 56d564b51aa9cbb2cb6be4bd2b1765530b3144fd Mon Sep 17 00:00:00 2001 From: Adrien Berchet Date: Thu, 1 Sep 2022 09:56:26 +0200 Subject: [PATCH] Fix: Pass the schema in alembic_helpers.create_geospatial_table() --- geoalchemy2/alembic_helpers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/geoalchemy2/alembic_helpers.py b/geoalchemy2/alembic_helpers.py index 1726c498..a6e74844 100644 --- a/geoalchemy2/alembic_helpers.py +++ b/geoalchemy2/alembic_helpers.py @@ -414,8 +414,8 @@ def create_geospatial_table(operations, operation): table_name = operation.table_name bind = operations.get_bind() - # For now the default events defined in geoalchemy2 are enought to handle table creation - operations.create_table(table_name, *operation.columns, **operation.kw) + # For now the default events defined in geoalchemy2 are enough to handle table creation + operations.create_table(table_name, *operation.columns, schema=operation.schema, **operation.kw) if bind.dialect.name == "sqlite": _SPATIAL_TABLES.add(table_name)