Revert "Revert "[#151837054] Add new column free_sms_fragment_limit in the Services table""

This commit is contained in:
Venus Bailey
2017-10-16 16:24:34 +01:00
committed by GitHub
parent e9b76d7d75
commit 9b60d69931
8 changed files with 135 additions and 17 deletions

View File

@@ -211,6 +211,7 @@ class Service(db.Model, Versioned):
_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'])
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')
dvla_organisation_id = db.Column(
db.String,
@@ -230,10 +231,6 @@ class Service(db.Model, Versioned):
association_proxy('permissions', 'service_permission_types')
@staticmethod
def free_sms_fragment_limit():
return current_app.config['FREE_SMS_TIER_FRAGMENT_COUNT']
@classmethod
def from_json(cls, data):
"""