How to use Alembic in a plugin-based application with separate migrations per plugin? #1698
Unanswered
alikhd1
asked this question in
Usage Questions
Replies: 1 comment 4 replies
-
the key question is do you want a single alembic_version table or an alembic_version table per plugin ? |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Summary:
I'm trying to achieve this by creating an Alembic setup in my main app and a separate Alembic setup for each plugin inside their respective folders. The main app migrations are autogenerated and upgraded successfully.
However, when I try to create a revision in a plugin, it raises the following error:
Can't locate revision identified by '0845c2f24355'
This is the revision ID of the main app's database version.
How can I achieve this setup correctly? Is there a better way to implement this?
Beta Was this translation helpful? Give feedback.
All reactions