update model to reflect service.prefix_sms not being nullable

This commit is contained in:
Leo Hemsted
2017-12-01 16:51:09 +00:00
parent b0d4044ff5
commit 664187f878

View File

@@ -226,7 +226,7 @@ class Service(db.Model, Versioned):
email_from = db.Column(db.Text, index=False, unique=True, nullable=False)
created_by = db.relationship('User')
created_by_id = db.Column(UUID(as_uuid=True), db.ForeignKey('users.id'), index=True, nullable=False)
prefix_sms = db.Column(db.Boolean, nullable=True, default=True)
prefix_sms = db.Column(db.Boolean, nullable=False, default=True)
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(