Skip to content

ChainGraph API Documentation / @badaitech/chaingraph-types / FlowMigration

Class: FlowMigration

Defined in: packages/chaingraph-types/src/flow/flow-migration.ts:18

Flow migration utilities for handling schema version upgrades

Constructors

Constructor

new FlowMigration(): FlowMigration

Returns

FlowMigration

Methods

migrateFlowFromV1ToV2()

static migrateFlowFromV1ToV2(flow): IFlow

Defined in: packages/chaingraph-types/src/flow/flow-migration.ts:24

Migrate flow from schema v1 to v2 Changes port ID format from "key:PO[16chars]" to just "key" System ports preserve their __ prefix

Parameters

flow

IFlow

Returns

IFlow

Licensed under BUSL-1.1