Compare commits

...

1 Commits

Author SHA1 Message Date
Tom Moor 9aba3568d5 Remove paranoid deletion from GroupUser 2024-08-06 09:23:58 +01:00
2 changed files with 15 additions and 1 deletions
@@ -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
}
};
+1 -1
View File
@@ -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>,