4 ms·
If I'm using alembic for schema migrations already, how do I make use of this?
by tibanne 3y ago
If I'm using alembic for schema migrations already, how do I make use of this?
- surjection 3y agoWe are looking to build integrations with other tools but for now isn't recommended to use pgroll alongside another migration tool. To try out pgroll on a database with an existing schema (whether created by hand or by another migration tool), you should be able to have pgroll infer the schema when you run your first migration. You could try this out in a staging/test environment by following the docs to create your first migration with pgroll. The resulting schema will then contain views for all your existing tables that were created with alembic. Subsequent migrations could then be created with pgroll. It would be great to try this out and get some feedback on how easy it is to make this switch; it may be that the schema inference is incomplete in some way.