diff --git a/build.gradle.kts b/build.gradle.kts index 5341ce3..4774153 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -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") diff --git a/src/main/resources/sql/migrations/0000-init_schema.up.sql b/src/main/resources/sql/migrations/0000-init_schema.up.sql index 8969113..440f481 100644 --- a/src/main/resources/sql/migrations/0000-init_schema.up.sql +++ b/src/main/resources/sql/migrations/0000-init_schema.up.sql @@ -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, diff --git a/src/test/kotlin/RunCucumberTest.kt b/src/test/kotlin/RunCucumberTest.kt index 6d74e42..f173687 100644 --- a/src/test/kotlin/RunCucumberTest.kt +++ b/src/test/kotlin/RunCucumberTest.kt @@ -46,7 +46,7 @@ class RunCucumberTest: En, KoinTest { getFixturesRequester() .getQueries() .sortedBy { it.name } - .forEach { it.exec() } + .forEach { it.sendQuery() } logger?.info("Fixtures Done") }