starts work on recent emails.

This commit is contained in:
Bryce
2025-08-05 12:37:36 -07:00
parent 2335c4ceca
commit 27fc2e29a1
7 changed files with 209 additions and 2 deletions

View File

@@ -0,0 +1,32 @@
"""Add recent_emails field to folders table
Revision ID: 9a88c7e94083
Revises: a3ad1b9a0e5f
Create Date: 2025-08-05 11:20:32.637203
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '9a88c7e94083'
down_revision = 'a3ad1b9a0e5f'
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('recent_emails', sa.JSON(), 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('recent_emails')
# ### end Alembic commands ###