diff --git a/server/api/models/ap_user.js b/server/api/models/ap_user.js index 51a17ade..f7edf99e 100644 --- a/server/api/models/ap_user.js +++ b/server/api/models/ap_user.js @@ -7,7 +7,7 @@ module.exports = (sequelize, DataTypes) => }, follower: DataTypes.BOOLEAN, following: DataTypes.BOOLEAN, - friendly: DataTypes.BOOLEAN, + trusted: DataTypes.BOOLEAN, blocked: DataTypes.BOOLEAN, object: { type: DataTypes.JSON, diff --git a/server/migrations/20231110214302-federation.js b/server/migrations/20231110214302-federation.js index 01a90146..5ca990d4 100644 --- a/server/migrations/20231110214302-federation.js +++ b/server/migrations/20231110214302-federation.js @@ -11,8 +11,9 @@ module.exports = { */ return Promise.all( [ + await queryInterface.addColumn('ap_users', 'trusted', { type: Sequelize.BOOLEAN }), + await queryInterface.addColumn('instances', 'applicationActor', { type: Sequelize.STRING }), await queryInterface.addColumn('ap_users', 'following', { type: Sequelize.BOOLEAN }), - await queryInterface.addColumn('ap_users', 'friendly', { type: Sequelize.BOOLEAN }), await queryInterface.addColumn('filters', 'actors', { type: Sequelize.JSON }), await queryInterface.addColumn('events', 'ap_id', { type: Sequelize.STRING, index: true }), await queryInterface.addColumn('events', 'apUserApId', { @@ -24,17 +25,17 @@ module.exports = { onUpdate: 'CASCADE', onDelete: 'CASCADE' }), - apUserApId - ]) + ]) }, async down (queryInterface, Sequelize) { return Promise.all( [ + await queryInterface.removeColumn('instances', 'applicationActor'), await queryInterface.removeColumn('events', 'apUserApId'), await queryInterface.removeColumn('events', 'ap_id'), await queryInterface.removeColumn('ap_users', 'following'), - await queryInterface.removeColumn('ap_users', 'friendly'), + await queryInterface.removeColumn('ap_users', 'trusted'), ]) } }; \ No newline at end of file