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

Add checks for two-database upgrade problems #2545

Merged
merged 6 commits into from Jan 13, 2020

Conversation

jnm
Copy link
Member

@jnm jnm commented Jan 7, 2020

Since they are tagged with Tags.database, these checks won't run when the application starts up to serve requests, but they will stop migrations from happening.

Closes #2543. Work continues at kobotoolbox/kobo-install#65.

P.S.: I've added a new is_database_empty management command to this PR that I'll use for kobotoolbox/kobo-install#65.

P.P.S.: I've added another management command, wait_for_database, so that we know when it's safe to run is_database_empty.

since it's no longer possible for KPI and KoBoCAT to share a database
jnm added a commit to kobotoolbox/kobo-install that referenced this pull request Jan 9, 2020
jnm added a commit to kobotoolbox/kobo-install that referenced this pull request Jan 9, 2020
…when running two-database migration checks
@noliveleger noliveleger merged commit ccd0771 into two-databases Jan 13, 2020
@noliveleger noliveleger deleted the 2543-two-database-guardrails branch January 13, 2020 15:41
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

Successfully merging this pull request may close these issues.

None yet

2 participants