MemoryLane SQLite Migrations

•
119
•

Manages and automates SQLite database schema evolution for the MemoryLane storage system.

This skill streamlines the process of evolving the SQLite database schema within the MemoryLane application by ensuring runtime storage remains in sync with TypeScript definitions. It provides a structured, step-by-step workflow for identifying schema deltas, generating versioned migration files with monotonic prefixes, and implementing idempotent SQL statements. By following best practices for data safety and migration registration, it helps developers manage complex database changes, such as adding indexes or backfilling data, without risking user data integrity.

Key Features

01Automated generation of versioned migration files with 4-digit prefixes
02Schema delta identification from TypeScript storage interfaces
03Guided testing workflow for database upgrades and backfills
04119 GitHub stars
05Enforcement of idempotent SQL patterns using IF EXISTS/NOT EXISTS clauses
06Centralized migration registration in src/main/storage/migrations/index.ts

Use Cases

01Creating database indexes to optimize new query patterns or filters
02Migrating legacy table structures into modern schema formats safely
03Adding new persisted fields to StoredActivity or ActivitySummary interfaces