Skip to content

AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents

607 B
Raw Blame
import { MigrationInterface, QueryRunner } from 'typeorm'

export class MigrateInputUiInfo1711411372480 implements MigrationInterface {
    name = 'MigrateInputUiInfo1711411372480'

    public async up(queryRunner: QueryRunner): Promise<void> {
        // This input ui is no longer optional
        await queryRunner.query('UPDATE flow_version SET trigger = jsonb_set(trigger, \'{settings,inputUiInfo}\', \'{}\'::jsonb) WHERE trigger->\'settings\'->>\'inputUiInfo\' IS NULL;')

    }

    public async down(): Promise<void> {
        // This migration is irreversible and shouldn't be rolled back
    }

}