export class AddRunbookAgentJobStepType1778784000000 {
    constructor() {
        this.name = "AddRunbookAgentJobStepType1778784000000";
    }
    async up(queryRunner) {
        /*
         * Add `stepType` so the agent knows whether to run the script as bash or
         * JavaScript. Default existing rows to 'Bash' since that is the only
         * step type the prior schema supported, then drop the default so future
         * inserts must specify it explicitly.
         */
        await queryRunner.query(`ALTER TABLE "RunbookAgentJob" ADD "stepType" character varying(100) NOT NULL DEFAULT 'Bash'`);
        await queryRunner.query(`ALTER TABLE "RunbookAgentJob" ALTER COLUMN "stepType" DROP DEFAULT`);
    }
    async down(queryRunner) {
        await queryRunner.query(`ALTER TABLE "RunbookAgentJob" DROP COLUMN "stepType"`);
    }
}
//# sourceMappingURL=1778784000000-AddRunbookAgentJobStepType.js.map