Skip to content

Commit

Permalink
Avoid recreation of db every push
Browse files Browse the repository at this point in the history
  • Loading branch information
ninori9 committed Jan 7, 2025
1 parent 0ac60fc commit 40e7919
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,5 @@ public void createDefaultAdmin() {
admin.setOrganisation(systemOrg); // Assign the "System Organisation"
userRepository.save(admin);
}

System.out.println("System admin created.");
}
}
2 changes: 1 addition & 1 deletion src/main/resources/application.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
server.port=9007
spring.jpa.hibernate.ddl-auto=create
spring.jpa.hibernate.ddl-auto=update
spring.application.name=angelos-kb-backend
spring.datasource.url=jdbc:postgresql://localhost:5433/kbdatabase
spring.profiles.active=dev
Expand Down

0 comments on commit 40e7919

Please sign in to comment.