mirror of
https://github.com/GSA/notifications-api.git
synced 2026-07-12 09:24:27 -04:00
Not null in own PR
This commit is contained in:
@@ -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
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user