e17ce2be29
fix: Migration 003 - use dynamic column list to handle missing updated_at in old schema
2026-03-10 14:31:58 -05:00
031e344fcb
fix: Migration 003 - remove old record_type CHECK constraint from health_records
2026-03-10 13:06:42 -05:00
9b43bdab99
fix(db): add vet_name, result, next_due to healthMigrations ALTER TABLE guards
...
Existing databases were missing these 3 columns because they were defined
in the CREATE TABLE but not in the healthMigrations array used for
ALTER TABLE on pre-existing DBs. This caused the 'table health_records
has no column named vet_name' error in the Add Health Record modal.
2026-03-10 12:52:04 -05:00
91ad50655c
feat(db): Phase 4b schema — OFA clearances, genetic_tests, cancer_history, eligibility fields
2026-03-09 23:21:44 -05:00
6903e66419
feat(db): add is_champion to dogs, kennel settings columns, migrate existing rows
2026-03-09 22:23:41 -05:00
683fef7e9c
feat: add is_champion column to dogs table and settings table
2026-03-09 22:00:40 -05:00
3ae3458dfc
Clean: Fresh database init with parents table - no migrations
2026-03-09 01:59:52 -05:00
15f455387d
Add automatic migration system with schema validation
2026-03-09 00:58:19 -05:00
a246e5f84f
Add migration to add litter_id column to dogs table
2026-03-09 00:06:41 -05:00
f1e5b422b0
Add migration script to fix microchip UNIQUE constraint
2026-03-08 23:40:02 -05:00
bb0f5dd9b8
Fix: Remove UNIQUE constraint from microchip field to allow NULL values
2026-03-08 23:39:22 -05:00
d99a7b0622
Add database initialization and schema
2026-03-08 22:43:51 -05:00