Skip to content
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

New migration can't be created because directory already exists #5

Open
diegoulloao opened this issue Apr 5, 2020 · 4 comments
Open

Comments

@diegoulloao
Copy link

What you are doing?

Create a new migration file in a existent directory with others migrations

sequelize migration:generate --name m1

What do you expect to happen?

A new migration file appears

What is actually happening?

Sequelize can't create new migration because migrations directory already exists.

diego:server/ (seqtsc✗) $ sequelize migration:generate --name m1                                          [13:12:47]
sequelize no existe. Tratando con npx...

Sequelize CLI [Node: 12.8.1, CLI: 3.2.0-c, ORM: 5.21.4]

migrations folder at "/Users/diego/Desktop/Proyectos/mern-auth-template/server/src/database/migrations" already exists.
ENOENT: no such file or directory, open '/Users/diego/Desktop/Proyectos/mern-auth-template/server/node_modules/sequelize-cli-typescript/lib/assets/migrations/skeleton.js'

Dialect: mysql
Database version: 5.6
Sequelize CLI version: 3.2.0-c
Sequelize version: 5.21.4

@andrrms
Copy link

andrrms commented Apr 27, 2021

Any updates on this?

@michaelca365
Copy link

there's an error when migration_generate.js render the template migrations/skeleton.js. it must be skeleton.ts

@ldgmaia
Copy link

ldgmaia commented Nov 4, 2022

I am facing the exact same error using Postgres. There is no such file (migrations/skeleton.js) in the node_modules. Is this a bug or just some configuration missing?

@mahmoudyusof
Copy link

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants