fix: add deleted_at column to mail_sync_queue — process_sync_queue was crashing

- MailSyncQueue inherits TenantMixin which includes SoftDeleteMixin (deleted_at)
- Migration 0007 did not create this column
- process_sync_queue crashed on every auto-sync attempt
- Add migration 0008 to add deleted_at column
- Bump plugin version to 1.3.0
This commit is contained in:
Agent Zero
2026-07-20 13:42:30 +02:00
parent 11c2a0c9af
commit 04e0c60222
2 changed files with 5 additions and 2 deletions
@@ -0,0 +1,3 @@
-- Fix: MailSyncQueue inherits TenantMixin which includes SoftDeleteMixin (deleted_at)
-- Migration 0007 did not include this column, causing process_sync_queue to crash
ALTER TABLE mail_sync_queue ADD COLUMN IF NOT EXISTS deleted_at TIMESTAMPTZ;
+2 -2
View File
@@ -39,7 +39,7 @@ class MailPlugin(BasePlugin):
manifest = PluginManifest(
name="mail",
version="1.2.0",
version="1.3.0",
display_name="Mail",
description=(
"Email management: IMAP sync, SMTP send, threading, "
@@ -54,7 +54,7 @@ class MailPlugin(BasePlugin):
),
],
events=[],
migrations=["0001_initial.sql", "0006_flag_type.sql", "0007_sync_queue.sql"],
migrations=["0001_initial.sql", "0006_flag_type.sql", "0007_sync_queue.sql", "0008_sync_queue_deleted_at.sql"],
permissions=["mail:read", "mail:send", "mail:config", "mail:share", "mail:write", "mail:delete"],
)