diff --git a/data/migrations/versions/17f11e265e13_add_uuid_field_to_user.py b/data/migrations/versions/17f11e265e13_add_uuid_field_to_user.py index 7c193e054..7a9da4bea 100644 --- a/data/migrations/versions/17f11e265e13_add_uuid_field_to_user.py +++ b/data/migrations/versions/17f11e265e13_add_uuid_field_to_user.py @@ -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 ###