Database Migrations
Manage safe schema evolution for SQLite and Supabase with idempotent migrations and TypeScript synchronization.
This skill provides a comprehensive framework for handling database schema changes safely within the Kadmon harness, minimizing the risk of data loss during persistent storage updates. It automates the complexities of SQLite's limited ALTER TABLE support through proven table recreation patterns, ensures data integrity with mandatory backup strategies, and maintains strict synchronization between SQL schemas and TypeScript interfaces. Whether you are adding new columns, creating tables, or preparing for Supabase v2 synchronization, this skill guides Claude through the entire migration lifecycle—from writing idempotent scripts to updating CRUD functions and validating changes with in-memory testing.