mirror of
https://github.com/Tencent/WeKnora.git
synced 2026-06-04 13:30:32 +08:00
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:
@@ -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 $$;
|
||||
Reference in New Issue
Block a user