Closed stackprogramer closed 2 years ago
Finally, I found the solution, in the root directory that there is a file package.json, There is a hi dden file .migrate , you should delete the old migration file from the migration folder and file .migrate from root directory...
sp@sp:~/Documents/express$ ls -a . index.js '.migrate (copy)' node_modules package-lock.json .. .migrate migrations package.json
Now run the command:
migrate
Now new migration will be updated and everything works...
Good luck
How we can delete old migration from NodeJS migrate? how can I delete old migrations? I can not any command for this operation when I delete the migration file manually I am faced with these errors...