Skip to content

Commit

Permalink
Update docs/developer-docs/latest/developer-resources/database-migrat…
Browse files Browse the repository at this point in the history
…ions.md

Co-authored-by: Pierre Wizla <[email protected]>
  • Loading branch information
petersg83 and pwizla authored May 10, 2022
1 parent 8cb3e46 commit 1ef0235
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,5 @@ async function down(trx) {}
module.exports = { up, down };
```

3. Write the migration code inside the `up()` and `down()` functions.
3. Fill in the template by adding actual migration code inside the `up()` and `down()` functions.
`up()` and `down()` receive a [Knex instance](https://knexjs.org/) that can be used to run the database queries.

0 comments on commit 1ef0235

Please sign in to comment.