fix: add model display name
This commit is contained in:
@@ -52,6 +52,7 @@ CREATE TABLE IF NOT EXISTS models (
|
||||
id VARCHAR(64) PRIMARY KEY DEFAULT uuid_generate_v4(),
|
||||
tenant_id INTEGER NOT NULL,
|
||||
name VARCHAR(255) NOT NULL,
|
||||
display_name VARCHAR(255) NOT NULL DEFAULT '',
|
||||
type VARCHAR(50) NOT NULL,
|
||||
source VARCHAR(50) NOT NULL,
|
||||
description TEXT,
|
||||
@@ -201,4 +202,4 @@ CREATE INDEX IF NOT EXISTS idx_chunks_tenant_kg ON chunks(tenant_id, knowledge_i
|
||||
CREATE INDEX IF NOT EXISTS idx_chunks_parent_id ON chunks(parent_chunk_id);
|
||||
CREATE INDEX IF NOT EXISTS idx_chunks_chunk_type ON chunks(chunk_type);
|
||||
|
||||
DO $$ BEGIN RAISE NOTICE '[Migration 000000] Initial database setup completed successfully!'; END $$;
|
||||
DO $$ BEGIN RAISE NOTICE '[Migration 000000] Initial database setup completed successfully!'; END $$;
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
ALTER TABLE models DROP COLUMN IF EXISTS display_name;
|
||||
@@ -0,0 +1,10 @@
|
||||
-- Migration: 000056_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 $$;
|
||||
|
||||
ALTER TABLE models
|
||||
ADD COLUMN IF NOT EXISTS display_name VARCHAR(255) NOT NULL DEFAULT '';
|
||||
|
||||
DO $$ BEGIN RAISE NOTICE '[Migration 000056] Done'; END $$;
|
||||
Reference in New Issue
Block a user