knex.js migration execute 1

knex.js migration execute

$ knex migrate:latest

Here is what the above code is Doing:
1. We’re importing the knex library.
2. We’re importing the config object from the knexfile.js file.
3. We’re creating a knex instance, passing in the config object.
4. We’re running the latest migration.

Similar Posts