export class MigrationName1766600860972 {
    constructor() {
        this.name = "MigrationName1766600860972";
    }
    async up(queryRunner) {
        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 "AIAgent" DROP COLUMN "description"`);
        await queryRunner.query(`ALTER TABLE "AIAgent" ADD "description" character varying(500)`);
    }
    async down(queryRunner) {
        await queryRunner.query(`ALTER TABLE "AIAgent" DROP COLUMN "description"`);
        await queryRunner.query(`ALTER TABLE "AIAgent" ADD "description" character varying(50)`);
        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}}}'`);
    }
}
//# sourceMappingURL=1766600860972-MigrationName.js.map