diff --git a/store/migration/mysql/0.26/00__ai_setting.sql b/store/migration/mysql/0.26/00__ai_setting.sql new file mode 100644 index 000000000..ac0bf0bfb --- /dev/null +++ b/store/migration/mysql/0.26/00__ai_setting.sql @@ -0,0 +1,13 @@ +-- AI Setting Migration for MySQL +-- 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 IGNORE INTO workspace_setting (name, value, description) +VALUES ( + 'workspace/settings/AI', + '{"enableAi":false,"baseUrl":"","apiKey":"","model":"","timeoutSeconds":15}', + 'AI configuration settings' +); \ No newline at end of file diff --git a/store/migration/postgres/0.26/00__ai_setting.sql b/store/migration/postgres/0.26/00__ai_setting.sql new file mode 100644 index 000000000..44bd3abdb --- /dev/null +++ b/store/migration/postgres/0.26/00__ai_setting.sql @@ -0,0 +1,14 @@ +-- 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; \ No newline at end of file diff --git a/store/migration/sqlite/0.26/00__ai_setting.sql b/store/migration/sqlite/0.26/00__ai_setting.sql new file mode 100644 index 000000000..269ea577e --- /dev/null +++ b/store/migration/sqlite/0.26/00__ai_setting.sql @@ -0,0 +1,13 @@ +-- AI Setting Migration +-- 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 OR IGNORE INTO workspace_setting (name, value, description) +VALUES ( + 'workspace/settings/AI', + '{"enableAi":false,"baseUrl":"","apiKey":"","model":"","timeoutSeconds":15}', + 'AI configuration settings' +); \ No newline at end of file