mirror of https://github.com/usememos/memos.git
14 lines
532 B
SQL
14 lines
532 B
SQL
-- AI Setting Migration for PostgreSQL
|
|
-- Add AI workspace setting support for 0.26 version
|
|
|
|
-- No table changes needed as AI settings are stored in workspace_setting table
|
|
-- The workspace_setting table already exists and can handle JSON values
|
|
|
|
-- Insert default AI setting if it doesn't exist
|
|
INSERT INTO workspace_setting (name, value, description)
|
|
VALUES (
|
|
'workspace/settings/AI',
|
|
'{"enableAi":false,"baseUrl":"","apiKey":"","model":"","timeoutSeconds":15}',
|
|
'AI configuration settings'
|
|
)
|
|
ON CONFLICT (name) DO NOTHING; |