We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4529ba7 commit 3cc61d5Copy full SHA for 3cc61d5
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