Changeset 0.34.0 (#208)

Co-authored-by: Jeffrey Smith <jasafpro@gmail.com>
Co-committed-by: Jeffrey Smith <jasafpro@gmail.com>
This commit is contained in:
2026-03-20 00:02:37 +00:00
committed by xcaliber
parent ed3e9363f2
commit d16bb93177
20 changed files with 5623 additions and 1 deletions

View File

@@ -0,0 +1,18 @@
-- ==========================================
-- Chat Switchboard — 021 Data Portability
-- ==========================================
-- v0.34.0: Indexes for data export and GDPR operations.
-- ==========================================
-- Partial index for batch message export (only non-deleted)
CREATE INDEX IF NOT EXISTS idx_messages_channel_active
ON messages (channel_id, created_at)
WHERE deleted_at IS NULL;
-- Index for user-scoped channel listing (export)
CREATE INDEX IF NOT EXISTS idx_channels_user_id
ON channels (user_id);
-- Index for file lookup by user (export)
CREATE INDEX IF NOT EXISTS idx_files_user_id
ON files (user_id);

View File

@@ -0,0 +1,15 @@
-- ==========================================
-- Chat Switchboard — 021 Data Portability
-- ==========================================
-- v0.34.0: Indexes for data export and GDPR operations.
-- SQLite version (no partial indexes).
-- ==========================================
CREATE INDEX IF NOT EXISTS idx_messages_channel_active
ON messages (channel_id, created_at);
CREATE INDEX IF NOT EXISTS idx_channels_user_id
ON channels (user_id);
CREATE INDEX IF NOT EXISTS idx_files_user_id
ON files (user_id);