Database Migrations

•
5
•

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.

主要功能

01Table recreation patterns for complex SQLite schema changes
02Sequential Supabase migration management with forward-only versioning
03Integrated rollback strategies and mandatory database backup protocols
04Idempotent SQLite migrations using IF NOT EXISTS guards
05Automatic synchronization between SQL schemas and TypeScript interfaces
065 GitHub stars

使用场景

01Syncing TypeScript types and state-store mapping functions after a schema update
02Adding new columns or tables to a SQLite/Supabase production environment without downtime
03Refactoring existing database structures and dropping columns in SQLite safely