Revision autogenerate fails to import datetime #1770
Replies: 1 comment 4 replies
-
|
Hi, Can you provide an example? Datetime should be available from the
I would advise against such a workflow, since autogenerate is intended to be a starting point for a migration, developers are expected to verify and correct it as needed. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
When having a SQLAlchemy model than has a Datetime field, alembic fails to import datetime in the migration file, which is mandatory for "upgrade".
The only fix I found so far is to manually import datetime in freshly generated migration files.
Unfortunately, this breaks the flow of orchestration using docker and similar tools. Since it's needed to manually change a file in the middle of migration steps, you can't fully orchestrate the project.
Beta Was this translation helpful? Give feedback.
All reactions