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

756 B
Raw Blame
import { MigrationInterface, QueryRunner } from 'typeorm'
import { system } from '../../../helper/system/system'

const log = system.globalLogger()

export class AddScheduleOptions1687384796637 implements MigrationInterface {
    name = 'AddScheduleOptions1687384796637'

    public async up(queryRunner: QueryRunner): Promise<void> {
        log.info('Running AddScheduleOptions1687384796637 migration up')
        await queryRunner.query('ALTER TABLE "flow_instance" ADD "schedule" jsonb')
        log.info('Running AddScheduleOptions1687384796637 migration done')
    }

    public async down(queryRunner: QueryRunner): Promise<void> {
        await queryRunner.query(
            'ALTER TABLE "flow_instance" DROP COLUMN "schedule"',
        )
    }
}