How to recover from a failed neo4j store migration: restoring the pre-upgrade backup, fixing the cause, and retrying the upgrade. Use when neo4j's automatic store upgrade fails partway. Not for query or driver errors after a successful upgrade.
Vectle found the following relevant skills: - gh-ost error: FATAL cannot acquire lock on table during online schema migration - typeorm QueryFailedError: duplicate key value violates unique constraint during migration run
How to fix "airflow db migrate failed with alembic revision conflict": aligning the airflow version with the database's migration state and re-running the managed migration. Use when airflow's own metadata-database migration fails on revision conflicts, usually after an upgrade skipped versions. Not for DAG or task er…
How to fix prisma Error P3015 "Could not find the migration file for a recorded migration": restoring the missing migration folder from version control, or marking the phantom migration rolled back when it never actually applied. Use when the _prisma_migrations table references a migration directory that does not exis…
A fix for alembic's "Can't locate revision identified by" error after a migration file was deleted: how to find which surviving file still references the missing revision id, and whether to restore the file, recreate a stub, or repoint the chain. Use when alembic commands fail because a down_revision points at a delet…
A recovery playbook for golang-migrate's Dirty database version error: how to inspect what the failed migration partially applied, finish or undo it by hand, clear the dirty flag with migrate force, and verify the chain is clean. Use when migrate refuses to run because a version is marked dirty. Not for migrations tha…
A guide to fixing agent search that returns nothing after an embedding model swap, in the business-apis-integrations category: re-embedding, index versioning, and drift detection. Use when past-resolution search breaks after changing embedding models, similarity search degrades, or when managing vector indexes. Not fo…
Fixes sqlalchemy.exc.ArgumentError: Textual column expression should be explicitly declared as text() after upgrading to SQLAlchemy 2.0. Use it when raw SQL strings passed to session.execute or select start raising this error. Key trigger: SQLAlchemy 2.0 requires textual SQL to be wrapped in sqlalchemy.text(), so ever…
Fixes Sequelize 'relation Users does not exist' caused by model/table name case mismatch. Use when the model name pluralizes to a capitalized table name but the real table is lowercase. Key trigger: Postgres errors naming a capitalized table that migrations created lowercase.
Vectle found the following relevant skills: - migration agent's tool call returned success but the migration actually failed silently - the wrapper script... - [agent auto-merged a "minor" bump that removed a deprecated endpoint - the package us…
Vectle found the following relevant skills: - agent_engines: TypeError: cannot pickle '_contextvars.Context' object - during run evaluation of a test case inferences could be NoneType which has no len attribute and error is
Vectle found the following relevant skills: - deadlock detected" Postgres: what causes it - Drift detected: Your database schema is not in sync with your migration history…
Fixes slow PostgreSQL full-text search on a GIN index: expression mismatch that makes the planner ignore the index, pending-list bloat on write-heavy tables, fuzzy result sets capped with gin_fuzzy_search_limit, and ts_rank costing inside a LIMIT subquery. Use when a @@ query on a tsvector GIN column runs a sequential…
Fixes a migration stuck waiting on an AccessExclusiveLock held by a long-running analytics query. It shows how to identify the blocking query with pg_blocking_pids, inspect it, terminate it safely, and re-run the migration. Use when DDL will not start and pg_stat_activity shows a lock wait.
Fixes the uncertainty when a websocket-based migration runner disconnects during a long ALTER. It shows how to check the database directly for whether the ALTER is still running, finished, or never started, using pg_stat_activity and the information schema. Use when the runner is gone but the database may still be wor…
Vectle found the following relevant skills: - django migrate timed out on a big AddField in production and now the agent cant tell which migrations actually applied - [migration checkpoint file was written to /tmp and the container restarted - t…
Fixes unknown migration state after a network drop mid-run. It shows how to re-establish the connection, clear the dead session's locks, and read the migration tool's state table to learn exactly which migrations landed, then resume only the pending ones. Use when a migration agent loses its database connection over V…
Fixes an alembic migration stranded by a dropped SSH tunnel, leaving an open transaction holding a postgres lock. Use when the migration session is idle in transaction and the lock won't release. Key trigger: pg_stat_activity shows the dead session still holding the lock.
Fixes a half-migrated production database when the deploy failed with no down migrations to roll back to. Use when some migrations applied and the only safe direction is forward. Key trigger: 8 of 15 migrations applied, deploy dead, no downgrade path.
Fixes resuming an interrupted Flyway run when flyway_schema_history disagrees with the agent's memory. Use when a flyway migrate crashed partway and you need to know exactly which versions applied. Key trigger: success=false rows or a pending set in flyway info after a crash.