Not null in own PR

This commit is contained in:
Martyn Inglis
2017-06-05 13:10:54 +01:00
parent 687b8443d1
commit 21a5f01804
2 changed files with 7 additions and 5 deletions

View File

@@ -1,14 +1,14 @@
"""empty message
Revision ID: 0093_notnull_inbound_provider
Revises: 0092_populate_inbound_provider
Revision ID: 0094_notnull_inbound_provider
Revises: 0093_populate_inbound_provider
Create Date: 2017-06-02 16:50:11.698423
"""
# revision identifiers, used by Alembic.
revision = '0093_notnull_inbound_provider'
down_revision = '0092_populate_inbound_provider'
revision = '0094_notnull_inbound_provider'
down_revision = '0093_populate_inbound_provider'
from alembic import op
import sqlalchemy as sa

View File

@@ -193,7 +193,8 @@ def create_inbound_sms(
user_number='447700900111',
provider_date=None,
provider_reference=None,
content='Hello'
content='Hello',
provider="mmg"
):
inbound = InboundSms(
service=service,
@@ -203,6 +204,7 @@ def create_inbound_sms(
provider_date=provider_date or datetime.utcnow(),
provider_reference=provider_reference or 'foo',
content=content,
provider=provider
)
dao_create_inbound_sms(inbound)
return inbound