mirror of
https://github.com/sartography/protocol-builder-mock.git
synced 2025-01-12 00:34:44 +00:00
Change column names for required documents to match UVA IRB
This commit is contained in:
parent
00646a0228
commit
d8c2aee19e
26
migrations/versions/d6627c76ed75_.py
Normal file
26
migrations/versions/d6627c76ed75_.py
Normal 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"')
|
Loading…
x
Reference in New Issue
Block a user