mirror of
https://github.com/maziggy/bambuddy.git
synced 2026-10-05 21:51:23 +02:00
fix(db): order filament_shopping_list color_name ALTER after CREATE PR #1814 added ALTER TABLE filament_shopping_list ADD COLUMN color_name before the CREATE TABLE IF NOT EXISTS for that table. On fresh installs the ALTER hit "no such table" — not in _safe_execute's swallow list — and aborted run_migrations, breaking every migration test that starts from a fresh DB. Moved the ALTER to after the CREATE on both SQLite and Postgres branches; the CREATE already declares color_name, so this is purely the upgrade path and "duplicate column name" on re-runs is swallowed.