Revert "feat: add defaultWithReplies to MiUser"

This reverts commit 9f5ab14d70.
This commit is contained in:
anatawa12 2023-10-16 16:49:55 +09:00
parent 7eac6567e7
commit 2002af64b6
No known key found for this signature in database
GPG Key ID: 9CA909848B8E4EA6
2 changed files with 0 additions and 24 deletions

View File

@ -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"`);
}
}

View File

@ -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<MiUser>) {
if (data == null) return;