fix: stabilize development config and account settings
This commit is contained in:
@@ -2,6 +2,10 @@
|
||||
-- Reference: Chatwoot enterprise/app/models/captain/ models
|
||||
-- Adds AI assistant, document, response, scenario, custom_tool, and inbox tables
|
||||
|
||||
-- The vector type is used by captain_assistant_responses below, so the
|
||||
-- extension must exist before that table is created.
|
||||
CREATE EXTENSION IF NOT EXISTS vector;
|
||||
|
||||
-- Captain Assistants
|
||||
CREATE TABLE IF NOT EXISTS captain_assistants (
|
||||
id SERIAL PRIMARY KEY,
|
||||
@@ -161,6 +165,3 @@ CREATE TABLE IF NOT EXISTS copilot_messages (
|
||||
CREATE INDEX idx_copilot_messages_deleted_at ON copilot_messages(deleted_at);
|
||||
CREATE INDEX idx_copilot_messages_account_id ON copilot_messages(account_id) WHERE deleted_at IS NULL;
|
||||
CREATE INDEX idx_copilot_messages_thread_id ON copilot_messages(copilot_thread_id) WHERE deleted_at IS NULL;
|
||||
|
||||
-- Enable pgvector extension if not already enabled
|
||||
CREATE EXTENSION IF NOT EXISTS vector;
|
||||
@@ -0,0 +1,2 @@
|
||||
ALTER TABLE accounts
|
||||
DROP COLUMN IF EXISTS audio_transcriptions;
|
||||
@@ -0,0 +1,2 @@
|
||||
ALTER TABLE accounts
|
||||
ADD COLUMN IF NOT EXISTS audio_transcriptions BOOLEAN NOT NULL DEFAULT FALSE;
|
||||
Reference in New Issue
Block a user