Xpersona
D

Database Migration

CLAWHUB · Unverified

Execute database migrations across ORMs and platforms with zero-downtime strategies, data transformation, and rollback procedures. Use when migrating databas... Skill: Database Migration Owner: emiltsoi Summary: Execute database migrations across ORMs and platforms with zero-downtime strategies, data transformation, and rollback procedures. Use when migrating databas... Tags: latest:1.0.0 Version history: v1.0.0 | 2026-04-11T01:59:30.090Z | auto - Initial release of the database-migration skill. - Provides step-by-step guides for schema and data migrations using Sequelize, T

62
Rank
84
Safety
1.0k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1K downloads reported by the source. Last updated 10/11/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s17bq3w6hqf048s78myxhnrjj984m305:database-migration
  1. Setup complexity is LOW. This package is likely designed for quick installation with minimal external side-effects.
  2. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-emiltsoi-database-migration/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

12,769 characters of source documentation, loaded on request.

Extracted files

3 files captured from the source.

SKILL.md

---
name: database-migration
description: Execute database migrations across ORMs and platforms with zero-downtime strategies, data transformation, and rollback procedures. Use when migrating databases, changing schemas, performing data transformations, or implementing zero-downtime deployment strategies.
---

# Database Migration

Master database schema and data migrations across ORMs (Sequelize, TypeORM, Prisma), including rollback strategies and zero-downtime deployments.

## When to Use This Skill

- Migrating between different ORMs
- Performing schema transformations
- Moving data between databases
- Implementing rollback procedures
- Zero-downtime deployments
- Database version upgrades
- Data model refactoring

## ORM Migrations

### Sequelize Migrations

```javascript
// migrations/20231201-create-users.js
module.exports = {
  up: async (queryInterface, Sequelize) => {
    await queryInterface.createTable("users", {
      id: {
        type: Sequelize.INTEGER,
        primaryKey: true,
        autoIncrement: true,
      },
      email: {
        type: Sequelize.STRING,
        unique: true,
        allowNull: false,
      },
      createdAt: Sequelize.DATE,
      updatedAt: Sequelize.DATE,
    });
  },

  down: async (queryInterface, Sequelize) => {
    await queryInterface.dropTable("users");
  },
};

// Run: npx sequelize-cli db:migrate
// Rollback: npx sequelize-cli db:migrate:undo
```

### TypeORM Migrations

```typescript
// migrations/1701234567-CreateUsers.ts
import { MigrationInterface, QueryRunner, Table } from "typeorm";

export class CreateUsers1701234567 implements MigrationInterface {
  public async up(queryRunner: QueryRunner): Promise<void> {
    await queryRunner.createTable(
      new Table({
        name: "users",
        columns: [
          {
            name: "id",
            type: "int",
            isPrimary: true,
            isGenerated: true,
            generationStrategy: "increment",
          },
          {
            name: "email",
            type: "varchar",
            isUnique: true,
          },
          {
            name: "created_at",
            type: "timestamp",
            default: "CURRENT_TIMESTAMP",
          },
        ],
      }),
    );
  }

  public async down(queryRunner: QueryRunner): Promise<void> {
    await queryRunner.dropTable("users");
  }
}

// Run: npm run typeorm migration:run
// Rollback: npm run typeorm migration:revert
```

### Prisma Migrations

```prisma
// schema.prisma
model User {
  id        Int      @id @default(autoincrement())
  email     String   @unique
  createdAt DateTime @default(now())
}

// Generate migration: npx prisma migrate dev --name create_users
// Apply: npx prisma migrate deploy
```

## Schema Transformations

### Adding Columns with Defaults

```javascript
// Safe migration: add column with default
module.exports = {
  up: async (queryInterface, Sequelize) => {
    await queryInterface.addColumn("users", "status", {
      type: Sequelize.STRING,
 

_meta.json

{
  "ownerId": "kn7ctet14gwdza7t1gcjb78kwh84n2ae",
  "slug": "database-migration",
  "version": "1.0.0",
  "publishedAt": 1775872770090
}

skill-card.md

## Description:

Execute database migrations across ORMs and platforms with zero-downtime strategies, data transformation, and rollback procedures.

This skill is ready for commercial/non-commercial use.

## Publisher:

[emiltsoi](https://clawhub.ai/user/emiltsoi)

### License/Terms of Use:

MIT-0

## Use Case:

Developers and engineers use this skill for planning database schema changes, data transformations, ORM migrations, rollback procedures, and zero-downtime deployment strategies across Sequelize, TypeORM, and Prisma.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: High-impact destructive migration and rollback examples may cause data loss if applied directly to production systems.

Mitigation: Use this skill as general reference, test plans in staging, require verified backups, and obtain explicit approval before destructive changes.

Risk: The checkpoint rollback example drops a live table during exception handling.

Mitigation: Avoid that pattern for live systems and use vetted recovery procedures or transaction-based rollback where appropriate.

Risk: Migration commands may run unexpected tooling versions if project dependencies are not pinned.

Mitigation: Pin migration tooling in project dependencies and run commands through lockfile-controlled local binaries.

## Reference(s):


## Skill Output:

**Output Type(s):** [Text, Markdown, Code, Shell commands, Guidance]

**Output Format:** [Markdown guidance with code blocks and inline shell commands]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [Produces migration guidance and examples; it does not execute database commands directly.]

## Skill Version(s):

1.0.0 (source: server release metadata)

## Ethical Considerations:

Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.

Sponsored

Ads related to Database Migration and adjacent AI workflows.