On Device Migration Safety

Ship a change to an app's on-device database — Core Data, SwiftData, Room, SQLite — when the store cannot roll it back and every phone migrates alone. Enumerate every app version still in the field from analytics, keep a fixture database per schema version and run migrations from every one in CI, not just the previous release, migrate inside a transaction after a backup copy, and ship a failure path that restores and degrades instead of bricking launch. Steps are forward-only; old fields stay one release. Use when the app crashes on launch after an update, someone asks how to test a Room or Core Data migration, is renaming a local column, or found fallbackToDestructiveMigration wiped user data. Not for a server database (db-migration), designing new tables (schema-design), a game's save files (game-save-system), or the store rollout (mobile-release).

greenblacked Updated
The twenty-nine plugins: coding, family, gamedev, operations, delivery, security, manager, personal, career, design, llm, data, techdocs, assurance, client-apps

File contents

greenblacked/AI commit 5a88a229e9

Frequently asked questions

npx get-skill add greenblacked/on-device-migration-safety