Files
gochat/migrations/000046_add_portal_channel_web_widget_id.up.sql
T

9 lines
307 B
SQL

-- Add Chatwoot portal web-widget association used by the help-center/widget frontend contract.
ALTER TABLE portals
ADD COLUMN IF NOT EXISTS channel_web_widget_id INTEGER;
CREATE INDEX IF NOT EXISTS idx_portals_channel_web_widget_id
ON portals(channel_web_widget_id)
WHERE deleted_at IS NULL;