- Graph mail: discover nested childFolders, merge new folders into cached graphFolderQueue without breaking in-progress cursors - Add mail_folders.parent_id (migration 000050) and wire hierarchy on import - Shared drives: skip discovery on delta ticks, guard merge by project - Provision: remove platform-domain email rewrite on claim - Integration tests for nested folders, parent_id, delta childFolders mocks
6 lines
246 B
SQL
6 lines
246 B
SQL
-- Parent hierarchy for mail_folders (Graph childFolders, IMAP nesting).
|
|
ALTER TABLE mail_folders
|
|
ADD COLUMN parent_id UUID NULL REFERENCES mail_folders(id) ON DELETE CASCADE;
|
|
|
|
CREATE INDEX idx_mail_folders_parent ON mail_folders(parent_id);
|