Merge "sql migration: ensure using innodb utf8 for assignment table" into stable/icehouse

This commit is contained in:
Jenkins 2014-06-03 15:31:31 +00:00 committed by Gerrit Code Review
commit 2b2c9fbd48
1 changed files with 3 additions and 1 deletions

View File

@ -39,7 +39,9 @@ def upgrade(migrate_engine):
sql.Column('role_id', sql.String(64), sql.ForeignKey('role.id'),
nullable=False),
sql.Column('inherited', sql.Boolean, default=False, nullable=False),
sql.PrimaryKeyConstraint('type', 'actor_id', 'target_id', 'role_id'))
sql.PrimaryKeyConstraint('type', 'actor_id', 'target_id', 'role_id'),
mysql_engine='InnoDB',
mysql_charset='utf8')
assignment_table.create(migrate_engine, checkfirst=True)