-
Notifications
You must be signed in to change notification settings - Fork 4
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
Knex migrations #20
Knex migrations #20
Conversation
ssh -f -L [port]:[rds name]:[port] [ssh] -N | ||
``` | ||
#### Migrations | ||
First, make sure you've installed Knex.js globally: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can also run it via npx
: this uses the executable in your node_modules. That's what I've been doing :)
@@ -0,0 +1,17 @@ | |||
const fs = require('fs'); | |||
|
|||
exports.up = async (knex) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cool!
README.md
Outdated
@@ -34,6 +34,30 @@ npm install | |||
|
|||
alternatively for production is also on [npm](https://www.npmjs.com/package/@bbc/digital-paper-edit-api) | |||
|
|||
.env file should include: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know if this whole block is required. Perhaps just adding the empty DB parameters in the actual .env and mentioning it in the README 👍
Is your Pull Request request related to another issue in this repository ?
Issue: #11
Branched from
database-spike
.Describe what the PR does
State whether the PR is ready for review or whether it needs extra work
Ready for review.