Verified Commit afc0af55 authored by les's avatar les
Browse files

do not add tag/place confirmation in migration as removeColumn in sqlite destroy foreign keys

parent a37db760
module.exports = {
up: (queryInterface, Sequelize) => {
return queryInterface.addColumn('tags', 'confirmed', {
type: Sequelize.BOOLEAN,
defaultValue: true,
allowNull: false
})
},
down: (queryInterface, Sequelize) => {
return queryInterface.removeColumn('tags', 'confirmed')
}
}
module.exports = {
up: (queryInterface, Sequelize) => {
return queryInterface.addColumn('places', 'confirmed', {
type: Sequelize.BOOLEAN,
defaultValue: true,
allowNull: false
})
},
down: (queryInterface, Sequelize) => {
return queryInterface.removeColumn('places', 'confirmed')
}
}
module.exports = {
up: (queryInterface, Sequelize) => {
return queryInterface.removeColumn('tags', 'confirmed')
}
}
module.exports = {
up: (queryInterface, Sequelize) => {
return queryInterface.removeColumn('places', 'confirmed')
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment