-
-
Notifications
You must be signed in to change notification settings - Fork 310
Closed
Labels
batch migrationsfeaturemotivated volunteers requesteda feature that has noone to implement; can reopen a 'wontfix'a feature that has noone to implement; can reopen a 'wontfix'
Description
I'd like to hear your opinion on possibility of setting the position of a column added in a batch migration (something like FIRST or AFTER <COLUMN> in mysql). It could work through an extra parameter in batch add_column
with op.batch_alter_table("some_table") as batch_op:
batch_op.add_column(Column('foo', Integer), before_column="bar")
My initial estimate is that changes would be required here: https://github.com/sqlalchemy/alembic/blob/master/alembic/operations/batch.py#L374 and in OrderedDict in sqlalchemy to support inserts
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
batch migrationsfeaturemotivated volunteers requesteda feature that has noone to implement; can reopen a 'wontfix'a feature that has noone to implement; can reopen a 'wontfix'