make flavor name and adapter_id to be the unique key

Change-Id: I86901b4bec172434768b8651b3f74baae4027083
This commit is contained in:
xiaodongwang 2014-09-24 11:20:06 -07:00
parent 58d6fbc31f
commit 4da902bec3
1 changed files with 1 additions and 1 deletions

View File

@ -2044,7 +2044,7 @@ class AdapterFlavor(BASE, HelperMixin):
Integer,
ForeignKey('adapter.id', onupdate='CASCADE', ondelete='CASCADE')
)
name = Column(String(80), unique=True)
name = Column(String(80))
display_name = Column(String(80))
template = Column(String(80))
_ordered_flavor_roles = Column(