forked from mirrors/iceshrimp
19 lines
585 B
TypeScript
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,
|
|
);
|
|
}
|
|
}
|