Merge pull request #1369 from alphagov/default-sms-prefix-true

Default new services to prefixing text messages
This commit is contained in:
Chris Hill-Scott
2017-11-07 10:46:16 +00:00
committed by GitHub
4 changed files with 17 additions and 13 deletions

View File

@@ -224,7 +224,7 @@ class Service(db.Model, Versioned):
_reply_to_email_address = db.Column("reply_to_email_address", db.Text, index=False, unique=False, nullable=True)
_letter_contact_block = db.Column('letter_contact_block', db.Text, index=False, unique=False, nullable=True)
sms_sender = db.Column(db.String(11), nullable=False, default=lambda: current_app.config['FROM_NUMBER'])
prefix_sms = db.Column(db.Boolean, nullable=True)
prefix_sms = db.Column(db.Boolean, nullable=True, default=True)
organisation_id = db.Column(UUID(as_uuid=True), db.ForeignKey('organisation.id'), index=True, nullable=True)
free_sms_fragment_limit = db.Column(db.BigInteger, index=False, unique=False, nullable=True)
organisation = db.relationship('Organisation')