Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

410 B
Raw Blame
-- Initiative discussions use the same polymorphic parent fields as documents.
-- Add the allowed type without scanning existing messages under the DDL lock.
SET LOCAL lock_timeout = '5s';

ALTER TABLE comms_messages
    DROP CONSTRAINT comms_messages_parent_type_check,
    ADD CONSTRAINT comms_messages_parent_type_check
        CHECK (parent_entity_type IN ('channel', 'document', 'initiative')) NOT VALID;