export class MigrationName1769428619414 {
    constructor() {
        this.name = "MigrationName1769428619414";
    }
    async up(queryRunner) {
        await queryRunner.query(`ALTER TABLE "AlertEpisode" ADD "titleTemplate" character varying(100)`);
        await queryRunner.query(`ALTER TABLE "AlertEpisode" ADD "descriptionTemplate" character varying`);
        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 "AlertEpisode" DROP COLUMN "descriptionTemplate"`);
        await queryRunner.query(`ALTER TABLE "AlertEpisode" DROP COLUMN "titleTemplate"`);
    }
}
//# sourceMappingURL=1769428619414-MigrationName.js.map