I'm trying to write a migration in Sequelize and want to remove the defaultValue constraint. What is the proper syntax? I've tried both of the following:
return queryInterface.removeConstraint('Table', 'table_columnName_default')
return queryInterface.removeConstraint('Table', 'columnName_default')
Can you please try to use
return queryInterface.changeColumn('Table', 'attributeName', {
defaultValue: null,
allowNull: true,
});