mirror of https://github.com/apache/superset.git
fix: RLS new db migration downgrade fails on SQLite (#20449)
This commit is contained in:
parent
e3e37cb68f
commit
ba4ba0267e
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue