Issue Creation Checklist
Feature Description
I get such error: ERROR: Could not find migration method: up. I have three migration files all with up and down methods. I have .sequelizerc and config.js files. I am running my migration with this command
npx sequelize-cli db:migrate --env development
The migrations are displayed in postgres and tables are created, but error is thrown at the end.
I've debugged migration script and found out that every file in migration folder must be actual migration and not something else, but I had there a shared file with table names that migration tool thought to be migration. By removing that file bug resolved.
Maybe I we could somehow include non-migration files in migration folder or highlight that info in docs if not already present that every file file in migration folder is must be migration and not something else.
Describe the feature you'd like to see implemented
Describe why you would like this feature to be added to Sequelize
More programmatic access to migrations with .sequelizerc
Is this feature dialect-specific?
- [ x] No. This feature is relevant to Sequelize as a whole.
Would you be willing to resolve this issue by submitting a Pull Request?
Indicate your interest in the addition of this feature by adding the 👍 reaction. Comments such as "+1" will be removed.
Issue Creation Checklist
Feature Description
I get such error: ERROR: Could not find migration method: up. I have three migration files all with up and down methods. I have .sequelizerc and config.js files. I am running my migration with this command
The migrations are displayed in postgres and tables are created, but error is thrown at the end.
I've debugged migration script and found out that every file in migration folder must be actual migration and not something else, but I had there a shared file with table names that migration tool thought to be migration. By removing that file bug resolved.
Maybe I we could somehow include non-migration files in migration folder or highlight that info in docs if not already present that every file file in migration folder is must be migration and not something else.
Describe the feature you'd like to see implemented
Describe why you would like this feature to be added to Sequelize
More programmatic access to migrations with .sequelizerc
Is this feature dialect-specific?
Would you be willing to resolve this issue by submitting a Pull Request?
Indicate your interest in the addition of this feature by adding the 👍 reaction. Comments such as "+1" will be removed.