News for hackers. Stuff that matters.
Re:SQLite the only database you will ever need in most cases by chillfox on Wednesday February 15, 2023 @08:56PM (#34813947)
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.

There are no comments on this comment yet.