{"record":{"id":"2d4f3faa4a373447","repo":"paperclipai/paperclip","slug":"migrations-incomplete-after-pendingmigrations-j","errorCode":null,"errorMessage":"Migrations incomplete: ${after.pendingMigrations.join(\", \")}","messagePattern":"Migrations incomplete: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/db/src/migrate.ts","lineNumber":21,"sourceCode":"\nasync function main(): Promise<void> {\n  const resolved = await resolveMigrationConnection();\n\n  console.log(`Migrating database via ${resolved.source}`);\n\n  try {\n    const before = await inspectMigrations(resolved.connectionString);\n    if (before.status === \"upToDate\") {\n      console.log(\"No pending migrations\");\n      return;\n    }\n\n    console.log(`Applying ${before.pendingMigrations.length} pending migration(s)...`);\n    await applyPendingMigrations(resolved.connectionString);\n\n    const after = await inspectMigrations(resolved.connectionString);\n    if (after.status !== \"upToDate\") {\n      throw new Error(`Migrations incomplete: ${after.pendingMigrations.join(\", \")}`);\n    }\n    console.log(\"Migrations complete\");\n  } finally {\n    await resolved.stop();\n  }\n}\n\nawait main();\n","sourceCodeStart":3,"sourceCodeEnd":30,"githubUrl":"https://github.com/paperclipai/paperclip/blob/120ae5428fa29bee300bcf806491cd4d965fbb7c/packages/db/src/migrate.ts#L3-L30","documentation":"Error \"Migrations incomplete: ${after.pendingMigrations.join(\", \")}\" thrown in paperclipai/paperclip.","triggerScenarios":"Thrown at packages/db/src/migrate.ts:21 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Apply the remaining pending migrations (e.g. `pnpm db:migrate`) before proceeding."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"120ae5428fa29bee300bcf806491cd4d965fbb7c","analyzedAt":"2026-08-18T22:49:45.177Z","contentChangedAt":"2026-08-18T22:49:45.177Z","schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}