Merge "db: Remove erroneous primary key definitions"

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

View File

@ -1216,9 +1216,9 @@ class Worker(BASE, CinderBase):
# Type of the resource we are working on (Volume, Snapshot, Backup) it must
# match the Versioned Object class name.
resource_type = sa.Column(sa.String(40), primary_key=True, nullable=False)
resource_type = sa.Column(sa.String(40), nullable=False)
# UUID of the resource we are working on
resource_id = sa.Column(sa.String(36), primary_key=True, nullable=False)
resource_id = sa.Column(sa.String(36), nullable=False)
# Status that should be cleaned on service failure
status = sa.Column(sa.String(255), nullable=False)