Covalent Migrations via CLI #824
AlejandroEsquivel
started this conversation in
General
Replies: 1 comment 4 replies
-
I see the value for automating the migrate command with Automating the migrations with
@AlejandroEsquivel thoughts? |
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
-
One question regarding the
migrate cli
command: I’m wondering if we want just to incorporate this functionality every time covalent starts instead of having a separate covalent cli command.The reasoning for this would be as covalent would break whenever say a feature branch is merged into develop, one would need to run always run the migrate command otherwise the application would error out when trying to access columns which may not exist (due to newly introduced fields as part of feature branch).
What I'm proposing is maybe a
--no-migrate
flag (or simply the-d
(development) flag) on covalent start if we want to avoid running migrations.Moreover I think that the alembic cli tool should be used to manage migrations for development purposes and we shouldn't try to achieve feature parity with our own cli.
Beta Was this translation helpful? Give feedback.
All reactions