feat: note.isDeletable

This commit is contained in:
ASTRO:? 2025-01-07 18:49:56 +09:00
parent 9927231add
commit d485432661
No known key found for this signature in database
GPG key ID: 8947F3AF5B0B4BFE
19 changed files with 396 additions and 18 deletions

View file

@ -1,3 +1,8 @@
/*
* SPDX-FileCopyrightText: syuilo and misskey-project
* SPDX-License-Identifier: AGPL-3.0-only
*/
export class NotificationMuting1730885274028 {
name = 'NotificationMuting1730885274028'

View file

@ -0,0 +1,16 @@
/*
* SPDX-FileCopyrightText: syuilo and misskey-project
* SPDX-License-Identifier: AGPL-3.0-only
*/
export class NoteIsDeletable1736233575620 {
name = 'NoteIsDeletable1736233575620'
async up(queryRunner) {
await queryRunner.query(`ALTER TABLE "note" ADD "isDeletable" boolean NOT NULL DEFAULT true`);
}
async down(queryRunner) {
await queryRunner.query(`ALTER TABLE "note" DROP COLUMN "isDeletable"`);
}
}