Closed as not planned
Labels
pending-approvalBug reports that have not been verified yet, or feature requests that have not been accepted yettype: bugDEPRECATED: replace with the "bug" issue type
Description
Bug Description
I have the following migration:
const vals = ['a', 'b'];
module.exports = {
up: async (queryInterface, Sequelize) => {
await queryInterface.createTable('test', {
field: { type: Sequelize.ARRAY(Sequelize.ENUM(vals)), allowNull: false, defaultValue: [] },
});
},
down: async (queryInterface) => {}
}
Running this migration is failing with the following error:
ERROR: Cannot read properties of undefined (reading 'getTableName')
If I change the Array type to STRING, or remove the defaultValue - the migration passes.
What do you expect to happen?
I expect the table to be created
What is actually happening?
ERROR: Cannot read properties of undefined (reading 'getTableName')
Environment
Indicate your interest in the resolution of this issue by adding the 👍 reaction. Comments such as "+1" will be removed.
Metadata
Metadata
Assignees
Labels
pending-approvalBug reports that have not been verified yet, or feature requests that have not been accepted yettype: bugDEPRECATED: replace with the "bug" issue type
Activity
WikiRik commentedon Feb 13, 2024
Duplicate of #11285