Add cloud_id to user model
This commit is contained in:
parent
91419af71a
commit
5e737bad15
28
alembic/versions/91bd9482ce23_add_cloud_id_column_to_user.py
Normal file
28
alembic/versions/91bd9482ce23_add_cloud_id_column_to_user.py
Normal file
@ -0,0 +1,28 @@
|
||||
"""Add cloud_id column to user
|
||||
|
||||
Revision ID: 91bd9482ce23
|
||||
Revises: b3fa1493e0a9
|
||||
Create Date: 2019-01-08 10:18:23.764179
|
||||
|
||||
"""
|
||||
from alembic import op
|
||||
import sqlalchemy as sa
|
||||
|
||||
|
||||
# revision identifiers, used by Alembic.
|
||||
revision = '91bd9482ce23'
|
||||
down_revision = 'b3fa1493e0a9'
|
||||
branch_labels = None
|
||||
depends_on = None
|
||||
|
||||
|
||||
def upgrade():
|
||||
# ### commands auto generated by Alembic - please adjust! ###
|
||||
op.add_column('users', sa.Column('cloud_id', sa.String(), nullable=True))
|
||||
# ### end Alembic commands ###
|
||||
|
||||
|
||||
def downgrade():
|
||||
# ### commands auto generated by Alembic - please adjust! ###
|
||||
op.drop_column('users', 'cloud_id')
|
||||
# ### end Alembic commands ###
|
@ -29,6 +29,8 @@ class User(Base, mixins.TimestampsMixin, mixins.AuditableMixin):
|
||||
|
||||
provisional = Column(Boolean)
|
||||
|
||||
cloud_id = Column(String)
|
||||
|
||||
REQUIRED_FIELDS = [
|
||||
"email",
|
||||
"dod_id",
|
||||
|
Loading…
x
Reference in New Issue
Block a user