chore: Soft delete webhooks (#3722)

This commit is contained in:
Tom Moor
2022-07-02 20:41:28 +03:00
committed by GitHub
parent 8ebf6e884f
commit f744d488f6
2 changed files with 15 additions and 2 deletions

View File

@@ -0,0 +1,13 @@
'use strict';
module.exports = {
up: async (queryInterface, Sequelize) => {
await queryInterface.addColumn("webhook_subscriptions", "deletedAt", {
type: Sequelize.DATE,
allowNull: true
});
},
down: async () => {
await queryInterface.removeColumn("webhook_subscriptions", "deletedAt");
},
};