alembic with sqlite memory autogenerate does not work #1086
Unanswered
jmgurney
asked this question in
Usage Questions
Replies: 1 comment 6 replies
-
Hi, You replied to your question there. Using memory every time the database is up to date so there is nothing to do from alembic autogenerate point of view. |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm using alembic to manage revisions of an SQLite3 file format. As such, there isn't a "database" that is a reference database that I keep around for the project. I am using SQLAlchemy's ORM, so I've declared the full format.
I use:
and that worked for the first time to autogenerate the initial db w/o issues. The problem is that when I update the ORM, and then try to autogenerate a new revision, I get:
and this is because the database in memory wasn't updated/created as it was new for the revision command while it's clear the alembic expects a database to already be in some sort of state that I'm not sure what it should be.
I was able to get a revision working not using autogenerate, but I'd like to simply be able to update the ORM, run
--autogenerate
to add the new columns/tables (so I don't have to figure out that magic syntax and copy names around every time), and then only need to add the necessary functions to update as needed.Is this possible?
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions