From 6cf62efd62de310fc49d88bb5c88cbf91ba73b2b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Brunner?= Date: Wed, 7 Jun 2023 14:34:48 +0200 Subject: [PATCH] Fix Alembic upgrade See: https://github.com/sqlalchemy/alembic/issues/1130 https://github.com/sqlalchemy/alembic/commit/df75e85489b9ae69fffff2c5ad2594b30bed2fd4 --- .../main/52916d8fde8b_add_sql_fields_to_vector_tiles.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/commons/c2cgeoportal_commons/alembic/main/52916d8fde8b_add_sql_fields_to_vector_tiles.py b/commons/c2cgeoportal_commons/alembic/main/52916d8fde8b_add_sql_fields_to_vector_tiles.py index 3e33b7581fc..eef1935e119 100644 --- a/commons/c2cgeoportal_commons/alembic/main/52916d8fde8b_add_sql_fields_to_vector_tiles.py +++ b/commons/c2cgeoportal_commons/alembic/main/52916d8fde8b_add_sql_fields_to_vector_tiles.py @@ -1,4 +1,4 @@ -# Copyright (c) 2020-2021, Camptocamp SA +# Copyright (c) 2020-2023, Camptocamp SA # All rights reserved. # Redistribution and use in source and binary forms, with or without @@ -48,11 +48,11 @@ def upgrade() -> None: """Upgrade.""" schema = config["schema"] table = "layer_vectortiles" - op.add_column(table, Column("sql", Unicode, nullable=True), schema) + op.add_column(table, Column("sql", Unicode, nullable=True), schema=schema) def downgrade() -> None: """Downgrade.""" schema = config["schema"] table = "layer_vectortiles" - op.drop_column(table, "sql", schema) + op.drop_column(table, "sql", schema=schema)