hippofish/packages/backend/src/migration/1645340161439-remove-max-note-text-length.ts

17 lines
466 B
TypeScript

import type { MigrationInterface, QueryRunner } from "typeorm";
export class removeMaxNoteTextLength1645340161439
implements MigrationInterface
{
async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(
`ALTER TABLE "meta" DROP COLUMN "maxNoteTextLength"`,
);
}
async down(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(
`ALTER TABLE "meta" ADD "maxNoteTextLength" integer NOT NULL DEFAULT '500'`,
);
}
}