Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

migrate db sequelize

// with sequelize-cli installed run
// create db
npx sequelize-cli db:create
// drop db
npx sequelize-cli db:drop
// migrate db
npx sequelize-cli db:migrate
// run all seeds
npx sequelize-cli db:seed:all
Source by sequelize.org #
 
PREVIOUS NEXT
Tagged: #migrate #db #sequelize
ADD COMMENT
Topic
Name
4+3 =