From 2002af64b6a4be29612239137e15ee891a0da4d9 Mon Sep 17 00:00:00 2001 From: anatawa12 Date: Mon, 16 Oct 2023 16:49:55 +0900 Subject: [PATCH] Revert "feat: add defaultWithReplies to MiUser" This reverts commit 9f5ab14d7063532de2b049bc2ed40a15658168f5. --- .../1697430068149-DefaultWithReplies.js | 18 ------------------ packages/backend/src/models/User.ts | 6 ------ 2 files changed, 24 deletions(-) delete mode 100644 packages/backend/migration/1697430068149-DefaultWithReplies.js diff --git a/packages/backend/migration/1697430068149-DefaultWithReplies.js b/packages/backend/migration/1697430068149-DefaultWithReplies.js deleted file mode 100644 index e93e55a93b..0000000000 --- a/packages/backend/migration/1697430068149-DefaultWithReplies.js +++ /dev/null @@ -1,18 +0,0 @@ -/* - * SPDX-FileCopyrightText: syuilo and other misskey contributors - * SPDX-License-Identifier: AGPL-3.0-only - */ - -export class DefaultWithReplies1697430068149 { - name = 'DefaultWithReplies1697430068149' - - async up(queryRunner) { - await queryRunner.query(`ALTER TABLE "user" ADD "defaultWithReplies" boolean NOT NULL DEFAULT false`); - await queryRunner.query(`COMMENT ON COLUMN "user"."defaultWithReplies" IS 'Default value of withReplies for newly followed users'`); - } - - async down(queryRunner) { - await queryRunner.query(`COMMENT ON COLUMN "user"."defaultWithReplies" IS 'Default value of withReplies for newly followed users'`); - await queryRunner.query(`ALTER TABLE "user" DROP COLUMN "defaultWithReplies"`); - } -} diff --git a/packages/backend/src/models/User.ts b/packages/backend/src/models/User.ts index a767302265..796d7c8356 100644 --- a/packages/backend/src/models/User.ts +++ b/packages/backend/src/models/User.ts @@ -243,12 +243,6 @@ export class MiUser { }) public token: string | null; - @Column('boolean', { - default: false, - comment: 'Default value of withReplies for newly followed users', - }) - public defaultWithReplies: boolean; - constructor(data: Partial) { if (data == null) return;