mirror of
https://github.com/veops/cmdb.git
synced 2025-08-07 20:48:31 +08:00
model: allow origin and ticket_id nullable in OperationRecord
This commit is contained in:
@@ -266,8 +266,8 @@ class OperationRecord(Model):
|
|||||||
__tablename__ = "c_records"
|
__tablename__ = "c_records"
|
||||||
|
|
||||||
uid = db.Column(db.Integer, index=True, nullable=False)
|
uid = db.Column(db.Integer, index=True, nullable=False)
|
||||||
origin = db.Column(db.String(32), nullable=False)
|
origin = db.Column(db.String(32), nullable=True)
|
||||||
ticket_id = db.Column(db.String(32), nullable=False)
|
ticket_id = db.Column(db.String(32), nullable=True)
|
||||||
reason = db.Column(db.Text)
|
reason = db.Column(db.Text)
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user