mirror of
https://github.com/sartography/cr-connect-workflow.git
synced 2025-02-24 13:48:30 +00:00
!!!This will need to be merged with another migration happening in another ticket concurrently!!!
31 lines
785 B
Python
31 lines
785 B
Python
"""new-email-attributes
|
|
|
|
Revision ID: 25f846183f1c
|
|
Revises: 5c63a89ee7b7
|
|
Create Date: 2021-10-06 10:11:37.963712
|
|
|
|
"""
|
|
from alembic import op
|
|
import sqlalchemy as sa
|
|
|
|
|
|
# revision identifiers, used by Alembic.
|
|
revision = '25f846183f1c'
|
|
down_revision = '5c63a89ee7b7'
|
|
branch_labels = None
|
|
depends_on = None
|
|
|
|
|
|
def upgrade():
|
|
op.add_column('email', sa.Column('cc', sa.String(), nullable=True))
|
|
op.add_column('email', sa.Column('bcc', sa.String(), nullable=True))
|
|
op.add_column('email', sa.Column('timestamp', sa.DateTime()))
|
|
op.add_column('email', sa.Column('workflow_id', sa.String(), nullable=True))
|
|
|
|
|
|
def downgrade():
|
|
op.drop_column('email', 'cc')
|
|
op.drop_column('email', 'bcc')
|
|
op.drop_column('email', 'timestamp')
|
|
op.drop_column('email', 'workflow_id')
|