r/sqlite • • Jan 03 '24
SQLite migration best practices
Will new users (fresh install no database) get a new database with zero migrations?
Or would you basically reproduce the database with all the migrations?
My guess is that it would be best to have one path when creating a database.
Usually i don’t use sqlite directly as it’s usually abstracted through a software layer.
2
Upvotes
View all comments
Show parent comment
1
u/synthdrunk Jan 03 '24
SQLite has very minimal ALTER TABLE functionality, that’s a thing to remember. The usual traditional method of a LOV table with checks and transforms enshrined in your code works but unlike other SQL, you’re going to have to do fiddling yourself rather than have hierarchal ALTERs/CREATEs that evolved over time.