feat: Add email count tracking to folders with total and pending counts

This commit is contained in:
Bryce
2025-08-05 11:04:37 -07:00
parent 31871ed8ec
commit f2fe9d646b
4 changed files with 122 additions and 29 deletions

View File

@@ -0,0 +1,34 @@
"""Add email count fields to folders
Revision ID: a3ad1b9a0e5f
Revises: f8ba65458ba2
Create Date: 2025-08-05 11:00:46.880458
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'a3ad1b9a0e5f'
down_revision = 'f8ba65458ba2'
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
with op.batch_alter_table('folders', schema=None) as batch_op:
batch_op.add_column(sa.Column('total_count', sa.Integer(), nullable=True))
batch_op.add_column(sa.Column('pending_count', sa.Integer(), nullable=True))
# ### end Alembic commands ###
def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
with op.batch_alter_table('folders', schema=None) as batch_op:
batch_op.drop_column('pending_count')
batch_op.drop_column('total_count')
# ### end Alembic commands ###