Hi, I’m trying to add a table in my sqldelight sch...
# multiplatform
o
Hi, I’m trying to add a table in my sqldelight schema but the app doesn’t update the database schema I even try deleting the data and uninstalling the app but it still remain the old Schema, Is there a way to force the upgrade of the schema? (like the “version” in Realm) Strange thing is that if I check the generated class “DatabaseImpl” it has the correct generation of tables, and if I change the name of the database it works as intended (generate the new schema) but if I use the same name the table is not there 😕 . I’m using sqldelight 1.5.3
Copy code
sqldelight{
    database("Database"){
        packageName = "package.name.datasource.cache"
        sourceFolders = listOf("sqldelight")
        verifyMigrations = true
    }
}
Any Ideas? The issue is happening on Android. Thanks !!
e
#squarelibraries
k
Are you using Migration files(https://cashapp.github.io/sqldelight/js_sqlite/migrations/)? I would think if you uninstall the app it should work anyway but maybe the migrations could help
o
not really, I will try with that thank you!!