Add migration for the new DB field
This commit is contained in:
parent
e028d4ae0a
commit
b9a4d2835f
1 changed files with 26 additions and 0 deletions
|
@ -0,0 +1,26 @@
|
||||||
|
"""add metadata field to external logins
|
||||||
|
|
||||||
|
Revision ID: 1594a74a74ca
|
||||||
|
Revises: f42b0ea7a4d
|
||||||
|
Create Date: 2014-09-04 18:17:35.205698
|
||||||
|
|
||||||
|
"""
|
||||||
|
|
||||||
|
# revision identifiers, used by Alembic.
|
||||||
|
revision = '1594a74a74ca'
|
||||||
|
down_revision = 'f42b0ea7a4d'
|
||||||
|
|
||||||
|
from alembic import op
|
||||||
|
import sqlalchemy as sa
|
||||||
|
|
||||||
|
|
||||||
|
def upgrade():
|
||||||
|
### commands auto generated by Alembic - please adjust! ###
|
||||||
|
op.add_column('federatedlogin', sa.Column('metadata_json', sa.Text(), nullable=False))
|
||||||
|
### end Alembic commands ###
|
||||||
|
|
||||||
|
|
||||||
|
def downgrade():
|
||||||
|
### commands auto generated by Alembic - please adjust! ###
|
||||||
|
op.drop_column('federatedlogin', 'metadata_json')
|
||||||
|
### end Alembic commands ###
|
Reference in a new issue