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