added db migrations

This commit is contained in:
Jake Potrebic 2020-09-10 12:17:56 -07:00
parent d28141cfcb
commit 64bbabc399
No known key found for this signature in database
GPG Key ID: 7C58557EC9C421F8
7 changed files with 14 additions and 1260 deletions

View File

@ -1,3 +1 @@
FROM postgres:12-alpine
COPY init.sql /docker-entrypoint-initdb.d/

File diff suppressed because it is too large Load Diff

View File

@ -16,6 +16,9 @@ spring:
devtools:
restart:
additional-exclude: work/**
flyway:
baseline-on-migrate: true
baseline-version: "1.0.0"
fake-user:
enabled: false

View File

@ -165,6 +165,13 @@
<artifactId>postgresql</artifactId>
</dependency>
<!-- flyway -->
<dependency>
<groupId>org.flywaydb</groupId>
<artifactId>flyway-core</artifactId>
<version>6.5.5</version>
</dependency>
<!-- markdown -->
<dependency>
<groupId>com.vladsch.flexmark</groupId>

View File

@ -25,6 +25,9 @@ spring:
devtools:
restart:
additional-exclude: work/**
flyway:
baseline-on-migrate: true
baseline-version: "1.0.0"
#############
# Fake User #

View File

@ -1,4 +1,3 @@
\c hangar
create extension hstore;
create extension pgcrypto;

View File

@ -0,0 +1 @@
ALTER TABLE project_versions ADD COLUMN external_url varchar(255);