Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix failing sqlite VerifyMigrationTask with Hsql (#3380)
Co-authored-by: hfhbd <hfhbd@users.noreply.github.com>
- Loading branch information
Showing
5 changed files
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
sqldelight-gradle-plugin/src/test/verify-migration-disabled-no-errors/build.gradle
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
buildscript { | ||
apply from: "${projectDir.absolutePath}/../buildscript.gradle" | ||
} | ||
|
||
apply plugin: 'org.jetbrains.kotlin.jvm' | ||
apply plugin: 'app.cash.sqldelight' | ||
|
||
repositories { | ||
maven { | ||
url "file://${projectDir.absolutePath}/../../../../build/localMaven" | ||
} | ||
mavenCentral() | ||
} | ||
|
||
sqldelight { | ||
Database { | ||
packageName = "com.example" | ||
dialect("app.cash.sqldelight:hsql-dialect:${app.cash.sqldelight.VersionKt.VERSION}") | ||
verifyMigrations = false | ||
} | ||
} |
3 changes: 3 additions & 0 deletions
3
sqldelight-gradle-plugin/src/test/verify-migration-disabled-no-errors/settings.gradle
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
apply from: "../settings.gradle" | ||
|
||
rootProject.name = 'sqldelight-migrations' |
3 changes: 3 additions & 0 deletions
3
...le-plugin/src/test/verify-migration-disabled-no-errors/src/main/sqldelight/example/Foo.sq
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
CREATE TABLE foo( | ||
bar BIGINT PRIMARY KEY AUTO_INCREMENT GENERATED ALWAYS AS IDENTITY | ||
); |