iceshrimp/packages/backend/src/migration/1586641139527-remote-reaction.ts

19 lines
577 B
TypeScript

import { MigrationInterface, QueryRunner } from "typeorm";
export class remoteReaction1586641139527 implements MigrationInterface {
constructor() {
this.name = "remoteReaction1586641139527";
}
async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(
`ALTER TABLE "note_reaction" ALTER COLUMN "reaction" TYPE character varying(260)`,
undefined,
);
}
async down(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(
`ALTER TABLE "note_reaction" ALTER COLUMN "reaction" TYPE character varying(130)`,
undefined,
);
}
}