We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6511589 commit 5c0fa82Copy full SHA for 5c0fa82
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 "button".order={i+1}, "button".link="a", "button".type="b", where "button".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