danieeh
12/15/2020, 10:26 AM.sq
file with its queries
- I’ve added a 1.sqm
file adding a new column
- this is the sqldelight configuration:
sqldelight {
database("EntertainmentDb") {
packageName = "[..].entertainment.db"
sourceFolders = listOf("sqldelight")
deriveSchemaFromMigrations = true
schemaOutputDirectory = file("src/main/sqldelight/db/")
migrationOutputDirectory = file("$buildDir/resources/main/migrations")
migrationOutputFileFormat = ".sql"
dialect = "postgresql"
}
}
but when executing the interface task I get all these errors.. thanks in advance!danieeh
12/15/2020, 10:57 AMderiveSchemaFromMigrations = true
the task to generate the schema is gone and is replace with the task generate[..]Migrations
Nikky
12/15/2020, 1:39 PMNikky
12/15/2020, 1:40 PMNikky
12/15/2020, 1:41 PMdanieeh
12/15/2020, 3:26 PMderiveSchemaFromMigrations
anymore, and I have the entities in .sq files migrations in .sqm files both under
src->main->sqldelight->..
thats not correct then? migration code its generated correctly 🙄 👍
also I have the question of how to handle the versions in order to create the tables fresh or go through migrate(driver: SqlDriver, oldVersion: Int, newVersion: Int)
about flyway.. can you point me to any comparison between them? main benefit I see yet is the compile time verification