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

19 lines
585 B
TypeScript
Raw Normal View History

import { MigrationInterface, QueryRunner } from "typeorm";
export class noteReactionLength1582875306439 implements MigrationInterface {
2023-04-07 03:56:46 +02:00
constructor() {
this.name = "noteReactionLength1582875306439";
}
async up(queryRunner: QueryRunner): Promise<void> {
2023-04-07 03:56:46 +02:00
await queryRunner.query(
`ALTER TABLE "note_reaction" ALTER COLUMN "reaction" TYPE character varying(130)`,
undefined,
);
}
async down(queryRunner: QueryRunner): Promise<void> {
2023-04-07 03:56:46 +02:00
await queryRunner.query(
`ALTER TABLE "note_reaction" ALTER COLUMN "reaction" TYPE character varying(128)`,
undefined,
);
}
2021-11-11 18:02:25 +01:00
}