mirror of
https://github.com/willmiao/ComfyUI-Lora-Manager.git
synced 2026-03-22 05:32:12 -03:00
Add migration support to handle schema changes without data loss. Instead of dropping and recreating tables, the system now: - Uses CREATE TABLE IF NOT EXISTS for initial table creation - Adds _apply_migrations method to handle incremental schema updates - Adds _get_table_columns helper to inspect existing table structure - Adds new columns to model_update_versions table (sort_index, name, base_model, released_at, size_bytes, preview_url, is_in_library, should_ignore) - Adds should_ignore_model column to model_update_status table This ensures existing databases are upgraded gracefully while preserving user data.