Major update
This commit is contained in:
5
databases/seasons/.env
Normal file
5
databases/seasons/.env
Normal file
@@ -0,0 +1,5 @@
|
||||
POSTGRES_SCHEMAS=flyway
|
||||
POSTGRES_DB=seasons
|
||||
POSTGRES_USER=postgres
|
||||
POSTGRES_PASSWORD=postgres
|
||||
ConnectionStrings__DBConnectionString="Host=seasons-database:5432;Database=${POSTGRES_DB};Username=${POSTGRES_USER};Password=${POSTGRES_PASSWORD}"
|
||||
7
databases/seasons/conf/flyway.conf
Normal file
7
databases/seasons/conf/flyway.conf
Normal file
@@ -0,0 +1,7 @@
|
||||
flyway.url=jdbc:postgresql://seasons-database:5432/seasons
|
||||
flyway.locations=filesystem:/flyway/sql
|
||||
flyway.configFiles=filesystem:/flyway/conf
|
||||
flyway.user=postgres
|
||||
flyway.password=postgres
|
||||
flyway.baselineVersion=0
|
||||
flyway.baselineOnMigrate=true
|
||||
4
databases/seasons/sql/V1__create_database.sql
Normal file
4
databases/seasons/sql/V1__create_database.sql
Normal file
@@ -0,0 +1,4 @@
|
||||
CREATE TABLE IF NOT EXISTS season (
|
||||
"id" INT,
|
||||
"active" TEXT
|
||||
)
|
||||
Reference in New Issue
Block a user