Change column names for required documents to match UVA IRB

This commit is contained in:
mike cullerton 2021-11-09 08:58:21 -05:00
parent 00646a0228
commit d8c2aee19e

View File

@ -0,0 +1,26 @@
"""empty message
Revision ID: d6627c76ed75
Revises: 42d973f2723f
Create Date: 2021-11-08 13:53:51.020066
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'd6627c76ed75'
down_revision = '42d973f2723f'
branch_labels = None
depends_on = None
def upgrade():
op.execute('ALTER TABLE required_document RENAME COLUMN "AUXDOC" TO "AUXILIARY_DOC"')
op.execute('ALTER TABLE required_document RENAME COLUMN "AUXDOCID" TO "SS_AUXILIARY_DOC_TYPE_ID"')
def downgrade():
op.execute('ALTER TABLE required_document RENAME COLUMN "AUXILIARY_DOC" TO "AUXDOC"')
op.execute('ALTER TABLE required_document RENAME COLUMN "SS_AUXILIARY_DOC_TYPE_ID" TO "AUXDOCID"')