From 22b10b02099ea6d2d0cc1062cabd33682253f1aa Mon Sep 17 00:00:00 2001 From: Allen Lee Date: Tue, 21 Feb 2023 16:24:09 -0700 Subject: [PATCH] fix: adjust package.json commands for sensible init --- server/package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/package.json b/server/package.json index 28e367d21..2978d0151 100644 --- a/server/package.json +++ b/server/package.json @@ -13,10 +13,10 @@ "start:prod": "node -r tsconfig-paths/register src/index.js | tee -a /var/log/port-of-mars/index.log", "start": "ts-node-dev -r tsconfig-paths/register src/index.ts | tee -a /var/log/port-of-mars/index.log", "typeorm": "ts-node -r tsconfig-paths/register ./node_modules/typeorm/cli.js", - "dangerously-dropdb": "dropdb -U marsmadness -h db port_of_mars && createdb -U marsmadness -h db port_of_mars", + "dangerously-dropdb": "dropdb -U marsmadness -h db port_of_mars", "initdb": "createdb -U marsmadness -h db port_of_mars && yarn typeorm migration:run && /scripts/openbeta/setup.sh", "dangerously-loaddb": "psql -h db -U marsmadness port_of_mars < pom-db.sql", - "dangerously-resetdb": "dropdb -U marsmadness -h db port_of_mars && createdb -U marsmadness -h db port_of_mars && yarn typeorm schema:sync && yarn load-fixtures", + "dangerously-resetdb": "dropdb -U marsmadness -h db port_of_mars && createdb -U marsmadness -h db port_of_mars && yarn typeorm migration:run", "migrate": "yarn typeorm migration:run", "repl": "yarn ts-node -r tsconfig-paths/register", "sql": "pgcli -U marsmadness -d port_of_mars -h db",