Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.
TypeScript agentaiai-agentsall-in-onecrmcrm-systememaillinearmcpmessagingnotesnotionofficerustslackslack-alternativestartupstartup-toolstypescriptworkspace
ci(email): Migration fix (#1509)
Evan Hutnik8ca70055a2bf
diff --git a/rust/cloud-storage/Cargo.lock b/rust/cloud-storage/Cargo.lockindex d008d2b870..a786348f9b 100644--- a/rust/cloud-storage/Cargo.lock+++ b/rust/cloud-storage/Cargo.lock@@ -3187,7 +3187,6 @@ dependencies = ["ammonia","anyhow","authentication_service_client",- "aws-config","aws-sdk-s3","aws-sdk-secretsmanager","aws-sdk-sqs",diff --git a/rust/cloud-storage/macro_db_client/migrations/20260212192413_email_attachments_fwd.sql b/rust/cloud-storage/macro_db_client/migrations/20260212192413_email_attachments_fwd.sqlindex d55b58ec56..2381344a9f 100644--- a/rust/cloud-storage/macro_db_client/migrations/20260212192413_email_attachments_fwd.sql+++ b/rust/cloud-storage/macro_db_client/migrations/20260212192413_email_attachments_fwd.sql@@ -1,7 +1,7 @@-CREATE TABLE email_attachments_fwd (+CREATE TABLE IF NOT EXISTS email_attachments_fwd (message_id UUID NOT NULL REFERENCES email_messages(id) ON DELETE CASCADE,attachment_id UUID NOT NULL REFERENCES email_attachments(id) ON DELETE CASCADE,created_at TIMESTAMPTZ NOT NULL DEFAULT NOW(),UNIQUE(message_id, attachment_id));-CREATE INDEX idx_email_attachments_fwd_attachment_id ON email_attachments_fwd(attachment_id);+CREATE INDEX IF NOT EXISTS idx_email_attachments_fwd_attachment_id ON email_attachments_fwd(attachment_id);