feat(migrations): add display_name column to models table

- Introduced a new column `display_name` to the `models` table for optional user-facing display names.
- Created migration scripts for both adding and removing the column, ensuring backward compatibility.
This commit is contained in:
wizardchen
2026-05-29 17:01:42 +08:00
committed by lyingbug
parent 2241f9579d
commit 9f139ff4d8
2 changed files with 3 additions and 3 deletions

View File

@@ -1,10 +1,10 @@
-- Migration: 000056_models_display_name
-- Migration: 000057_models_display_name
-- Add an optional user-facing display name for model rows. Runtime model
-- calls continue to use models.name; this field is presentation-only.
DO $$ BEGIN RAISE NOTICE '[Migration 000056] Adding models.display_name column'; END $$;
DO $$ BEGIN RAISE NOTICE '[Migration 000057] Adding models.display_name column'; END $$;
ALTER TABLE models
ADD COLUMN IF NOT EXISTS display_name VARCHAR(255) NOT NULL DEFAULT '';
DO $$ BEGIN RAISE NOTICE '[Migration 000056] Done'; END $$;
DO $$ BEGIN RAISE NOTICE '[Migration 000057] Done'; END $$;