mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
alembic: fix ef39fcd6e1cd downgrade
op.drop_constraint requires a valid field to drop the constraint on. Without this, downgrade cannot occur. Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
parent
b41422450a
commit
82f6d2ce75
1 changed files with 1 additions and 1 deletions
|
@ -25,6 +25,6 @@ def upgrade():
|
||||||
|
|
||||||
def downgrade():
|
def downgrade():
|
||||||
# ### commands auto generated by Alembic - please adjust! ###
|
# ### commands auto generated by Alembic - please adjust! ###
|
||||||
op.drop_constraint(None, 'Users', type_='unique')
|
op.drop_constraint('SSOAccountID', 'Users', type_='unique')
|
||||||
op.drop_column('Users', 'SSOAccountID')
|
op.drop_column('Users', 'SSOAccountID')
|
||||||
# ### end Alembic commands ###
|
# ### end Alembic commands ###
|
||||||
|
|
Loading…
Add table
Reference in a new issue