summaryrefslogtreecommitdiff
path: root/packages/backend/migration/1622681548499-log-message-length.js
blob: ac16c0e1baf725c071456d1f6ac37e31bb82bf6c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
export class logMessageLength1622681548499 {
    constructor() {
        this.name = 'logMessageLength1622681548499';
    }
    async up(queryRunner) {
        await queryRunner.query(`ALTER TABLE "log" ALTER COLUMN "message" TYPE character varying(2048)`, undefined);
    }
    async down(queryRunner) {
        await queryRunner.query(`ALTER TABLE "log" ALTER COLUMN "message" TYPE character varying(1024)`, undefined);
    }
}