jormungandr-bite/packages/backend/src/migration/1678426061773-tweak-varchar-length.ts
2023-10-13 18:44:25 +02:00

17 lines
543 B
TypeScript

import { MigrationInterface, QueryRunner } from "typeorm";
export class tweakVarcharLength1678426061773 implements MigrationInterface {
name = "tweakVarcharLength1678426061773";
async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(
`ALTER TABLE "meta" ALTER COLUMN "smtpUser" TYPE character varying(1024)`,
undefined,
);
await queryRunner.query(
`ALTER TABLE "meta" ALTER COLUMN "smtpPass" TYPE character varying(1024)`,
undefined,
);
}
async down(queryRunner: QueryRunner): Promise<void> {}
}