Files
PecHub/backend/alembic/versions/0002_add_sent_sync_uid.py
T
2026-03-19 11:41:10 +01:00

29 lines
561 B
Python
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
"""Add sent_last_sync_uid to mailboxes sincronizzazione cartella Sent IMAP
Revision ID: 0002
Revises: 0001
Create Date: 2026-03-19 09:00:00.000000
"""
from alembic import op
import sqlalchemy as sa
revision = "0002"
down_revision = "0001"
branch_labels = None
depends_on = None
def upgrade() -> None:
op.execute("""
ALTER TABLE mailboxes
ADD COLUMN IF NOT EXISTS sent_last_sync_uid BIGINT
""")
def downgrade() -> None:
op.execute("""
ALTER TABLE mailboxes
DROP COLUMN IF EXISTS sent_last_sync_uid
""")