In short.
Database Migration is a skill for developers using coding assistants to plan database changes, but its recovery and zero-downtime examples are incomplete for live use. Its two Markdown files provide ORM snippets, data transformations and a phased column replacement strategy. A checkpoint example checks an unfilled column for nulls and then attempts recovery by dropping and recreating the original table. The material is useful for learning and drafting; runtime correctness, compatibility, downtime and recovery success are not assessed.
Researched and written by an AI model and checked by a second AI model. How it works
Covers the complete supplied database-migration skill folder at revision 9c61ab243def98f72da12abd41cfcf5bcd91af9d: SKILL.md and references/details.md, together with the repository-root MIT LICENSE. Other repository skills, wider plugin behavior, assistant integrations and external ORM documentation are outside scope. No code was executed. Installation, runtime correctness, downtime, scalability and recovery outcomes remain unassessed.
The overview
identity
The resource is the database-migration skill in wshobson/agents, under plugins/framework-migration/skills/database-migration. It consists of SKILL.md and references/details.md. The upstream folder is [https://github.com/wshobson/agents/tree/main/plugins/framework-migration/skills/database-migration].
SKILL.md identifies database migrations, schema transformations, rollback procedures and zero-downtime deployments as intended uses. The supplied files contain instructions and illustrative code rather than a standalone migration application.
assessment
The strongest use is helping a developer or coding assistant draft a migration plan and recognize common patterns across ORMs. The examples make forward changes, reversal methods and release sequencing concrete.
Production use requires substantial review. The checkpoint example contains a failure path for populated tables, and several transformations can discard information that their reversal methods cannot reconstruct. The zero-downtime labels are not supported by execution results, concurrency tests or measured availability.
users
Backend developers and database maintainers using Sequelize, TypeORM or Prisma are the clearest audience. Coding assistants can use the material as guidance when drafting migration code, although supported assistant products are unspecified.
Beginners can learn how a migration applies a change and how an up/down pair attempts to reverse it. Experienced developers get compact examples to adapt, but must supply knowledge of database locking, application compatibility, concurrent writes and recoverability.
capabilities
The main file shows Sequelize and TypeORM table creation and reversal, a Prisma model with migration commands, adding a column with a default, replacing a column, converting column types, splitting address data, using a transaction and creating a backup table.
The reference file adds a phased column replacement: introduce a second column, deploy writes to both, backfill existing records, switch reads and remove the old column. Its PostgreSQL-to-MySQL example selects JSONB or JSON according to the active dialect; it does not implement data transfer between databases.
Using it
requirements
Following the examples would require a configured project using the relevant ORM, its database driver, a reachable database and permissions to alter schema and data. The JavaScript and TypeScript examples also imply a suitable project runtime. These are practical requirements inferred from the code.
No supported ORM versions, database versions, assistant versions or dependency manifest are supplied. Transactional schema changes, locking behavior and SQL conversion syntax need confirmation for the actual database engine.
mechanism
The skill works through written instructions and embedded examples. Its front matter names the skill and describes relevant tasks; the main document links to references/details.md for additional patterns. A compatible assistant would need access to those files, while the project’s ORM tools would apply any resulting migrations.
The examples combine schema operations with SQL updates. Sequelize and TypeORM use forward and reverse methods, while the Prisma example shows separate development and deployment commands. The reference’s blue-green strategy describes application release phases without providing deployment or traffic-switching automation.
setup
Keep SKILL.md and references/details.md together so the relative reference remains usable. The selected files provide no assistant-specific installation command, supported-host list or loading configuration, so compatibility with a particular assistant is unknown.
Before adapting a snippet, configure the project’s ORM and migration runner and replace the example tables and fields with the real schema. The TypeORM npm commands assume a suitable project script. The Prisma example distinguishes migration development from deployment, but does not provide a complete project setup.
example
Consider replacing users.email with users.email_new while application releases change over. The reference outlines adding email_new, deploying code that writes both columns, filling missing email_new values, deploying reads from the new column and finally removing email.
This illustrates why a live schema change may span multiple releases. However, the example supplies no dual-write implementation, batched backfill, completion validation or recovery procedure for a failed read switch. Its SQL backfill is a single bulk update. No outcome or downtime measurement is supplied.
Assessment & evidence
limitations
The checkpoint example adds nullable new_field without populating it, then treats any null values as failure. With existing rows and no outside intervention, this leads into recovery. Recovery drops users and recreates it using CREATE TABLE AS SELECT from users_backup. The code contains no steps to recreate keys, indexes, defaults or triggers, or reconcile writes made after the backup. Database dependencies could also prevent the drop.
The main file’s column-renaming example copies values once before the application changes over. It supplies no mechanism to keep those values synchronized during concurrent writes. Its type-conversion example drops the original column within the same migration, leaving no documented compatibility period for old application code. The reference’s phased approach is more complete, but still requires implementation and validation.
Reversing a schema change does not necessarily recover original data. Converting an integer back to text cannot restore formatting lost during the initial cast, and reconstructing an address from split fields may lose its original representation. The address example also reads every row into memory, updates rows individually and calls split without handling null values.
A transaction protects the illustrated changes only where the database and operations support the required transactional behavior. No runtime tests, database compatibility matrix, scale measurements or demonstrated recovery results are supplied.
reasoning
The resource’s value comes from showing exact ORM calls and the order of common migration steps. Its short examples make it easier to discuss adding fields, transforming existing records and coordinating application releases.
The distinction between schema reversal and data recovery is central to using it well. A down method can remove a newly created table or column while also deleting its contents. Likewise, phased deployment instructions provide a useful plan, but application-specific compatibility, validation and recovery evidence must establish whether that plan is safe.
alternatives
The closest alternatives named in the files are writing migrations directly with Sequelize CLI, TypeORM migrations or Prisma Migrate. A developer working in one ORM can use that project’s migration tooling directly; this skill adds examples and planning guidance around those tools.
The files provide no comparison with dedicated online schema-change or database-transfer tools. Relative reliability, compatibility, performance and cost are unknown, and no evidence establishes an advantage over another migration resource.
evidence
The primary instruction file contains the ORM, transformation and rollback examples: [https://raw.githubusercontent.com/wshobson/agents/9c61ab243def98f72da12abd41cfcf5bcd91af9d/plugins/framework-migration/skills/database-migration/SKILL.md].
The companion reference contains the phased deployment and dialect-specific type examples: [https://raw.githubusercontent.com/wshobson/agents/9c61ab243def98f72da12abd41cfcf5bcd91af9d/plugins/framework-migration/skills/database-migration/references/details.md].
The repository licence is available at [https://raw.githubusercontent.com/wshobson/agents/9c61ab243def98f72da12abd41cfcf5bcd91af9d/LICENSE]. These sources establish the written content and licence terms. They contain no test results demonstrating installation, successful migration, recovery or uninterrupted service.
Access & freshness
costs
The MIT notice grants its permissions free of charge. The skill files specify no product price, subscription or usage billing.
Assistant usage, database compute, backup storage and engineering effort depend on the chosen environment. The examples include a full-table backup and bulk updates, but provide no sizing or resource measurements. Total operating cost is unknown.
rights
The supplied repository-root LICENSE is the MIT License, with copyright attributed to Seth Hobson in 2024. It permits use, copying, modification, publication, distribution, sublicensing and sale, subject to retaining the copyright and permission notice in copies or substantial portions.
The licence disclaims warranties and limits liability. It supplies no assurance that a migration will preserve data or remain available. No separate licence notice appears in either supplied skill file.
freshness
The supplied source snapshot is revision 9c61ab243def98f72da12abd41cfcf5bcd91af9d, captured on 17 November 2026 at 02:11:55.432 UTC. The raw-source addresses identify that revision; the upstream folder address follows the changeable main branch.
The commit date, last substantive skill update and compatibility with current ORM releases are unknown from the supplied evidence. The 2024 copyright notice does not establish when the examples were last updated.
actions
Use the skill to draft a migration plan, then check every operation against the actual database engine, ORM version and application release sequence. For column replacement, define how old and new writers stay compatible, how backfill completion is verified and when removing the original field becomes safe.
Replace the checkpoint example with a recovery procedure that preserves the required schema and data. Rehearse forward migration and recovery on representative disposable data, including concurrent writes and failure cases. Measure locks, execution time and storage needs before a live rollout. These are recommended next steps; none has been executed or verified here.
