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:
parent
89fd38e89b
commit
6d1036f7e7
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user