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

17 lines
518 B
TypeScript
Raw Normal View History

import type { MigrationInterface, QueryRunner } from "typeorm";
export class remoteReaction1586641139527 implements MigrationInterface {
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(260)`,
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(130)`,
undefined,
);
}
2021-11-11 18:02:25 +01:00
}