mirror of
https://github.com/sartography/protocol-builder-mock.git
synced 2025-01-27 07:56:07 +00:00
147 lines
9.2 KiB
Python
147 lines
9.2 KiB
Python
"""empty message
|
|
|
|
Revision ID: d3592c4e8a39
|
|
Revises: 6aff144771d1
|
|
Create Date: 2020-02-17 15:35:25.612573
|
|
|
|
"""
|
|
from alembic import op
|
|
import sqlalchemy as sa
|
|
|
|
|
|
# revision identifiers, used by Alembic.
|
|
revision = 'd3592c4e8a39'
|
|
down_revision = '6aff144771d1'
|
|
branch_labels = None
|
|
depends_on = None
|
|
|
|
|
|
def upgrade():
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
|
op.add_column('study_details', sa.Column('DSMB', sa.Integer(), nullable=True))
|
|
op.add_column('study_details', sa.Column('DSMB_FREQUENCY', sa.Integer(), nullable=True))
|
|
op.add_column('study_details', sa.Column('GCRC_NUMBER', sa.String(), nullable=True))
|
|
op.add_column('study_details', sa.Column('IBC_NUMBER', sa.String(), nullable=True))
|
|
op.add_column('study_details', sa.Column('IDE', sa.String(), nullable=True))
|
|
op.add_column('study_details', sa.Column('IRBREVIEWERADMIN', sa.String(), nullable=True))
|
|
op.add_column('study_details', sa.Column('IS_ADULT_PARTICIPANT', sa.Integer(), nullable=True))
|
|
op.add_column('study_details', sa.Column('IS_APPROVED_DEVICE', sa.Integer(), nullable=True))
|
|
op.add_column('study_details', sa.Column('IS_AUX', sa.Integer(), nullable=True))
|
|
op.add_column('study_details', sa.Column('IS_BIOMEDICAL', sa.Integer(), nullable=True))
|
|
op.add_column('study_details', sa.Column('IS_CANCER_PATIENT', sa.Integer(), nullable=True))
|
|
op.add_column('study_details', sa.Column('IS_CENTRAL_REG_DB', sa.Integer(), nullable=True))
|
|
op.add_column('study_details', sa.Column('IS_CHART_REVIEW', sa.Integer(), nullable=True))
|
|
op.add_column('study_details', sa.Column('IS_COMMITTEE_CONFLICT', sa.Integer(), nullable=True))
|
|
op.add_column('study_details', sa.Column('IS_CONSENT_WAIVER', sa.Integer(), nullable=True))
|
|
op.add_column('study_details', sa.Column('IS_DB', sa.Integer(), nullable=True))
|
|
op.add_column('study_details', sa.Column('IS_ELDERLY_POP', sa.Integer(), nullable=True))
|
|
op.add_column('study_details', sa.Column('IS_ENGAGED_RESEARCH', sa.Integer(), nullable=True))
|
|
op.add_column('study_details', sa.Column('IS_FETUS_POP', sa.Integer(), nullable=True))
|
|
op.add_column('study_details', sa.Column('IS_FINANCIAL_CONFLICT', sa.Integer(), nullable=True))
|
|
op.add_column('study_details', sa.Column('IS_FOR_CANCER_CENTER', sa.Integer(), nullable=True))
|
|
op.add_column('study_details', sa.Column('IS_FUNDING_SOURCE', sa.Integer(), nullable=True))
|
|
op.add_column('study_details', sa.Column('IS_GCRC', sa.Integer(), nullable=True))
|
|
op.add_column('study_details', sa.Column('IS_GENE_TRANSFER', sa.Integer(), nullable=True))
|
|
op.add_column('study_details', sa.Column('IS_GRANT', sa.Integer(), nullable=True))
|
|
op.add_column('study_details', sa.Column('IS_HGT', sa.Integer(), nullable=True))
|
|
op.add_column('study_details', sa.Column('IS_IBC', sa.Integer(), nullable=True))
|
|
op.add_column('study_details', sa.Column('IS_IDE', sa.Integer(), nullable=True))
|
|
op.add_column('study_details', sa.Column('IS_MENTAL_IMPAIRMENT_POP', sa.Integer(), nullable=True))
|
|
op.add_column('study_details', sa.Column('IS_MINOR', sa.Integer(), nullable=True))
|
|
op.add_column('study_details', sa.Column('IS_MINOR_PARTICIPANT', sa.Integer(), nullable=True))
|
|
op.add_column('study_details', sa.Column('IS_MULTI_SITE', sa.Integer(), nullable=True))
|
|
op.add_column('study_details', sa.Column('IS_NOT_CONSENT_WAIVER', sa.Integer(), nullable=True))
|
|
op.add_column('study_details', sa.Column('IS_NOT_PRC_WAIVER', sa.Integer(), nullable=True))
|
|
op.add_column('study_details', sa.Column('IS_OTHER_VULNERABLE_POP', sa.Integer(), nullable=True))
|
|
op.add_column('study_details', sa.Column('IS_OUTSIDE_CONTRACT', sa.Integer(), nullable=True))
|
|
op.add_column('study_details', sa.Column('IS_PI_INITIATED', sa.Integer(), nullable=True))
|
|
op.add_column('study_details', sa.Column('IS_PI_SCHOOL', sa.Integer(), nullable=True))
|
|
op.add_column('study_details', sa.Column('IS_PRC', sa.Integer(), nullable=True))
|
|
op.add_column('study_details', sa.Column('IS_PRC_DSMP', sa.Integer(), nullable=True))
|
|
op.add_column('study_details', sa.Column('IS_PREGNANT_POP', sa.Integer(), nullable=True))
|
|
op.add_column('study_details', sa.Column('IS_PRISONERS_POP', sa.Integer(), nullable=True))
|
|
op.add_column('study_details', sa.Column('IS_QUALITATIVE', sa.Integer(), nullable=True))
|
|
op.add_column('study_details', sa.Column('IS_RADIATION', sa.Integer(), nullable=True))
|
|
op.add_column('study_details', sa.Column('IS_REVIEW_BY_CENTRAL_IRB', sa.Integer(), nullable=True))
|
|
op.add_column('study_details', sa.Column('IS_SPONSOR', sa.Integer(), nullable=True))
|
|
op.add_column('study_details', sa.Column('IS_SPONSOR_MONITORING', sa.Integer(), nullable=True))
|
|
op.add_column('study_details', sa.Column('IS_SURROGATE_CONSENT', sa.Integer(), nullable=True))
|
|
op.add_column('study_details', sa.Column('IS_TISSUE_BANKING', sa.Integer(), nullable=True))
|
|
op.add_column('study_details', sa.Column('IS_UVA_DB', sa.Integer(), nullable=True))
|
|
op.add_column('study_details', sa.Column('IS_UVA_IDE', sa.Integer(), nullable=True))
|
|
op.add_column('study_details', sa.Column('IS_UVA_IND', sa.Integer(), nullable=True))
|
|
op.add_column('study_details', sa.Column('IS_UVA_LOCATION', sa.Integer(), nullable=True))
|
|
op.add_column('study_details', sa.Column('IS_UVA_PI_MULTI', sa.Integer(), nullable=True))
|
|
op.add_column('study_details', sa.Column('MULTI_SITE_LOCATIONS', sa.String(), nullable=True))
|
|
op.add_column('study_details', sa.Column('NON_UVA_LOCATION', sa.String(), nullable=True))
|
|
op.add_column('study_details', sa.Column('OTHER_VULNERABLE_DESC', sa.String(), nullable=True))
|
|
op.add_column('study_details', sa.Column('PRC_NUMBER', sa.String(), nullable=True))
|
|
op.add_column('study_details', sa.Column('SPONSORS_PROTOCOL_REVISION_DATE', sa.Integer(), nullable=True))
|
|
op.add_column('study_details', sa.Column('UPLOAD_COMPLETE', sa.Integer(), nullable=True))
|
|
# ### end Alembic commands ###
|
|
|
|
|
|
def downgrade():
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
|
op.drop_column('study_details', 'UPLOAD_COMPLETE')
|
|
op.drop_column('study_details', 'SPONSORS_PROTOCOL_REVISION_DATE')
|
|
op.drop_column('study_details', 'PRC_NUMBER')
|
|
op.drop_column('study_details', 'OTHER_VULNERABLE_DESC')
|
|
op.drop_column('study_details', 'NON_UVA_LOCATION')
|
|
op.drop_column('study_details', 'MULTI_SITE_LOCATIONS')
|
|
op.drop_column('study_details', 'IS_UVA_PI_MULTI')
|
|
op.drop_column('study_details', 'IS_UVA_LOCATION')
|
|
op.drop_column('study_details', 'IS_UVA_IND')
|
|
op.drop_column('study_details', 'IS_UVA_IDE')
|
|
op.drop_column('study_details', 'IS_UVA_DB')
|
|
op.drop_column('study_details', 'IS_TISSUE_BANKING')
|
|
op.drop_column('study_details', 'IS_SURROGATE_CONSENT')
|
|
op.drop_column('study_details', 'IS_SPONSOR_MONITORING')
|
|
op.drop_column('study_details', 'IS_SPONSOR')
|
|
op.drop_column('study_details', 'IS_REVIEW_BY_CENTRAL_IRB')
|
|
op.drop_column('study_details', 'IS_RADIATION')
|
|
op.drop_column('study_details', 'IS_QUALITATIVE')
|
|
op.drop_column('study_details', 'IS_PRISONERS_POP')
|
|
op.drop_column('study_details', 'IS_PREGNANT_POP')
|
|
op.drop_column('study_details', 'IS_PRC_DSMP')
|
|
op.drop_column('study_details', 'IS_PRC')
|
|
op.drop_column('study_details', 'IS_PI_SCHOOL')
|
|
op.drop_column('study_details', 'IS_PI_INITIATED')
|
|
op.drop_column('study_details', 'IS_OUTSIDE_CONTRACT')
|
|
op.drop_column('study_details', 'IS_OTHER_VULNERABLE_POP')
|
|
op.drop_column('study_details', 'IS_NOT_PRC_WAIVER')
|
|
op.drop_column('study_details', 'IS_NOT_CONSENT_WAIVER')
|
|
op.drop_column('study_details', 'IS_MULTI_SITE')
|
|
op.drop_column('study_details', 'IS_MINOR_PARTICIPANT')
|
|
op.drop_column('study_details', 'IS_MINOR')
|
|
op.drop_column('study_details', 'IS_MENTAL_IMPAIRMENT_POP')
|
|
op.drop_column('study_details', 'IS_IDE')
|
|
op.drop_column('study_details', 'IS_IBC')
|
|
op.drop_column('study_details', 'IS_HGT')
|
|
op.drop_column('study_details', 'IS_GRANT')
|
|
op.drop_column('study_details', 'IS_GENE_TRANSFER')
|
|
op.drop_column('study_details', 'IS_GCRC')
|
|
op.drop_column('study_details', 'IS_FUNDING_SOURCE')
|
|
op.drop_column('study_details', 'IS_FOR_CANCER_CENTER')
|
|
op.drop_column('study_details', 'IS_FINANCIAL_CONFLICT')
|
|
op.drop_column('study_details', 'IS_FETUS_POP')
|
|
op.drop_column('study_details', 'IS_ENGAGED_RESEARCH')
|
|
op.drop_column('study_details', 'IS_ELDERLY_POP')
|
|
op.drop_column('study_details', 'IS_DB')
|
|
op.drop_column('study_details', 'IS_CONSENT_WAIVER')
|
|
op.drop_column('study_details', 'IS_COMMITTEE_CONFLICT')
|
|
op.drop_column('study_details', 'IS_CHART_REVIEW')
|
|
op.drop_column('study_details', 'IS_CENTRAL_REG_DB')
|
|
op.drop_column('study_details', 'IS_CANCER_PATIENT')
|
|
op.drop_column('study_details', 'IS_BIOMEDICAL')
|
|
op.drop_column('study_details', 'IS_AUX')
|
|
op.drop_column('study_details', 'IS_APPROVED_DEVICE')
|
|
op.drop_column('study_details', 'IS_ADULT_PARTICIPANT')
|
|
op.drop_column('study_details', 'IRBREVIEWERADMIN')
|
|
op.drop_column('study_details', 'IDE')
|
|
op.drop_column('study_details', 'IBC_NUMBER')
|
|
op.drop_column('study_details', 'GCRC_NUMBER')
|
|
op.drop_column('study_details', 'DSMB_FREQUENCY')
|
|
op.drop_column('study_details', 'DSMB')
|
|
# ### end Alembic commands ###
|