Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename package.json migration scripts #532

Merged
merged 3 commits into from
Nov 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading