Fix column types in models.py

Some columns' type were not matching the one in the database. Not sure
if that causes any issues, but it's worth to fix the issue.

Closes-Bug: #1671135
Change-Id: Idb242d4f1eb4694a3324ca587caf8a8bccfd35ed
This commit is contained in:
Mate Lakat 2017-03-08 15:59:03 +01:00
parent 89fd38e89b
commit 6d1036f7e7
1 changed files with 2 additions and 2 deletions

View File

@ -418,7 +418,7 @@ class VolumeTypeProjects(BASE, CinderBase):
name="uniq_volume_type_projects0volume_type_id0project_id0deleted"),
)
id = Column(Integer, primary_key=True)
volume_type_id = Column(Integer, ForeignKey('volume_types.id'),
volume_type_id = Column(String, ForeignKey('volume_types.id'),
nullable=False)
project_id = Column(String(255))
deleted = Column(Integer, default=0)
@ -440,7 +440,7 @@ class GroupTypeProjects(BASE, CinderBase):
name="uniq_group_type_projects0group_type_id0project_id0deleted"),
)
id = Column(Integer, primary_key=True)
group_type_id = Column(Integer, ForeignKey('group_types.id'),
group_type_id = Column(String, ForeignKey('group_types.id'),
nullable=False)
project_id = Column(String(255))
deleted = Column(Integer, default=0)