Hacker News new | ask | show | jobs
by erikaww 951 days ago
How do you handle migrations?
2 comments

Every postgres migration is done through an Electric proxy and it converts it into a corresponding sqlite migration that it can apply later on the client. In case of a migration that would be somehow breaking you can also drop the client-side sqlite database and resync state from postgres.
The docs say Electric propagates migrations (DDL) on Postgres synced tables to their “satellite” clients