Automigrate -- auto-apply on the server
tantaman opened this issue · comments
Matt Wonlaw commented
After updating a schema file, we require users to restart the server. Oof.
We should:
- watch schema files
- on schema file change, see if any open connections exist
- for each open connection, see if the db uses the changed schema
- for each db from (3), tear down the connection
The client will re-establish the connection and cause a migration to kick off.