3 ms·
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 r
by chillfox 4y ago
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.