schema migration
This commit is contained in:
13
server/migrations/20200831143500-tag_confirmation.js
Normal file
13
server/migrations/20200831143500-tag_confirmation.js
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
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')
|
||||||
|
}
|
||||||
|
}
|
||||||
13
server/migrations/20200831144116-place_confirmation.js
Normal file
13
server/migrations/20200831144116-place_confirmation.js
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
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')
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user