Merge "db: Set name for FK constraint"

This commit is contained in:
Zuul 2024-02-22 14:20:24 +00:00 committed by Gerrit Code Review
commit 47bf6af18c
1 changed files with 4 additions and 1 deletions

View File

@ -643,7 +643,10 @@ class VolumeTypeExtraSpecs(BASE, CinderBase):
value = sa.Column(sa.String(255)) value = sa.Column(sa.String(255))
volume_type_id = sa.Column( volume_type_id = sa.Column(
sa.String(36), sa.String(36),
sa.ForeignKey('volume_types.id'), sa.ForeignKey(
'volume_types.id',
name='volume_type_extra_specs_ibfk_1',
),
nullable=False, nullable=False,
index=True, index=True,
) )