2024-04-07 05:38:52 +02:00
|
|
|
import type { MigrationInterface, QueryRunner } from "typeorm";
|
2024-03-03 05:20:32 +01:00
|
|
|
|
|
|
|
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,
|
|
|
|
);
|
|
|
|
}
|
2024-03-03 05:20:32 +01:00
|
|
|
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
|
|
|
}
|