This repository has been archived on 2022-08-14. You can view files and clone it, but cannot push or open issues or pull requests.
2016-08-14 08:50:42 +00:00
|
|
|
module.exports = {
|
2017-11-20 00:49:51 +00:00
|
|
|
up: async (queryInterface, Sequelize) => {
|
|
|
|
await queryInterface.addColumn('atlases', 'deletedAt', {
|
2017-04-27 04:47:03 +00:00
|
|
|
type: Sequelize.DATE,
|
|
|
|
allowNull: true,
|
|
|
|
});
|
2016-08-14 08:50:42 +00:00
|
|
|
|
2017-11-20 00:49:51 +00:00
|
|
|
await queryInterface.addColumn('documents', 'deletedAt', {
|
2017-04-27 04:47:03 +00:00
|
|
|
type: Sequelize.DATE,
|
|
|
|
allowNull: true,
|
|
|
|
});
|
2016-08-14 08:50:42 +00:00
|
|
|
},
|
|
|
|
|
2017-11-20 00:49:51 +00:00
|
|
|
down: async (queryInterface, Sequelize) => {
|
|
|
|
await queryInterface.removeColumn('atlases', 'deletedAt');
|
|
|
|
await queryInterface.removeColumn('documents', 'deletedAt');
|
2017-04-27 04:47:03 +00:00
|
|
|
},
|
2016-08-14 08:50:42 +00:00
|
|
|
};
|