🚧 Add flyway
This commit is contained in:
@@ -12,4 +12,8 @@ oidc.proxy.client.redirect=http://localhost:3000
|
||||
%dev,test.quarkus.datasource.password=postgres
|
||||
%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
|
||||
@@ -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
|
||||
);
|
||||
Reference in New Issue
Block a user