* Add Model.changeset method to get minified changes since last update * fix: Handle arrays * Add changes column, types * test
15 lines
301 B
JavaScript
15 lines
301 B
JavaScript
"use strict";
|
|
|
|
module.exports = {
|
|
async up(queryInterface, Sequelize) {
|
|
await queryInterface.addColumn("events", "changes", {
|
|
type: Sequelize.JSONB,
|
|
allowNull: true,
|
|
});
|
|
|
|
},
|
|
async down(queryInterface) {
|
|
await queryInterface.removeColumn("events", "changes");
|
|
},
|
|
};
|