iceshrimp/packages/backend/src/migration/1582875306439-note-reaction-length.ts

19 lines
585 B
TypeScript

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