cross-service-migration-coordination

Coordinate cross-service migrations in a shared tenant database with per-service tracking and prefixes.

1|Updated Apr 17, 2026
One-click install
npx skills add https://github.com/PremModhaOfficial/motadata-ai-pipeline --skill cross-service-migration-coordination
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cross-service-migration-coordination
Source: https://github.com/PremModhaOfficial/motadata-ai-pipeline/tree/main/.claude/skills/cross-service-migration-coordination
Command: npx skills add https://github.com/PremModhaOfficial/motadata-ai-pipeline --skill cross-service-migration-coordination

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

In the schema-per-tenant model, all services migrate against the same tenant database. This creates collision risks that must be managed.

Core Features & Use Cases

  • Per-service migration tracking tables to avoid cross-service conflicts.
  • Table prefixing strategy to prevent generic table name collisions across services (e.g., identity_, access_ctrl_).
  • Migration execution order guidance and runner pattern to preserve dependencies across services.
  • Use Case: When coordinating deployments across multiple services, use dedicated tracking tables and table prefixes to maintain isolation and reliability.

Quick Start

Configure and run per-service migrations in dependency order using isolated schema_migrations tables and prefixed domain tables.

Frequently Asked Questions about cross-service-migration-coordination

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I coordinate database migrations across multiple services in a schema-per-tenant setup?

To coordinate database migrations across multiple services in a schema-per-tenant setup, use per-service tracking tables and table prefixes to isolate execution. Run migrations in dependency order using a runner script to prevent conflicts in the shared tenant database.

Why do my multi-service migrations conflict when running against the same tenant database?

Multi-service migrations conflict in the same tenant database due to generic table name collisions and shared tracking tables. Applying per-service tracking tables and table prefixing strategies, such as identity_*, prevents these cross-service collisions.

What is the best way to prevent table name collisions during shared tenant database deployments?

The best way to prevent table name collisions during shared tenant database deployments is implementing a table prefixing strategy. Prefixing domain tables per service ensures isolation and prevents generic name overlaps when multiple services migrate simultaneously.

Do I need separate migration tracking tables for each service sharing a tenant database?

Yes, you need separate migration tracking tables for each service sharing a tenant database. Per-service tracking tables enforce isolation, ensuring services do not overwrite migration states and maintain reliable deployment histories.

How do I configure a migration runner to preserve dependency order across different services?

To configure a migration runner preserving dependency order across services, define the execution sequence in the runner script configuration. Execute per-service migrations sequentially using isolated schema_migrations tables to ensure dependencies are resolved safely.

When should I use table prefixing for multi-service database migrations?

You should use table prefixing for multi-service database migrations whenever multiple services share a schema-per-tenant database. Prefixing prevents generic table name collisions, maintaining domain isolation and reliable migrations across concurrent service deployments.