You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This happens because sequelize migration tool assumes that the migration folder contains only migration scripts. The config and models folders are not valid JS files and caused the warning to be issued.
Fix
Warnings can be avoided by moving all migration scripts into a sub-folder (suggested by @DesignByOnyx on the Slack channel, confirmed when I tested it on my project)
The text was updated successfully, but these errors were encountered:
Steps to reproduce
sequelize db:migrate
Expected behavior
No warning messages when running migration
Actual behavior
Cause
This happens because sequelize migration tool assumes that the migration folder contains only migration scripts. The
config
andmodels
folders are not valid JS files and caused the warning to be issued.Fix
Warnings can be avoided by moving all migration scripts into a sub-folder (suggested by @DesignByOnyx on the Slack channel, confirmed when I tested it on my project)
The text was updated successfully, but these errors were encountered: