Merge "db: Remove deprecated assert_unicode attribute"

This commit is contained in:
Jenkins 2013-08-09 03:02:37 +00:00 committed by Gerrit Code Review
commit 5518425daf
2 changed files with 2 additions and 10 deletions

View File

@ -22,11 +22,7 @@ def upgrade(migrate_engine):
# Align the current state/state_description with the
# action/status now used in the event table
action = sqlalchemy.Column('action',
sqlalchemy.String(length=255,
convert_unicode=False,
assert_unicode=None,
unicode_error=None,
_warn_on_bytestring=False))
sqlalchemy.String(length=255))
action.create(resource)
resource.c.state.alter(name='status')
resource.c.state_description.alter(name='status_reason')

View File

@ -21,11 +21,7 @@ def upgrade(migrate_engine):
stack = sqlalchemy.Table('stack', meta, autoload=True)
# Align with action/status now used in the event/resource tables
action = sqlalchemy.Column('action',
sqlalchemy.String(length=255,
convert_unicode=False,
assert_unicode=None,
unicode_error=None,
_warn_on_bytestring=False))
sqlalchemy.String(length=255))
action.create(stack)