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:
15
server/database/migrations/sqlite/021_export.sql
Normal file
15
server/database/migrations/sqlite/021_export.sql
Normal 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);
|
||||
Reference in New Issue
Block a user