export class MigrationName1769719135546 {
    constructor() {
        this.name = "MigrationName1769719135546";
    }
    async up(queryRunner) {
        await queryRunner.query(`ALTER TABLE "IncidentMember" DROP COLUMN "startsAt"`);
        await queryRunner.query(`ALTER TABLE "IncidentMember" DROP COLUMN "endsAt"`);
        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 "IncidentMember" ADD "endsAt" TIMESTAMP WITH TIME ZONE`);
        await queryRunner.query(`ALTER TABLE "IncidentMember" ADD "startsAt" TIMESTAMP WITH TIME ZONE`);
    }
}
//# sourceMappingURL=1769719135546-MigrationName.js.map