export class MigrationName1779739410559 {
    constructor() {
        this.name = "MigrationName1779739410559";
    }
    async up(queryRunner) {
        await queryRunner.query(`DROP TABLE IF EXISTS "ServiceMonitor" CASCADE`);
        await queryRunner.query(`ALTER TABLE "IncidentGroupingRule" DROP COLUMN "groupByService"`);
        await queryRunner.query(`ALTER TABLE "AlertGroupingRule" DROP COLUMN "groupByService"`);
        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":[]}}'`);
    }
    async down(queryRunner) {
        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 "AlertGroupingRule" ADD "groupByService" boolean NOT NULL DEFAULT false`);
        await queryRunner.query(`ALTER TABLE "IncidentGroupingRule" ADD "groupByService" boolean NOT NULL DEFAULT false`);
    }
}
//# sourceMappingURL=1779739410559-MigrationName.js.map