export class MigrationName1769719826928 {
    constructor() {
        this.name = "MigrationName1769719826928";
    }
    async up(queryRunner) {
        await queryRunner.query(`ALTER TABLE "IncidentRole" ADD "isPrimaryRole" boolean NOT NULL DEFAULT false`);
        await queryRunner.query(`ALTER TABLE "IncidentRole" ADD "isDeleteable" boolean NOT NULL DEFAULT true`);
        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 "IncidentRole" DROP COLUMN "isDeleteable"`);
        await queryRunner.query(`ALTER TABLE "IncidentRole" DROP COLUMN "isPrimaryRole"`);
    }
}
//# sourceMappingURL=1769719826928-MigrationName.js.map