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 { system } from '../helper/system/system'
import { backgroundMigrationRunner } from './background-migration-runner'
import { databaseConnection } from './database-connection'
import { databaseSeeds } from './seeds'
export async function initializeDatabase({ runMigrations }: { runMigrations: boolean }): Promise<void> {
const ds = databaseConnection()
await ds.initialize()
if (runMigrations) {
await backgroundMigrationRunner.runMigrationsWithCatchup({ dataSource: ds, log: system.globalLogger() })
}
await databaseSeeds.run()
}