mirror of
https://github.com/paricafe/misskey.git
synced 2024-11-28 09:36:43 -06:00
a28c515ef6
* feat: make possible to configure following/followers visibility * add test * ap * add ap test * set Cache-Control * hide following/followers count
16 lines
773 B
TypeScript
16 lines
773 B
TypeScript
import {MigrationInterface, QueryRunner} from "typeorm";
|
|
|
|
export class ffVisibility1636197624383 implements MigrationInterface {
|
|
name = 'ffVisibility1636197624383'
|
|
|
|
public async up(queryRunner: QueryRunner): Promise<void> {
|
|
await queryRunner.query(`CREATE TYPE "public"."user_profile_ffvisibility_enum" AS ENUM('public', 'followers', 'private')`);
|
|
await queryRunner.query(`ALTER TABLE "user_profile" ADD "ffVisibility" "public"."user_profile_ffvisibility_enum" NOT NULL DEFAULT 'public'`);
|
|
}
|
|
|
|
public async down(queryRunner: QueryRunner): Promise<void> {
|
|
await queryRunner.query(`ALTER TABLE "user_profile" DROP COLUMN "ffVisibility"`);
|
|
await queryRunner.query(`DROP TYPE "public"."user_profile_ffvisibility_enum"`);
|
|
}
|
|
|
|
}
|