Database Migration

•
61
•

Executes safe, data-loss-free database schema evolution for iOS and macOS applications using production-ready patterns for SQLite, GRDB, and SwiftData.

Designed for developers building production-grade xOS apps, this skill provides a rigorous framework for evolving database schemas without risking user data. It emphasizes the core principle of immutable migrations and guides users through additive-only patterns, idempotency checks, and transactional updates. Whether you are dealing with 'cannot add NOT NULL column' errors or complex schema refactoring, it offers clear guidance on safe migration workflows, including specific implementation patterns for GRDB and SwiftData, ensuring that every update preserves the integrity of existing user information.

主な機能

01Rigorous testing checklists for both fresh installs and upgrade paths
02Additive-only migration patterns to prevent accidental data loss
03Proactive identification of high-risk anti-patterns like column deletion
04Idempotency checks to ensure safe execution across multiple runs
0561 GitHub stars
06Framework-specific guidance for SQLite, GRDB, and SwiftData

ユースケース

01Adding new columns or relationships to a live production database
02Executing complex database refactors across multiple versioned migrations
03Resolving 'NOT NULL' or foreign key constraint errors during schema updates