change postgresjson to postgresjson-jdbc

This commit is contained in:
2019-08-04 20:07:46 +02:00
parent ba398a3ee7
commit a66ef0128b
3 changed files with 3 additions and 3 deletions

View File

@@ -36,7 +36,7 @@ dependencies {
implementation("com.fasterxml.jackson.module:jackson-module-kotlin:2.9.9")
implementation("com.fasterxml.jackson.datatype:jackson-datatype-joda:2.9.9")
implementation("net.pearx.kasechange:kasechange-jvm:1.1.0")
implementation("fr.postgresjson:postgresjson:$postgresjson_version")
implementation("fr.postgresjson:postgresjson-jdbc:$postgresjson_version")
testImplementation("io.ktor:ktor-server-tests:$ktor_version")
testImplementation("io.ktor:ktor-client-mock:$ktor_version")
testImplementation("io.ktor:ktor-client-mock-jvm:$ktor_version")

View File

@@ -13,7 +13,7 @@ create table citizen
(
id uuid default uuid_generate_v4() not null primary key,
created_at timestamptz default now() not null,
name jsonb not null check ( name ? 'first_name' and name ? 'last_name' ),
name jsonb not null check ( name ?? 'first_name' and name ?? 'last_name' ),
birthday date not null,
user_id uuid not null references "user" (id) unique,
vote_annonymous boolean default true not null,

View File

@@ -46,7 +46,7 @@ class RunCucumberTest: En, KoinTest {
getFixturesRequester()
.getQueries()
.sortedBy { it.name }
.forEach { it.exec() }
.forEach { it.sendQuery() }
logger?.info("Fixtures Done")
}