🚧 Add flyway
This commit is contained in:
parent
bae5ede085
commit
5f4620eb33
8
pom.xml
8
pom.xml
@ -51,6 +51,14 @@
|
||||
<groupId>io.quarkus</groupId>
|
||||
<artifactId>quarkus-hibernate-orm-panache</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>io.quarkus</groupId>
|
||||
<artifactId>quarkus-flyway</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.flywaydb</groupId>
|
||||
<artifactId>flyway-database-postgresql</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.commons</groupId>
|
||||
<artifactId>commons-lang3</artifactId>
|
||||
|
||||
@ -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.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
|
||||
15
src/main/resources/db/migration/V1.0.0__init.sql
Normal file
15
src/main/resources/db/migration/V1.0.0__init.sql
Normal 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
|
||||
);
|
||||
Loading…
x
Reference in New Issue
Block a user