mirror of
https://github.com/j3ssie/osmedeus.git
synced 2026-08-17 21:25:49 +02:00
- Reorder Migrate() to add columns to existing tables BEFORE creating indexes, since CREATE TABLE IF NOT EXISTS is a no-op on existing databases and some indexes (e.g. finding_hash) reference migrated columns that would otherwise be missing - Add explanatory comment in internal/database/database.go documenting why column migrations must precede index creation - Surface a helpful CLI hint in pkg/cli/root.go pointing users to 'osmedeus db migrate' when startup fails with 'failed to run migrations', so stale schemas are easier to recover from