fix: add flag_type migration to plugin manifest + bump version to trigger migration run
This commit is contained in:
@@ -31,7 +31,7 @@ class MailPlugin(BasePlugin):
|
||||
|
||||
manifest = PluginManifest(
|
||||
name="mail",
|
||||
version="1.0.0",
|
||||
version="1.1.0",
|
||||
display_name="Mail",
|
||||
description=(
|
||||
"Email management: IMAP sync, SMTP send, threading, "
|
||||
@@ -46,7 +46,7 @@ class MailPlugin(BasePlugin):
|
||||
),
|
||||
],
|
||||
events=[],
|
||||
migrations=["0001_initial.sql"],
|
||||
migrations=["0001_initial.sql", "0006_flag_type.sql"],
|
||||
permissions=["mail:read", "mail:send", "mail:config", "mail:share", "mail:write", "mail:delete"],
|
||||
)
|
||||
|
||||
|
||||
@@ -1562,7 +1562,7 @@ def mail_to_response(
|
||||
"date": mail.received_at.isoformat() if mail.received_at else (mail.sent_at.isoformat() if mail.sent_at else None),
|
||||
"is_seen": mail.is_seen,
|
||||
"is_flagged": mail.is_flagged,
|
||||
"flag_type": mail.flag_type,
|
||||
"flag_type": getattr(mail, 'flag_type', None),
|
||||
"is_draft": mail.is_draft,
|
||||
"is_answered": mail.is_answered,
|
||||
"is_forwarded": mail.is_forwarded,
|
||||
|
||||
Reference in New Issue
Block a user