diff --git a/server/migrations/20200831143500-tag_confirmation.js b/server/migrations/20200831143500-tag_confirmation.js new file mode 100644 index 00000000..df758171 --- /dev/null +++ b/server/migrations/20200831143500-tag_confirmation.js @@ -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') + } +} diff --git a/server/migrations/20200831144116-place_confirmation.js b/server/migrations/20200831144116-place_confirmation.js new file mode 100644 index 00000000..38a23b32 --- /dev/null +++ b/server/migrations/20200831144116-place_confirmation.js @@ -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') + } +}