fix: RLS new db migration downgrade fails on SQLite (#20449)

This commit is contained in:
Daniel Vaz Gaspar 2022-06-21 13:07:23 +01:00 committed by GitHub
parent e3e37cb68f
commit ba4ba0267e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 5 deletions

View File

@ -72,8 +72,7 @@ def upgrade():
def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.drop_constraint("uq_rls_name", "row_level_security_filters", type_="unique")
op.drop_column("row_level_security_filters", "description")
op.drop_column("row_level_security_filters", "name")
# ### end Alembic commands ###
with op.batch_alter_table("row_level_security_filters") as batch_op:
batch_op.drop_constraint("uq_rls_name", type_="unique")
batch_op.drop_column("description")
batch_op.drop_column("name")