17 Commits

Author SHA1 Message Date
94424f17a2
Fixed database tool to read .env config when built. 2021-09-21 10:24:43 +02:00
235de944d4
exit with code 1 if an error is thrown inside migration script 2021-08-23 15:47:14 +02:00
eaa7229b21
we need the mysql module, therefore the node_modules folder 2021-08-23 15:28:31 +02:00
9e29613206
docker implementation of the migrations service "database" 2021-08-23 12:38:27 +02:00
160e0bb6c6
comment 2021-08-23 12:38:26 +02:00
d4b5872ef2
also check if migration table is present at all 2021-08-23 12:38:26 +02:00
ffc83845e5
renamed script to have leading zeros to not break order later on 2021-08-23 12:38:26 +02:00
428b1139af
typo 2021-08-23 12:38:26 +02:00
f1ed748983
fixed bug where the migrations table was deleted every time 2021-08-23 12:38:26 +02:00
e8d6e871c4
missing await 2021-08-23 12:38:26 +02:00
197f1975bf
use mysql2 due to promise wrapper and speed advantage 2021-08-23 12:38:26 +02:00
d480cadf93
fixed build js up/down/reset commands
started to do some more prepare stuff
2021-08-23 12:38:26 +02:00
5bb5fda6e5
- initialize database migration
- create database if it does not exist
2021-08-23 12:38:25 +02:00
d5436646e5
.env.dist 2021-08-23 12:38:25 +02:00
349d4316d8
lint fixes 2021-08-23 12:38:25 +02:00
60a7b2749b
- eslint
- typescript config
- package json commands
- refactor script to be able to run up/down/reset
- config
- linting
2021-08-23 12:38:25 +02:00
7ed56ed5ab
database migrations - initial commit 2021-08-23 12:38:25 +02:00