https://kotlinlang.org logo
#squarelibraries
Title
# squarelibraries
w

William Reed

08/24/2022, 3:45 PM
I have this config for sqldelight
Copy code
sqldelight {
    database("MyDb") {
        packageName = "com.foo.bar"
        dialect = "mysql"

        sourceFolders = listOf("sqldelight")
        migrationOutputDirectory = file("$buildDir/resources/main/migrations")
        migrationOutputFileFormat = ".sql"
    }
}
the
generateMainDatabaseMigrations
task is not being created. is there something else I’m missing? I have my initial
CREATE TABLE
statement & queries in
src/main/sqldelight/com/foo/bar/…
and I have my
.sqm
file in
src/main/sqldelight/…
h

hfhbd

08/28/2022, 7:56 PM
Which version? I think there was an error with the task creation logic some time ago (with 1.5.3): https://github.com/cashapp/sqldelight/issues/2744 Should be fixed with 2.0.0-alpha01 and up
w

William Reed

09/08/2022, 5:56 PM
thank’s i actually did end up finding that version. i was on the last stable version so i must have been hitting that
36 Views