diff --git a/migrations/versions/6a486347af93_order.py b/migrations/versions/6a486347af93_order.py index 893ac35..dfacc85 100644 --- a/migrations/versions/6a486347af93_order.py +++ b/migrations/versions/6a486347af93_order.py @@ -23,7 +23,7 @@ def upgrade(): conn = op.get_bind() res = conn.execute(sa.text("select id from button")).fetchall() for i in range(0, len(res)): - 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]}')) op.alter_column('button', 'order', nullable=False) op.alter_column('button', 'link', nullable=False) op.alter_column('button', 'type', nullable=False)