35 Commits

Author SHA1 Message Date
Moriz Wahl
d6279370fd try to get things working. Backend does not find database build 2021-10-18 21:07:52 +02:00
c726ee9483
unify database connection database & backend - also log errors 2021-10-12 10:37:43 +02:00
aa07ef2231
errors on failed connection to help debugging, entities from database project in typeorm connection 2021-10-12 01:26:47 +02:00
634733cd59
removed moduleResolution configuration since it seems not needed 2021-10-11 18:31:59 +02:00
febd997db3
this seems to work quite good locally with both node_modules downloaded 2021-10-11 12:07:57 +02:00
20db890ac7
try to use tsconfig instead 2021-10-09 14:29:17 +02:00
b00a2a08d4
make typeorm available in the database project using our entities 2021-10-09 13:22:12 +02:00
db72ec0982
entity references 2021-10-09 13:21:24 +02:00
cf5b054c89
0002-add_settings entities 2021-10-09 13:21:07 +02:00
1639d6305c
0001-init_db entities 2021-10-09 13:20:50 +02:00
8d48202779
removed test database creation from database prepare 2021-10-02 22:00:30 +02:00
Einhornimmond
68f8896ed3
fix linting 2021-10-02 13:54:37 +02:00
Einhornimmond
b5a7af16e7
bring load and save coinanimation to live 2021-10-02 13:54:09 +02:00
Einhornimmond
e963a34b36 add settings as key value approach 2021-10-01 18:42:48 +02:00
einhornimmond
536e97f8a6
Merge pull request #881 from gradido/community_test_db
Community-Server Test with new db migration
2021-09-23 13:47:08 +02:00
einhorn_b
91d51ea7c3 fix 2 2021-09-23 13:25:38 +02:00
f9a40be539
use another .env file, else things get too complicated since production and dev .env's are no longer compatible to eachother 2021-09-21 19:18:08 +02:00
cebf92c451
fixed migrations directory to default to the production version.
This is the downside of this patch - the .env file has to be different in dev and production version
2021-09-21 10:34:56 +02:00
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