export class AddTelemetryRetentionSettings1777018175127 {
    constructor() {
        this.name = "AddTelemetryRetentionSettings1777018175127";
    }
    async up(queryRunner) {
        await queryRunner.query(`ALTER TABLE "Project" ADD COLUMN IF NOT EXISTS "defaultTelemetryRetentionInDays" integer NOT NULL DEFAULT '15'`);
        await queryRunner.query(`ALTER TABLE "Service" ALTER COLUMN "retainTelemetryDataForDays" DROP DEFAULT`);
    }
    async down(queryRunner) {
        await queryRunner.query(`ALTER TABLE "Service" ALTER COLUMN "retainTelemetryDataForDays" SET DEFAULT '15'`);
        await queryRunner.query(`ALTER TABLE "Project" DROP COLUMN IF EXISTS "defaultTelemetryRetentionInDays"`);
    }
}
//# sourceMappingURL=1777018175127-AddTelemetryRetentionSettings.js.map