fix: sync_plugin_schema sys.path + mail migration columns
Check Cross-Plugin Imports / check (push) Has been cancelled
Check Cross-Plugin Imports / check (push) Has been cancelled
- sync_plugin_schema.py: add /app to sys.path for container execution - mail 0001_initial.sql: add sent/drafts/spam/trash folder columns
This commit is contained in:
@@ -4,6 +4,10 @@ CREATE TABLE IF NOT EXISTS mail_accounts (
|
||||
id UUID PRIMARY KEY DEFAULT gen_random_uuid(),
|
||||
user_id UUID NOT NULL,
|
||||
password_salt VARCHAR(64) NOT NULL DEFAULT '',
|
||||
sent_folder_imap_name VARCHAR(255) DEFAULT '',
|
||||
drafts_folder_imap_name VARCHAR(255) DEFAULT '',
|
||||
spam_folder_imap_name VARCHAR(255) DEFAULT '',
|
||||
trash_folder_imap_name VARCHAR(255) DEFAULT '',
|
||||
email_address VARCHAR(255) NOT NULL,
|
||||
display_name VARCHAR(255) NOT NULL DEFAULT '',
|
||||
imap_host VARCHAR(255) NOT NULL,
|
||||
|
||||
@@ -21,6 +21,10 @@ import sys
|
||||
import logging
|
||||
from typing import Any
|
||||
|
||||
# Ensure /app is in sys.path for container execution
|
||||
if "/app" not in sys.path:
|
||||
sys.path.insert(0, "/app")
|
||||
|
||||
from sqlalchemy import inspect, text
|
||||
from sqlalchemy.dialects.postgresql import dialect as pg_dialect
|
||||
from sqlalchemy.ext.asyncio import create_async_engine
|
||||
|
||||
Reference in New Issue
Block a user