3 ms·
We used to use dbschema (https://pypi.org/project/dbschema/ https://pypi.org/project/dbschema/) to apply migrations generated by SchemaSync (http://mmatuson.git
by stephenr 8y ago
We used to use dbschema (https://pypi.org/project/dbschema/ https://pypi.org/project/dbschema/) to apply migrations generated by SchemaSync (http://mmatuson.github.io/SchemaSync/ http://mmatuson.github.io/SchemaSync/) using a helper script to simplify capturing a migration from a known base of previous migrations.
After submitting a number of bug fix and feature patches to the upstream projects I ended up writing a (IMO better) tool to apply the migration scripts (https://bitbucket.org/koalephant/mallard https://bitbucket.org/koalephant/mallard). We currently still rely on SchemaSync for that part, but it’s been more reliable and it’s ultimately a tool for developers who review the generated sql anyway - the tool to apply them needs to run automated on remote environments.