fix: User updates are not synced between clients (#6490)
* Add Model.changeset method to get minified changes since last update * fix: Handle arrays * Add changes column, types * test
This commit is contained in:
14
server/migrations/20240204171556-add-event-changeset.js
Normal file
14
server/migrations/20240204171556-add-event-changeset.js
Normal file
@@ -0,0 +1,14 @@
|
||||
"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");
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user