Initialize revision for tables with foreign keys #1588
Unanswered
DGDarkKing
asked this question in
Usage Questions
Replies: 1 comment 3 replies
-
Hi, This is at most a matter of preference. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Describe the bug
When tables with foreign keys are defined and the first command
revision --autogenerate
is executed, the generate script includes onlycreate_table()
methods withForeignKey
arguments passed within them.Expected behavior
Generated script should includes
create_table()
methods at the beginning andcreate_foreign_key()
at the end to ensure proper separation of table creation and foreign key constraintsVersions.
Have a nice day!
Beta Was this translation helpful? Give feedback.
All reactions