Add IRB_ONLINE_STATUS column to irb_info table

This commit is contained in:
mike cullerton 2022-04-07 17:26:39 -04:00
parent 454a5c3d59
commit 382152e48a
2 changed files with 25 additions and 0 deletions

View File

@ -0,0 +1,24 @@
"""Add 'IRB_ONLINE_STATUS' column to IRBInfo table
Revision ID: fcc193c49110
Revises: d6627c76ed75
Create Date: 2022-04-07 16:00:36.260246
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'fcc193c49110'
down_revision = 'd6627c76ed75'
branch_labels = None
depends_on = None
def upgrade():
op.add_column('irb_info', sa.Column('IRB_ONLINE_STATUS', sa.String(), nullable=True))
def downgrade():
op.drop_column('irb_info', 'IRB_ONLINE_STATUS')

View File

@ -137,6 +137,7 @@ class IRBInfo(db.Model):
IRB_OF_RECORD = db.Column(db.String(), nullable=False, default='')
UVA_IRB_HSR_IS_IRB_OF_RECORD_FOR_ALL_SITES = db.Column(db.Integer(), nullable=True)
STUDYIRBREVIEWERADMIN = db.Column(db.String(), nullable=False, default='')
IRB_ONLINE_STATUS = db.Column(db.String(), nullable=True)
class IRBInfoSchema(ma.Schema):