mirror of
https://framagit.org/les/gancio.git
synced 2025-02-01 00:52:01 +01:00
schema migration
This commit is contained in:
parent
975967c539
commit
f12b13c40f
2 changed files with 26 additions and 0 deletions
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')
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue