summaryrefslogtreecommitdiff
path: root/packages/backend/migration/1596786425167-channel2.js
blob: 4b17048fef5c825a10ef71a7f0d8328bb3f1b61b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
export class channel21596786425167 {
    constructor() {
        this.name = 'channel21596786425167';
    }
    async up(queryRunner) {
        await queryRunner.query(`ALTER TABLE "channel_following" ADD "readCursor" TIMESTAMP WITH TIME ZONE NOT NULL`);
    }
    async down(queryRunner) {
        await queryRunner.query(`ALTER TABLE "channel_following" DROP COLUMN "readCursor"`);
    }
}