https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
k

kpgalligan

12/03/2021, 4:06 PM
So, you need to grab the version from the old db and set it manually in the new db, then you'd avoid the migration on sqldelight start. I'm making the assumption that sqldelight is trying to create a table that already exists from your migration process (correct?)
a

Andrew O Hart

12/03/2021, 4:43 PM
Yeah Kevin it looks like it is trying to create a table when I return NativeSqliteDriver(DatabaseConfiguration) which is done after the migration process. I'm assuming the issue is the way I'm setting the version.
Thanks for the example Jake, going to take a look at it and see if I can apply it to our logic
6 Views