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:
@@ -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;
|
||||||
@@ -39,7 +39,7 @@ class MailPlugin(BasePlugin):
|
|||||||
|
|
||||||
manifest = PluginManifest(
|
manifest = PluginManifest(
|
||||||
name="mail",
|
name="mail",
|
||||||
version="1.2.0",
|
version="1.3.0",
|
||||||
display_name="Mail",
|
display_name="Mail",
|
||||||
description=(
|
description=(
|
||||||
"Email management: IMAP sync, SMTP send, threading, "
|
"Email management: IMAP sync, SMTP send, threading, "
|
||||||
@@ -54,7 +54,7 @@ class MailPlugin(BasePlugin):
|
|||||||
),
|
),
|
||||||
],
|
],
|
||||||
events=[],
|
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"],
|
permissions=["mail:read", "mail:send", "mail:config", "mail:share", "mail:write", "mail:delete"],
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user