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
TypeScript ai-agentai-agent-toolsai-agentsai-agents-frameworkmcpmcp-servermcp-toolsmcpsn8n-alternativeno-code-automationworkflowworkflow-automationworkflows
import { MigrationInterface, QueryRunner } from 'typeorm'
export class LogFileRelationWithFlowRun1725639666232 implements MigrationInterface {
name = 'LogFileRelationWithFlowRun1725639666232'
public async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`
ALTER TABLE "flow_run"
ADD CONSTRAINT "fk_flow_run_logs_file_id" FOREIGN KEY ("logsFileId") REFERENCES "file"("id") ON DELETE
SET NULL ON UPDATE NO ACTION
`)
await queryRunner.query('DELETE FROM "file" WHERE "type" = \'UNKNOWN\' OR "type" = \'CODE_SOURCE\'')
}
public async down(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`
ALTER TABLE "flow_run" DROP CONSTRAINT "fk_flow_run_logs_file_id"
`)
}
}