Skip to content

Commit

Permalink
Fix migration script to work with all deployments
Browse files Browse the repository at this point in the history
  • Loading branch information
varmar05 committed Nov 11, 2024
1 parent 3bdd3dd commit 5bdeef7
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@


def upgrade():
conn = op.get_bind()
conn.execute(sa.text("CREATE EXTENSION IF NOT EXISTS intarray;"))

op.create_table(
"project_member",
sa.Column("project_id", postgresql.UUID(as_uuid=True), nullable=False),
Expand Down Expand Up @@ -50,6 +53,7 @@ def upgrade():
data_upgrade()

op.drop_table("project_access")
conn.execute(sa.text("DROP EXTENSION IF EXISTS intarray;"))


def downgrade():
Expand Down

0 comments on commit 5bdeef7

Please sign in to comment.