mirror of
https://github.com/sartography/protocol-builder-mock.git
synced 2025-01-12 08:44:46 +00:00
93b87f806f
Alter Study table so that TITLE can be longer than 80 characters
41 lines
1.2 KiB
Python
41 lines
1.2 KiB
Python
"""empty message
|
|
|
|
Revision ID: 34c57b2df4c6
|
|
Revises: ffba4886d280
|
|
Create Date: 2021-02-22 10:47:10.451278
|
|
|
|
"""
|
|
from alembic import op
|
|
import sqlalchemy as sa
|
|
|
|
|
|
# revision identifiers, used by Alembic.
|
|
revision = '34c57b2df4c6'
|
|
down_revision = 'ffba4886d280'
|
|
branch_labels = None
|
|
depends_on = None
|
|
|
|
|
|
def upgrade():
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
|
op.create_table('ldap_model',
|
|
sa.Column('uid', sa.String(), nullable=False),
|
|
sa.Column('display_name', sa.String(), nullable=True),
|
|
sa.Column('given_name', sa.String(), nullable=True),
|
|
sa.Column('email_address', sa.String(), nullable=True),
|
|
sa.Column('telephone_number', sa.String(), nullable=True),
|
|
sa.Column('title', sa.String(), nullable=True),
|
|
sa.Column('department', sa.String(), nullable=True),
|
|
sa.Column('affiliation', sa.String(), nullable=True),
|
|
sa.Column('sponsor_type', sa.String(), nullable=True),
|
|
sa.Column('date_cached', sa.DateTime(timezone=True), nullable=True),
|
|
sa.PrimaryKeyConstraint('uid')
|
|
)
|
|
# ### end Alembic commands ###
|
|
|
|
|
|
def downgrade():
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
|
op.drop_table('ldap_model')
|
|
# ### end Alembic commands ###
|