mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-27 08:10:24 +01:00
750085ffd5
* Fix: DB CONSTRAINT of RenoteMuting * change order of migration of fixing renotemuting
12 lines
383 B
JavaScript
12 lines
383 B
JavaScript
export class FixRenoteMuting1690417561185 {
|
|
name = 'FixRenoteMuting1690417561185'
|
|
|
|
async up(queryRunner) {
|
|
await queryRunner.query(`DELETE FROM "renote_muting" WHERE "muteeId" NOT IN (SELECT "id" FROM "user")`);
|
|
await queryRunner.query(`DELETE FROM "renote_muting" WHERE "muterId" NOT IN (SELECT "id" FROM "user")`);
|
|
}
|
|
|
|
async down(queryRunner) {
|
|
|
|
}
|
|
}
|