recipe-manager/docs/schema-migration-delta-log.md

969 B

Schema Migration Delta Log — 2026-03-25

Date: 2026-03-25

Delta Summary

  • Normalized recipes table: removed JSON columns for ingredients and instructions
  • Added ingredients table (with position/order, FK to recipe)
  • Added steps table (with position/order, FK to recipe)
  • Removed notes and last_cooked_at columns from recipes
  • Changed timestamp columns to DATETIME for better SQLite compatibility
  • Removed color from tags table
  • Added index on ingredients(item)
  • Confirmed/completed indexes per spec

See ../migrations/2026-03-25-schema-migration.md for the detailed migration plan and SQL changes.


Action Items

  • Implement migration logic (split JSON columns)
  • Update src/backend/db/schema.sql with normalized tables
  • Write data migration script for live DBs (extract and insert ingredient/step records)
  • Run DB migration
  • Update test cases and data fixtures