diff options
-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 } |