Skip to content

Commit

Permalink
Merge "Fix migration that breaks Grenade jobs"
Browse files Browse the repository at this point in the history
  • Loading branch information
Jenkins authored and openstack-gerrit committed Apr 24, 2014
2 parents b315169 + c6a8f25 commit 03176c1
Showing 1 changed file with 6 additions and 0 deletions.
Expand Up @@ -41,6 +41,12 @@ def upgrade(active_plugins=None, options=None):
if not migration.should_run(active_plugins, migration_for_plugins):
return

op.execute("CREATE TABLE IF NOT EXISTS meteringlabels( "
"tenant_id VARCHAR(255) NULL, "
"id VARCHAR(36) PRIMARY KEY NOT NULL, "
"name VARCHAR(255) NULL, "
"description VARCHAR(255) NULL)")

op.alter_column('meteringlabels', 'description', type_=sa.String(1024),
existing_nullable=True)

Expand Down

0 comments on commit 03176c1

Please sign in to comment.