🚧 Add flyway

This commit is contained in:
Andreas Dinauer 2026-04-06 12:34:42 +02:00
parent bae5ede085
commit 5f4620eb33
3 changed files with 28 additions and 1 deletions

View File

@ -51,6 +51,14 @@
<groupId>io.quarkus</groupId> <groupId>io.quarkus</groupId>
<artifactId>quarkus-hibernate-orm-panache</artifactId> <artifactId>quarkus-hibernate-orm-panache</artifactId>
</dependency> </dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-flyway</artifactId>
</dependency>
<dependency>
<groupId>org.flywaydb</groupId>
<artifactId>flyway-database-postgresql</artifactId>
</dependency>
<dependency> <dependency>
<groupId>org.apache.commons</groupId> <groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId> <artifactId>commons-lang3</artifactId>

View File

@ -13,3 +13,7 @@ oidc.proxy.client.redirect=http://localhost:3000
%dev,test.quarkus.datasource.jdbc.url=jdbc:postgresql://localhost:5432/postgres?currentSchema=oidc-proxy %dev,test.quarkus.datasource.jdbc.url=jdbc:postgresql://localhost:5432/postgres?currentSchema=oidc-proxy
%dev,test.oidc.proxy.crypto.secret=test %dev,test.oidc.proxy.crypto.secret=test
%dev,test.quarkus.flyway.clean-at-start=true
%dev.quarkus.flyway.locations=db/migration,db/dev
quarkus.flyway.migrate-at-start=true

View File

@ -0,0 +1,15 @@
create table access_token
(
expires_at timestamp(6) with time zone,
id varchar(255) not null
primary key,
token text
);
create table refresh_token
(
expires_at timestamp(6) with time zone,
id varchar(255) not null
primary key,
token text
);