Andrew O Hart
04/06/2022, 11:57 AMrusshwolf
04/06/2022, 2:35 PM.sq
file, you probably also need a .sqm
file with the changes. See https://cashapp.github.io/sqldelight/jvm_sqlite/migrations/Andrew O Hart
04/06/2022, 3:41 PMkpgalligan
04/06/2022, 7:52 PMAndrew O Hart
04/06/2022, 10:12 PMkpgalligan
04/06/2022, 10:54 PM.sq
files, if you have 5 tables that should be in your db, you need 5 create statements. One for each table. If somebody installed your app, brand new, right now, and you needed those 5 tables, they all need create statements in .sq
files. For a brand new database, migration is never run. I think that’s the critical part you need to visualize. If you had 2 migrations from when you first started developing your app, your db version would be “3”. When a new user installs your app, they don’t go through versions 1 and 2. The new db has the create statements run, and the version is just set to 3..sq
files look like? Whatever that is, that is exactly what they should look like with migrations.Andrew O Hart
04/07/2022, 9:00 AMkpgalligan
04/07/2022, 3:37 PM