Make stubbed column on broadcast_message non-nullable

But first set any null values there to False.
This commit is contained in:
Pea Tyczynska
2021-02-08 18:22:25 +00:00
parent c2191d3a0e
commit 6e1c5a70c0
2 changed files with 37 additions and 1 deletions

View File

@@ -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")