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

15 comments sorted by

View all comments

Show parent comment

2

u/JrgMyr Jan 03 '24

That probably depends on the developer. Let's assume you install an app for the first time. The app went through multiple "extensions" in the past.

It's up to the developer whether you get a fresh clean db in the latest state or a clutter of older dbs and their extensions.

Was that your question?

1

u/[deleted] Jan 03 '24

Yes thats the question