Compare commits

..

No commits in common. "2980248669c47a6b6b0619195d52817c3e411a85" and "6145597d8cb8e02f8312d5a2ac4c42cdff122b2b" have entirely different histories.

5 changed files with 11 additions and 30 deletions

6
.gitignore vendored
View File

@ -55,9 +55,3 @@ cached-antora-playbook.yml
node_modules
/.kotlin/
### Environment ###
.env
*.env
**/*.env

6
backend/.gitignore vendored
View File

@ -36,10 +36,6 @@ out/
### VS Code ###
.vscode/
### Environment ###
.env
*.env
**/*.env
### Database ###
data/

View File

@ -34,7 +34,6 @@ dependencies {
compileOnly 'org.projectlombok:lombok'
developmentOnly 'org.springframework.boot:spring-boot-devtools'
runtimeOnly 'com.h2database:h2'
runtimeOnly 'org.postgresql:postgresql'
annotationProcessor 'org.projectlombok:lombok'
annotationProcessor 'org.mapstruct:mapstruct-processor:1.6.3'
testImplementation 'org.springframework.boot:spring-boot-starter-data-jdbc-test'

View File

@ -1,24 +1,17 @@
spring:
application:
name: backend
sql:
init:
mode: always
schema-locations: classpath:schema.sql
datasource:
url: jdbc:postgresql://${DB_HOST}:${DB_PORT}/${DB_NAME}
username: ${DB_USER}
password: ${DB_PASSWD}
url: jdbc:h2:file:./data/db
driver-class-name: org.h2.Driver
username: sa
password:
jpa:
hibernate:
ddl-auto: update
show-sql: true
database-platform: org.hibernate.dialect.H2Dialect
h2:
console:
enabled: true
path: /h2-console
properties:
hibernate:
dialect: org.hibernate.dialect.PostgreSQLDialect
format_sql: true
default_schema: server-manager

View File

@ -1 +0,0 @@
CREATE SCHEMA IF NOT EXISTS "server-manager";