Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Special exit code when migrations are needed. #161

Open
peb-adr opened this issue Feb 10, 2022 · 2 comments
Open

Special exit code when migrations are needed. #161

peb-adr opened this issue Feb 10, 2022 · 2 comments
Milestone

Comments

@peb-adr
Copy link
Member

peb-adr commented Feb 10, 2022

As mentioned shortly in #155 (comment), it would be nice to have the manage-tool exit on a seperate code (rather than just 1) for every subcommand that couldn't succeed because migrations in the backend are missing.

This would come in handy e.g. during an update, where manage commands might be called before the migrations have finished (or started even).
If the exit code would indicate this case, we could react to that better.

At first I was thinking 2, but that's conventionally reserved as well.
So I think we could introduce 3 here as our first custom exit code.

@normanjaeckel
Copy link
Member

Does the backend tell me whether migrations are required? How?

@normanjaeckel normanjaeckel removed their assignment Mar 3, 2022
@normanjaeckel normanjaeckel added this to the 4.0 milestone Mar 3, 2022
@normanjaeckel
Copy link
Member

I still do not know how to guess whether migrations are required (except for the initial-data command where the backend recently implemented some stuff).

@normanjaeckel normanjaeckel modified the milestones: 4.0, 4.1 Dec 13, 2022
@jsangmeister jsangmeister modified the milestones: 4.1, 4.2 Dec 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants