Using custom kotlin types in migration files means those files are no longer valid SQL. You can optionally configure a gradle task to output your migration files as valid SQL for other services to read from:
sqldelight {
databases {
Database {
migrationOutputDirectory = layout.buildDirectory.dir("resources/main/migrations")
migrationOutputFileFormat = ".sql" // Defaults to .sql
}
}
This creates a new task generateMainDatabaseMigrations
which will output your .sqm
files as valid SQL in the output directory, with the output format. Create a dependency from your compileKotlin task so that services such as flyway will have the files available on their classpath:
compileKotlin.configure {
dependsOn "generateMainDatabaseMigrations"
}
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4