Skip to content

Commit aba36d1

Browse files
Fix
1 parent 5c0fa82 commit aba36d1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

migrations/versions/6a486347af93_order.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def upgrade():
2323
conn = op.get_bind()
2424
res = conn.execute(sa.text("select id from button")).fetchall()
2525
for i in range(0, len(res)):
26-
conn.execute(sa.text(f'UPDATE "button" SET "button".order={i+1}, "button".link="a", "button".type="b", where "button".id={res[i]}'))
26+
conn.execute(sa.text(f'UPDATE "button" SET "button".order={i+1}, "button".link="a", "button".type="b" WHERE "button".id={res[i]}'))
2727
op.alter_column('button', 'order', nullable=False)
2828
op.alter_column('button', 'link', nullable=False)
2929
op.alter_column('button', 'type', nullable=False)

0 commit comments

Comments
 (0)