Add pending flag to scheduled_notifications.

Set pending flag to false when the notification has been sent to provider task.
This commit is contained in:
Rebecca Law
2017-05-22 15:07:16 +01:00
parent a57dc18895
commit 9bfba52f53
7 changed files with 38 additions and 4 deletions

View File

@@ -18,6 +18,7 @@ def upgrade():
sa.Column('id', postgresql.UUID(as_uuid=True), nullable=False),
sa.Column('notification_id', postgresql.UUID(as_uuid=True), nullable=False),
sa.Column('scheduled_for', sa.DateTime(), nullable=False),
sa.Column('pending', sa.Boolean, nullable=False, default=True),
sa.ForeignKeyConstraint(['notification_id'], ['notifications.id'], ),
sa.PrimaryKeyConstraint('id')
)