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

Database Migrations #404

Closed
goto-bus-stop opened this issue Aug 19, 2020 · 0 comments · Fixed by #410
Closed

Database Migrations #404

goto-bus-stop opened this issue Aug 19, 2020 · 0 comments · Fixed by #410
Assignees

Comments

@goto-bus-stop
Copy link
Member

For #401, #303, and to prepare for future database changes, it would be great to have a database migration thing set up.

I think it will be easiest for us if we make these migrations run at boot time, with avvio… We have to decide then if/how we handle incoming requests during the setup phase, eg:

  • Do nothing and let the reverse proxy figure out that the API is unreachable
  • Have a temporary server that just responds with a JSON-API Service Unavailable response

It looks like https://github.com/tj/node-migrate could be a handy library for doing the actual migrations. We can write a MongoDB-based migration storage.

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 a pull request may close this issue.

1 participant