mirror of
https://github.com/GSA/notifications-api.git
synced 2026-08-16 20:48:37 -04:00
Make stubbed column on broadcast_message non-nullable
But first set any null values there to False.
This commit is contained in:
@@ -2281,7 +2281,7 @@ class BroadcastMessage(db.Model):
|
||||
|
||||
reference = db.Column(db.String(255), nullable=True)
|
||||
|
||||
stubbed = db.Column(db.Boolean, nullable=True)
|
||||
stubbed = db.Column(db.Boolean, nullable=False)
|
||||
|
||||
CheckConstraint("created_by_id is not null or api_key_id is not null")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user