Skip to content

Commit

Permalink
Rename package.json migration scripts (#532)
Browse files Browse the repository at this point in the history
DEFRA/water-abstraction-team#106

To deploy this using our existing scripts we have to be able to call `npm run migrate`. If we kept the naming convention we would have to rewrite our deployment scripts, so it is easier if we just rename our scripts in here.
  • Loading branch information
Jozzey authored Nov 20, 2023
1 parent 0a24991 commit dcad9d1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ jobs:
- name: Database migrations
run: |
npm run db:migrate:test
npm run migrate:test
# This includes an extra run step. The sonarcloud analysis will be run in a docker container with the current
# folder mounted as `/github/workspace`. The problem is when the lcov.info file is generated it will reference the
Expand Down
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
"scripts": {
"start": "node index.js",
"build": "bin/build",
"db:migrate:make": "knex migrate:make --",
"db:migrate:make:test": "NODE_ENV=test knex migrate:make --migrations-directory db/migrations/legacy --",
"db:migrate": "knex migrate:latest",
"db:migrate:test": "NODE_ENV=test knex migrate:latest",
"db:rollback": "knex migrate:rollback --all",
"db:rollback:test": "NODE_ENV=test knex migrate:rollback --all",
"db:seed": "knex seed:run --knexfile knexfile.application.js",
"migrate:make": "knex migrate:make --",
"migrate:make:test": "NODE_ENV=test knex migrate:make --migrations-directory db/migrations/legacy --",
"migrate": "knex migrate:latest",
"migrate:test": "NODE_ENV=test knex migrate:latest",
"rollback": "knex migrate:rollback --all",
"rollback:test": "NODE_ENV=test knex migrate:rollback --all",
"seed": "knex seed:run --knexfile knexfile.application.js",
"lint": "standard",
"test": "lab --silent-skips --shuffle",
"postinstall": "npm run build",
Expand Down

0 comments on commit dcad9d1

Please sign in to comment.