feat: note.isDeletable
This commit is contained in:
parent
9927231add
commit
d485432661
19 changed files with 396 additions and 18 deletions
|
@ -1,3 +1,8 @@
|
|||
/*
|
||||
* SPDX-FileCopyrightText: syuilo and misskey-project
|
||||
* SPDX-License-Identifier: AGPL-3.0-only
|
||||
*/
|
||||
|
||||
export class NotificationMuting1730885274028 {
|
||||
name = 'NotificationMuting1730885274028'
|
||||
|
||||
|
|
16
packages/backend/migration/1736233575620-NoteIsDeletable.js
Normal file
16
packages/backend/migration/1736233575620-NoteIsDeletable.js
Normal 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"`);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue