mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-24 09:21:39 -05:00
Merge pull request #855 from alphagov/create-dvla-file
Add new job status for dvla file processing
This commit is contained in:
@@ -416,6 +416,8 @@ JOB_STATUS_FINISHED = 'finished'
|
||||
JOB_STATUS_SENDING_LIMITS_EXCEEDED = 'sending limits exceeded'
|
||||
JOB_STATUS_SCHEDULED = 'scheduled'
|
||||
JOB_STATUS_CANCELLED = 'cancelled'
|
||||
JOB_STATUS_READY_TO_SEND = 'ready to send'
|
||||
JOB_STATUS_SENT_TO_DVLA = 'sent to dvla'
|
||||
JOB_STATUS_TYPES = [
|
||||
JOB_STATUS_PENDING,
|
||||
JOB_STATUS_IN_PROGRESS,
|
||||
|
||||
24
migrations/versions/0069_add_dvla_job_status.py
Normal file
24
migrations/versions/0069_add_dvla_job_status.py
Normal file
@@ -0,0 +1,24 @@
|
||||
"""empty message
|
||||
|
||||
Revision ID: 0069_add_dvla_job_status
|
||||
Revises: 0068_add_created_by_to_provider
|
||||
Create Date: 2017-03-10 16:15:22.153948
|
||||
|
||||
"""
|
||||
|
||||
# revision identifiers, used by Alembic.
|
||||
revision = '0069_add_dvla_job_status'
|
||||
down_revision = '0068_add_created_by_to_provider'
|
||||
|
||||
from alembic import op
|
||||
import sqlalchemy as sa
|
||||
|
||||
|
||||
def upgrade():
|
||||
op.execute("INSERT INTO JOB_STATUS VALUES('ready to send')")
|
||||
op.execute("INSERT INTO JOB_STATUS VALUES('sent to dvla')")
|
||||
|
||||
|
||||
def downgrade():
|
||||
op.execute("DELETE FROM JOB_STATUS WHERE name = 'ready to send'")
|
||||
op.execute("DELETE FROM JOB_STATUS where name = 'sent to dvla'")
|
||||
Reference in New Issue
Block a user