Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add database migration #57

Open
wants to merge 18 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
<spring-cloud.version>2021.0.3</spring-cloud.version>
<testcontainer.version>1.17.6</testcontainer.version>
<de.uni-stuttgart.gamify-it.authentification-validator.version>v1.0.0</de.uni-stuttgart.gamify-it.authentification-validator.version>
<liquibase.version>4.19.0</liquibase.version>
</properties>
<repositories>
<repository>
Expand Down Expand Up @@ -102,6 +103,11 @@
<artifactId>authentification-validator</artifactId>
<version>${de.uni-stuttgart.gamify-it.authentification-validator.version}</version>
</dependency>
<dependency>
<groupId>org.liquibase</groupId>
<artifactId>liquibase-core</artifactId>
<version>${liquibase.version}</version>
</dependency>
</dependencies>
<dependencyManagement>
<dependencies>
Expand Down
16 changes: 8 additions & 8 deletions src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,20 @@ spring.datasource.url=jdbc:postgresql://localhost:5432/postgres
spring.datasource.username=postgres
spring.datasource.password=postgres


spring.jpa.properties.hibernate.jdbc.lob.non_contextual_creation=true
spring.jpa.generate-ddl=true


server.servlet.context-path=/api/v1
springdoc.swagger-ui.path=/swagger-ui
springdoc.swagger-ui.disable-swagger-default-url=true

chickenshock.url= http://localhost/minigames/chickenshock/api/v1
finitequiz.url= http://localhost/minigames/finitequiz/api/v1
towercrush.url= http://localhost/minigames/towercrush/api/v1
crosswordpuzzle.url= http://localhost/minigames/crosswordpuzzle/api/v1
bugfinder.url= http://localhost/minigames/bugfinder/api/v1
chickenshock.url=http://localhost/minigames/chickenshock/api/v1
finitequiz.url=http://localhost/minigames/finitequiz/api/v1
towercrush.url=http://localhost/minigames/towercrush/api/v1
crosswordpuzzle.url=http://localhost/minigames/crosswordpuzzle/api/v1
bugfinder.url=http://localhost/minigames/bugfinder/api/v1

Gr33ndev marked this conversation as resolved.
Show resolved Hide resolved
keycloak.issuer=http://localhost/keycloak/realms/Gamify-IT
keycloak.url=http://localhost/keycloak/realms/Gamify-IT
keycloak.url=http://localhost/keycloak/realms/Gamify-IT

spring.liquibase.change-log=classpath:db/changelog-root.xml
11 changes: 11 additions & 0 deletions src/main/resources/db/changelog-root.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<databaseChangeLog
xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:pro="http://www.liquibase.org/xml/ns/pro"
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog
http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-4.1.xsd
http://www.liquibase.org/xml/ns/pro
http://www.liquibase.org/xml/ns/pro/liquibase-pro-4.1.xsd">
<includeAll path="db/changelog/"/><!-- Automatically queries all files in this directory in lexical order -->
</databaseChangeLog>
Loading