Apply reviewed changes.

Adds a length to the UUID field, renames QuayDeferredPermissionUser
parameter id->uuid, adds transactions to backfill script.
This commit is contained in:
Jimmy Zelinskie 2014-11-18 16:25:11 -05:00
parent 10b627c2ad
commit 606ad21bec
4 changed files with 30 additions and 24 deletions

View file

@ -137,7 +137,7 @@ class BaseModel(ReadSlaveModel):
class User(BaseModel):
uuid = CharField(default=uuid_generator)
uuid = CharField(default=uuid_generator, max_length=36)
username = CharField(unique=True, index=True)
password_hash = CharField(null=True)
email = CharField(unique=True, index=True,

View file

@ -16,7 +16,7 @@ from sqlalchemy.dialects import mysql
def upgrade(tables):
### commands auto generated by Alembic - please adjust! ###
op.add_column('user', sa.Column('uuid', sa.String(length=255), nullable=False))
op.add_column('user', sa.Column('uuid', sa.String(length=36), nullable=False))
### end Alembic commands ###