On 9/21/15 10:18 AM, Ofir Herzas wrote:
rename_table operation does not rename sequences if they exist.
This causes a problem that the renamed table is unusable since the
sequence is missing.
In Oracle, a simple rename works well (RENAME old_seq_name TO
new_seq_name;) although it says "table renamed".
Is there a sequence rename operation in Alembic? (not "drop" and "create")
built-in operations for sequences are a TODO for now, you can emit the
ALTER statement directly using op.execute():
op.execute("ALTER SEQUENCE foo RENAME TO bar")
--
You received this message because you are subscribed to the Google
Groups "sqlalchemy-alembic" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to sqlalchemy-alembic+unsubscr...@googlegroups.com
<mailto:sqlalchemy-alembic+unsubscr...@googlegroups.com>.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups
"sqlalchemy-alembic" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to sqlalchemy-alembic+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.