Skip to content

Commit 57b1e75

Browse files
committed
Change from migrate to reset for db
1 parent 89f0c1e commit 57b1e75

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ PGPORT=
1616

1717
Two ways to seed the database.
1818

19-
- Can run `npm run migrate` from within this project.
19+
- Can run `npm run test` from within this project.
2020
- Run a development server and issue a command `curl -X POST http://localhost:3001/api/debug/reset`.
2121

2222
## Api

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
"scripts": {
77
"start": "node ./src/index.js",
88
"error": "TEST_ERROR=true node ./src/index.js",
9-
"migrate": "psql scheduler_development < ./src/db/schema/create.sql && psql scheduler_development < ./src/db/schema/development.sql",
10-
"test:migrate": "psql -o /dev/null scheduler_test < ./src/db/schema/create.sql && psql -o /dev/null scheduler_test < ./src/db/schema/test.sql",
11-
"test": "npm run test:migrate && jest --watch --runInBand"
9+
"reset": "psql scheduler_development < ./src/db/schema/create.sql && psql scheduler_development < ./src/db/schema/development.sql",
10+
"test:reset": "psql -o /dev/null scheduler_test < ./src/db/schema/create.sql && psql -o /dev/null scheduler_test < ./src/db/schema/test.sql",
11+
"test": "npm run test:reset && jest --watch --runInBand"
1212
},
1313
"author": "",
1414
"license": "ISC",

0 commit comments

Comments
 (0)