Add 'stubbed' column to broadcast_message table

This is a boolean column. It will be set to True for broadcasts
created from training broadcast accounts.

This will help us debug, for example by excluding all the stubbed
broadcasts when we have some trouble with real broadcasts.
This commit is contained in:
Pea Tyczynska
2021-01-26 16:50:34 +00:00
parent dfbd31cef8
commit a93a35de8d
2 changed files with 27 additions and 0 deletions

View File

@@ -2269,6 +2269,8 @@ class BroadcastMessage(db.Model):
reference = db.Column(db.String(255), nullable=True)
stubbed = db.Column(db.Boolean, nullable=True)
CheckConstraint("created_by_id is not null or api_key_id is not null")
@property