Makes tasks owner not nullable in models.py
The tasks table scheme in migration for adding tasks to Glance DB has a flag for disabling from setting a NULL owner. In order to keep the behavior consistent across the glance codebase, this patch adds owner as not nullable in the models.py. Fixes bug: 1257949 Change-Id: Id9fff4277f427b7d83d80b5a0a8029968f70e0df
This commit is contained in:
parent
c3ebafa795
commit
21cfc3f465
@ -219,7 +219,7 @@ class Task(BASE, GlanceBase):
|
||||
id = Column(String(36), primary_key=True, default=uuidutils.generate_uuid)
|
||||
type = Column(String(30))
|
||||
status = Column(String(30))
|
||||
owner = Column(String(255))
|
||||
owner = Column(String(255), nullable=False)
|
||||
expires_at = Column(DateTime, nullable=True)
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user