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

Automigrate -- auto-apply on the server #18

Open
tantaman opened this issue Sep 8, 2023 · 0 comments
Open

Automigrate -- auto-apply on the server #18

tantaman opened this issue Sep 8, 2023 · 0 comments

Comments

@tantaman
Copy link
Contributor

tantaman commented Sep 8, 2023

After updating a schema file, we require users to restart the server. Oof.

We should:

  1. watch schema files
  2. on schema file change, see if any open connections exist
  3. for each open connection, see if the db uses the changed schema
  4. for each db from (3), tear down the connection

The client will re-establish the connection and cause a migration to kick off.

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

1 participant