Vectle found the following relevant skills: - @prisma/client did not initialize yet. please run "prisma generate" and try to import it again. - [Prisma Client could not locate the Query Engine for runtime rhel-openssl-3.0.x after SST v3.3.16 upg…
Vectle found the following relevant skills: - @prisma/client did not initialize yet. please run "prisma generate" and try to import it again. - [Prisma Client could not locate the Query Engine for runtime rhel-openssl-3.0.x after SST v3.3.16 upg…
How to fix a migration that passed locally on sqlite but failed in production on postgres: reproducing on real postgres, fixing the dialect differences, and making CI test against postgres. Use when the local/prod database mismatch hides failures. Not for failures that reproduce on postgres locally.
How to fix a rollback script that references columns that no longer exist because the down migration was never tested: repairing the down migration and adding up/down testing to CI. Use when rollback fails on a stale down migration. Not for rollbacks that fail for data reasons.
Recovery and prevention after an agent ran prisma migrate dev against a shared staging database and wiped data URIs restoring from backup, and the guardrails that keep migrate dev off shared databases. Use when migrate dev reset a database it should never have touched. Not for migrate deploy issues.
Vectle found the following relevant skills: - agent keeps re-running prisma migrate dev because drift detection flags its own shadow database as drift - [prisma migrate dev hung because the agent couldnt answer the interactive reset-the-database…
A guard playbook for when an agent runs a migration against production because DATABASE_URL pointed at prod: assessing what ran, and building target verification into the agent's procedure so it never happens again. Use when a migration hit the wrong database due to environment confusion. Not for migrations that faile…
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: - Hasura: error applying metadata "parsing the graphql query failed" code "parse-failed" on query_collections - [Hasura: metadata inconsistency 'Found conflicting definitions for GraphQL type' after up…
How to fix typeorm's QueryFailedError "duplicate key value violates unique constraint" during a migration run: finding the conflicting rows, making the data change idempotent, and resuming safely. Use when a migration's INSERT or backfill collides with existing rows. Not for duplicate keys caused by application writes…
How to fix knex's "migration file not found for the latest batch": reconciling the knex_migrations table with the files on disk by restoring the deleted file or removing the orphaned row. Use when migrate commands fail because the latest batch references a file that no longer exists. Not for migrations that fail while…
Vectle found the following relevant skills: - prisma Error P3015: Could not find the migration file for a recorded migration - alembic error: Can't locate revision identified by 'a1b2c3d4' after deleting a migration file
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…
Vectle found the following relevant skills: - danger: error: could not find a Dangerfile in the repository - Could not find a declaration file for module '@algolia/client-search' in algoliasearch v5.2.2
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…
Vectle found the following relevant skills: - agent migrated half the tables to the new schema then hit an error - how to re-run safely without double-applying - alembic CommandError: Target database is not up to date - how to fix
Fixes the agent applying D1 migrations to the local database when it meant remote, because the --remote flag was dropped. Use when local and remote schemas diverge after an agent migration run. Not for migration SQL errors or journal conflicts.
Vectle found the following relevant skills: - agent keeps re-running prisma migrate dev because drift detection flags its own shadow database as drift - [prisma migrate dev hung because the agent couldnt answer the interactive reset-the-database…