mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-02 17:31:14 -05:00
Add new job status.
ready to send == we have created a dvla file in S3, the job id is in the file name sent to dvla == we have created an aggregate dvla file to send for the day and have sent the file via sftp
This commit is contained in:
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