export class MigrationName1774559064920 {
    constructor() {
        this.name = "MigrationName1774559064920";
    }
    async up(queryRunner) {
        await queryRunner.query(`ALTER TABLE "Workflow" ADD "webhookSecretKey" text`);
        // Set secret key to existing workflow ID so current webhook URLs keep working.
        await queryRunner.query(`UPDATE "Workflow" SET "webhookSecretKey" = "_id"::text WHERE "webhookSecretKey" IS NULL`);
    }
    async down(queryRunner) {
        await queryRunner.query(`ALTER TABLE "Workflow" DROP COLUMN "webhookSecretKey"`);
    }
}
//# sourceMappingURL=1774559064920-MigrationName.js.map