Skip to content

Commit bd9103d

Browse files
committed
Force jOOQ to use Instant for TIMESTAMP
since SQLite otherwise messes it up and uses LocalDateTime instead
1 parent 6a70dfd commit bd9103d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

buildSrc/src/main/groovy/database-settings.gradle

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,13 @@ jooq {
4242
database {
4343
name = 'org.jooq.meta.sqlite.SQLiteDatabase'
4444
excludes = 'flyway_schema_history|sqlite_sequence'
45+
46+
forcedTypes {
47+
forcedType {
48+
name = 'INSTANT'
49+
includeTypes = 'TIMESTAMP'
50+
}
51+
}
4552
}
4653
generate {
4754
records = true

0 commit comments

Comments
 (0)