Hey all! Having a tough time with my migrations s...
# squarelibraries
i
Hey all! Having a tough time with my migrations seeing multiple errors where it doesn't see the table. When I run gradle build I get:
Copy code
.../shared/src/commonMain/sqldelight/1.sqm line 1:12 - Attempting to alter something that is not a table.
1    ALTER TABLE character ADD COLUMN strength INTEGER
                 ^^^^^^^^^

.../shared/src/commonMain/sqldelight/1.sqm line 1:12 - No table found with name character
1    ALTER TABLE character ADD COLUMN strength INTEGER
                 ^^^^^^^^^
a
what does your
build.gradle
look like
i
Thanks for the quick reply!
Copy code
sqldelight {
    database("ChorgiDatabase") {
        packageName = "chorgi.db"
        schemaOutputDirectory = file("src/main/sqldelight/databases")
        verifyMigrations = true
    }
}
Happy to include more if you need it
a
do you have a
.db
file for
1.db
?
i
No how would that work?
a
you should turn off
verifyMigrations
then
migration verification needs a schema to check migrations against
i
ahhh...
150 Views