DEV Community

Discussion on: How to Add New Fields to Existing Sequelize Migration

Collapse
 
nicola_lauritano_93149f83 profile image
Nicola Lauritano

Hi all,

When I run npx sequelize-cli db:migrate I got this error:

Cannot find "{myPath}/config/config.json". Have you run "sequelize init"?

I don't have a config.json file, should I create it or maybe it should be created by npx sequelize-cli migration:create --name modify_users_add_new_fields ?

If I have to create, how it should be?

Thanks all guys

Collapse
 
vladorjiggy profile image
vladorjiggy

This tutorial describes how to extend a existing migration. If you haven't used the CLI for your project, you have to initialize it by npx sequelize init