diff options
author | TheArcaneBrony <myrainbowdash949@gmail.com> | 2022-08-15 06:14:02 +0200 |
---|---|---|
committer | TheArcaneBrony <myrainbowdash949@gmail.com> | 2022-08-15 06:14:02 +0200 |
commit | 79d97a9252beff84104cdb8fabe477b310e81956 (patch) | |
tree | 99cfa6421d4f7edbe0e3a32f147a5e03a6539d08 | |
parent | Fix rebase conflicts (diff) | |
download | server-79d97a9252beff84104cdb8fabe477b310e81956.tar.xz |
Update db migration script
-rwxr-xr-x | scripts/db_migrations.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/db_migrations.sh b/scripts/db_migrations.sh index 83f15a2b..242b01f0 100755 --- a/scripts/db_migrations.sh +++ b/scripts/db_migrations.sh @@ -15,10 +15,10 @@ fi make_migration() { echo "Creating migrations for $2" - mkdir "../util/src/migrations/$2" + mkdir "src/util/migrations/$2" # npm run build clean logerrors pretty-errors # THREADS=1 DATABASE="$1" DB_MIGRATE=a npm run start:bundle - THREADS=1 DATABASE="$1" DB_MIGRATE=a npx typeorm-ts-node-commonjs migration:generate "../util/src/migrations/$2/$FILENAME" -d ../util/src/util/Database.ts -p + THREADS=1 DATABASE="$1" DB_MIGRATE=a npx typeorm-ts-node-commonjs migration:generate "src/migrations/$2/$FILENAME" -d ../util/src/util/Database.ts -p npm run build clean logerrors pretty-errors THREADS=1 DATABASE="$1" DB_MIGRATE=a npm run start:bundle } |