Rebase migration on top of master and add backfill.
This commit is contained in:
parent
606ad21bec
commit
7c8a438b58
1 changed files with 4 additions and 6 deletions
|
@ -1,26 +1,24 @@
|
|||
"""add uuid field to user
|
||||
|
||||
Revision ID: 17f11e265e13
|
||||
Revises: 204abf14783d
|
||||
Revises: 2fb36d4be80d
|
||||
Create Date: 2014-11-11 14:32:54.866188
|
||||
|
||||
"""
|
||||
|
||||
# revision identifiers, used by Alembic.
|
||||
revision = '17f11e265e13'
|
||||
down_revision = '204abf14783d'
|
||||
down_revision = '2fb36d4be80d'
|
||||
|
||||
from alembic import op
|
||||
import sqlalchemy as sa
|
||||
from sqlalchemy.dialects import mysql
|
||||
from util.backfill_user_uuids import backfill_user_uuids
|
||||
|
||||
def upgrade(tables):
|
||||
### commands auto generated by Alembic - please adjust! ###
|
||||
op.add_column('user', sa.Column('uuid', sa.String(length=36), nullable=False))
|
||||
### end Alembic commands ###
|
||||
backfill_user_uuids()
|
||||
|
||||
|
||||
def downgrade(tables):
|
||||
### commands auto generated by Alembic - please adjust! ###
|
||||
op.drop_column('user', 'uuid')
|
||||
### end Alembic commands ###
|
||||
|
|
Reference in a new issue