Skip to content

Commit

Permalink
Fix Alembic upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrunner committed Jun 7, 2023
1 parent 10218ca commit 6cf62ef
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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)

0 comments on commit 6cf62ef

Please sign in to comment.