Files
Enterprise-Knowledge-Base/migrations/versioned/000057_models_display_name.up.sql
T
wizardchen 9f139ff4d8 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.
2026-05-29 17:03:42 +08:00

11 lines
433 B
SQL

-- 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 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 000057] Done'; END $$;