cr-connect-workflow/migrations/versions/5acd138e969c_.py

39 lines
1.0 KiB
Python
Raw Normal View History

2020-06-10 04:57:56 +00:00
"""empty message
2020-06-25 03:47:15 +00:00
Revision ID: 5acd138e969c
Revises: de30304ff5e6
Create Date: 2020-06-24 21:36:15.128632
2020-06-10 04:57:56 +00:00
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
2020-06-25 03:47:15 +00:00
revision = '5acd138e969c'
down_revision = 'de30304ff5e6'
2020-06-10 04:57:56 +00:00
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.create_table('email',
sa.Column('id', sa.Integer(), nullable=False),
sa.Column('subject', sa.String(), nullable=True),
sa.Column('sender', sa.String(), nullable=True),
sa.Column('recipients', sa.String(), nullable=True),
sa.Column('content', sa.String(), nullable=True),
sa.Column('content_html', sa.String(), nullable=True),
2020-06-17 23:00:16 +00:00
sa.Column('study_id', sa.Integer(), nullable=True),
sa.ForeignKeyConstraint(['study_id'], ['study.id'], ),
2020-06-10 04:57:56 +00:00
sa.PrimaryKeyConstraint('id')
)
# ### end Alembic commands ###
def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.drop_table('email')
# ### end Alembic commands ###