mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-10 15:22:24 -05:00
Merge branch 'master' of github.com:alphagov/notifications-api
This commit is contained in:
@@ -1,30 +0,0 @@
|
||||
"""empty message
|
||||
|
||||
Revision ID: 0202_fix_old_incomplete_jobs
|
||||
Revises: 0201_another_letter_org
|
||||
Create Date: 2017-06-29 12:44:16.815039
|
||||
|
||||
"""
|
||||
|
||||
# revision identifiers, used by Alembic.
|
||||
revision = '0202_fix_old_incomplete_jobs'
|
||||
down_revision = '0201_another_letter_org'
|
||||
|
||||
from alembic import op
|
||||
|
||||
|
||||
def upgrade():
|
||||
op.execute("""
|
||||
UPDATE
|
||||
jobs
|
||||
SET
|
||||
processing_started = created_at
|
||||
WHERE
|
||||
processing_started IS NULL
|
||||
AND
|
||||
job_status = 'in progress'
|
||||
""")
|
||||
|
||||
|
||||
def downgrade():
|
||||
pass
|
||||
Reference in New Issue
Block a user