mirror of
https://activitypub.software/TransFem-org/Sharkey
synced 2024-11-23 14:35:14 +00:00
8e6da3a0d9
Related #4892
13 lines
487 B
TypeScript
13 lines
487 B
TypeScript
import {MigrationInterface, QueryRunner} from "typeorm";
|
|
|
|
export class PinnedUsers1557476068003 implements MigrationInterface {
|
|
|
|
public async up(queryRunner: QueryRunner): Promise<any> {
|
|
await queryRunner.query(`ALTER TABLE "meta" ADD "pinnedUsers" character varying(256) array NOT NULL DEFAULT '{}'::varchar[]`);
|
|
}
|
|
|
|
public async down(queryRunner: QueryRunner): Promise<any> {
|
|
await queryRunner.query(`ALTER TABLE "meta" DROP COLUMN "pinnedUsers"`);
|
|
}
|
|
|
|
}
|