From 30b4493b0a908d12aad0ddc07c5f90d86e2933e1 Mon Sep 17 00:00:00 2001 From: anderssonw Date: Thu, 30 May 2024 15:22:21 +0200 Subject: [PATCH] try with public schema --- .../kotlin/no/kartverket/matrikkel/bygning/Application.kt | 2 +- src/main/resources/db/migration/V1__init_db.sql | 6 +----- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/src/main/kotlin/no/kartverket/matrikkel/bygning/Application.kt b/src/main/kotlin/no/kartverket/matrikkel/bygning/Application.kt index d16b8a9b..cc4bb4ca 100644 --- a/src/main/kotlin/no/kartverket/matrikkel/bygning/Application.kt +++ b/src/main/kotlin/no/kartverket/matrikkel/bygning/Application.kt @@ -54,7 +54,7 @@ fun Application.module() { val dbConnection = DatabaseSingleton.getConnection() ?: throw RuntimeException("Kunne ikke koble til database") - val flyway = Flyway.configure().validateMigrationNaming(false).defaultSchema("bygning").dataSource( + val flyway = Flyway.configure().validateMigrationNaming(false).defaultSchema("public").dataSource( DatabaseSingleton.getJdbcURL(), DatabaseSingleton.getUsername(), DatabaseSingleton.getPassword() ).load() diff --git a/src/main/resources/db/migration/V1__init_db.sql b/src/main/resources/db/migration/V1__init_db.sql index 0c28a58a..07e76518 100644 --- a/src/main/resources/db/migration/V1__init_db.sql +++ b/src/main/resources/db/migration/V1__init_db.sql @@ -48,8 +48,4 @@ values ('2', 1983, true, false); insert into bygning_oppvarminger (bygning_id, oppvarming_id) values ('1', 1); insert into bygning_energikilder (bygning_id, energikilde_id) -VALUES ('2', 1); - - -select * -from bygning; \ No newline at end of file +VALUES ('2', 1); \ No newline at end of file