mirror of
https://github.com/outline/outline.git
synced 2025-04-15 15:04:27 +00:00
Remove paranoid deletion from GroupUser
(#7356)
This commit is contained in:
14
server/migrations/20240806080954-group-users-paranoid.js
Normal file
14
server/migrations/20240806080954-group-users-paranoid.js
Normal file
@ -0,0 +1,14 @@
|
||||
'use strict';
|
||||
|
||||
/** @type {import('sequelize-cli').Migration} */
|
||||
module.exports = {
|
||||
async up (queryInterface) {
|
||||
await queryInterface.sequelize.query(
|
||||
`DELETE FROM group_users WHERE "deletedAt" IS NOT NULL`
|
||||
);
|
||||
},
|
||||
|
||||
async down () {
|
||||
// No reverting possible
|
||||
}
|
||||
};
|
@ -36,7 +36,7 @@ import Fix from "./decorators/Fix";
|
||||
],
|
||||
},
|
||||
}))
|
||||
@Table({ tableName: "group_users", modelName: "group_user", paranoid: true })
|
||||
@Table({ tableName: "group_users", modelName: "group_user" })
|
||||
@Fix
|
||||
class GroupUser extends Model<
|
||||
InferAttributes<GroupUser>,
|
||||
|
Reference in New Issue
Block a user