Skip to content

Commit 5bdeef7

Browse files
committed
Fix migration script to work with all deployments
1 parent 3bdd3dd commit 5bdeef7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

server/migrations/community/d02961c7416c_add_project_member_table.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@
1818

1919

2020
def upgrade():
21+
conn = op.get_bind()
22+
conn.execute(sa.text("CREATE EXTENSION IF NOT EXISTS intarray;"))
23+
2124
op.create_table(
2225
"project_member",
2326
sa.Column("project_id", postgresql.UUID(as_uuid=True), nullable=False),
@@ -50,6 +53,7 @@ def upgrade():
5053
data_upgrade()
5154

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

5458

5559
def downgrade():

0 commit comments

Comments
 (0)