database-migration

Community

Evolve database schemas safely, prevent data loss.

AuthorCharlesWiltgen
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill prevents catastrophic data loss and app crashes when evolving database schemas in production iOS/macOS apps. It addresses common pitfalls like NOT NULL column errors, foreign key failures, and the dangers of modifying shipped migrations.

Core Features & Use Cases

  • Safe Migration Patterns: Guides for additive-only, idempotent, and transactional schema changes, ensuring data integrity.
  • Comprehensive Testing Workflow: Mandatory tests for fresh installs, migration paths from previous versions, and idempotency to guarantee robustness.
  • Framework-Specific Guidance: Includes safe patterns and best practices for SQLite, GRDB, and SwiftData migrations.
  • Use Case: When you need to add a new nullable column to a live app's database without losing existing user data, use this skill to follow the safe additive pattern and ensure thorough testing across all scenarios.

Quick Start

To add a new nullable column newColumn to tableName, ensure idempotency by checking for its existence first, then execute ALTER TABLE tableName ADD COLUMN newColumn TEXT.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: database-migration
Download link: https://github.com/CharlesWiltgen/Axiom/archive/main.zip#database-migration

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository