set sms_sender to be 'GOVUK' if not otherwise specified

this is a precursor to making the column non-nullable
This commit is contained in:
Leo Hemsted
2017-05-22 14:43:46 +01:00
parent 3744463296
commit 2535a7fe98
3 changed files with 4 additions and 2 deletions

View File

@@ -199,7 +199,7 @@ class Service(db.Model, Versioned):
created_by_id = db.Column(UUID(as_uuid=True), db.ForeignKey('users.id'), index=True, nullable=False)
reply_to_email_address = db.Column(db.Text, index=False, unique=False, nullable=True)
letter_contact_block = db.Column(db.Text, index=False, unique=False, nullable=True)
sms_sender = db.Column(db.String(11), nullable=True)
sms_sender = db.Column(db.String(11), nullable=True, default='GOVUK')
organisation_id = db.Column(UUID(as_uuid=True), db.ForeignKey('organisation.id'), index=True, nullable=True)
organisation = db.relationship('Organisation')
dvla_organisation_id = db.Column(