export class MigrationName1772111896988 {
    constructor() {
        this.name = "MigrationName1772111896988";
    }
    async up(queryRunner) {
        await queryRunner.query(`ALTER TABLE "TelemetryException" ADD "firstSeenInRelease" character varying(500)`);
        await queryRunner.query(`ALTER TABLE "TelemetryException" ADD "lastSeenInRelease" character varying(500)`);
        await queryRunner.query(`ALTER TABLE "OnCallDutyPolicyScheduleLayer" ALTER COLUMN "rotation" SET DEFAULT '{"_type":"Recurring","value":{"intervalType":"Day","intervalCount":{"_type":"PositiveNumber","value":1}}}'`);
        await queryRunner.query(`ALTER TABLE "OnCallDutyPolicyScheduleLayer" ALTER COLUMN "restrictionTimes" SET DEFAULT '{"_type":"RestrictionTimes","value":{"restictionType":"None","dayRestrictionTimes":null,"weeklyRestrictionTimes":[]}}'`);
        await queryRunner.query(`ALTER TABLE "TelemetryException" ADD "environment" character varying(500)`);
    }
    async down(queryRunner) {
        await queryRunner.query(`ALTER TABLE "TelemetryException" DROP COLUMN "environment"`);
        await queryRunner.query(`ALTER TABLE "OnCallDutyPolicyScheduleLayer" ALTER COLUMN "restrictionTimes" SET DEFAULT '{"_type": "RestrictionTimes", "value": {"restictionType": "None", "dayRestrictionTimes": null, "weeklyRestrictionTimes": []}}'`);
        await queryRunner.query(`ALTER TABLE "OnCallDutyPolicyScheduleLayer" ALTER COLUMN "rotation" SET DEFAULT '{"_type": "Recurring", "value": {"intervalType": "Day", "intervalCount": {"_type": "PositiveNumber", "value": 1}}}'`);
        await queryRunner.query(`ALTER TABLE "TelemetryException" DROP COLUMN "lastSeenInRelease"`);
        await queryRunner.query(`ALTER TABLE "TelemetryException" DROP COLUMN "firstSeenInRelease"`);
    }
}
//# sourceMappingURL=1772111896988-MigrationName.js.map