Hacker News new | past | comments | ask | show | jobs | submit login

I haven't looked into how everyone else does migrations in SQLite.

The way I do it is to check the DB version `PRAGMA user_version;` on application start and run migrations if required, before the app starts taking connections. Yes, this means my app will be unavailable for a few seconds when upgrading. If you want a zero downtime solution then you will have to do it in a different way.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: