Hi I'm new to Kotlin multiplatform, I'm using SQLDelight for my KMM project. is there a way to completely delete all old contents of old schema from db and point to new schema. i red it supports migration with versions https://cashapp.github.io/sqldelight/2.0.0-alpha05/android_sqlite/migrations/ i was looking for destructive migration without the need of carrying old content and schema. If there is any way by passing some value to driver or by setting some value to build.gradle
sqldelight {
database("ExploreLiveDataBase") {
packageName = "com.test.lib_test_imp.sqldelight"
sourceFolders = listOf("sqldelight")
linkSqlite = true
}
lateinit var context: Context
actual fun createDriver(): SqlDriver {
return AndroidSqliteDriver(test.Schema, context, "test.db")
}
If it's supported, will it also work cross platform on both iOS and Android. Any help is appreciated, Thank You.