We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3cc61d5 commit 6511589Copy full SHA for 6511589
1 file changed
migrations/versions/6a486347af93_order.py
@@ -23,7 +23,7 @@ def upgrade():
23
conn = op.get_bind()
24
res = conn.execute(sa.text("select id from button")).fetchall()
25
for i in range(0, len(res)):
26
- conn.execute(sa.text(f'UPDATE "button" set order={i+1}, link="a", type="b", where id={res[i]}'))
+ conn.execute(sa.text(f'UPDATE "button" SET order={i+1}, link="a", type="b", where id={res[i]}'))
27
op.alter_column('button', 'order', nullable=False)
28
op.alter_column('button', 'link', nullable=False)
29
op.alter_column('button', 'type', nullable=False)
0 commit comments