Skip to content

Commit

Permalink
try with public schema
Browse files Browse the repository at this point in the history
  • Loading branch information
anderssonw committed May 30, 2024
1 parent 9172ea4 commit 30b4493
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down
6 changes: 1 addition & 5 deletions src/main/resources/db/migration/V1__init_db.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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;
VALUES ('2', 1);

0 comments on commit 30b4493

Please sign in to comment.