automatically track table changes for copy_from in batch operations
Thomas Tanner
Branch: ttanner/alembic:batchtable
ttanner/alembic:batchtable
Branch: zzzeek/alembic:master
zzzeek/alembic:master
Declined
#41 · Created  · Last updated
Declined pull request
PR is out of date
Closed by: Mike Bayer·2016-03-16
Description
With this PR copy_from is automatically set in offline batch migrations by tracking table changes from base. copy_from may be explicitly overwritten by the migration script.
This is work in-progress.
Problems:
does not work when start_rev > base. It would require tracking table changes from base to start_rev without applying backend changes
constraints do not seem to tracked properly (example: add Boolean column, drop it, add Boolean again creates two constraints). is this an unrelated bug?
With this PR copy_from is automatically set in offline batch migrations by tracking table changes from base. copy_from may be explicitly overwritten by the migration script.
This is work in-progress.
Problems:
does not work when start_rev > base. It would require tracking table changes from base to start_rev without applying backend changes
constraints do not seem to tracked properly (example: add Boolean column, drop it, add Boolean again creates two constraints). is this an unrelated bug?