mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-22 00:11:16 -05:00
Renamed the header of the CSV to 'to' from 'number' to allow for email jobs
- added new columns to Job and Notification to capture the start/end dates accurately
This commit is contained in:
26
migrations/versions/0022_add_processing_dates.py
Normal file
26
migrations/versions/0022_add_processing_dates.py
Normal file
@@ -0,0 +1,26 @@
|
||||
"""empty message
|
||||
|
||||
Revision ID: 0022_add_processing_dates
|
||||
Revises: 0021_add_job_metadata
|
||||
Create Date: 2016-02-24 17:15:47.457200
|
||||
|
||||
"""
|
||||
|
||||
# revision identifiers, used by Alembic.
|
||||
revision = '0022_add_processing_dates'
|
||||
down_revision = '0021_add_job_metadata'
|
||||
|
||||
from alembic import op
|
||||
import sqlalchemy as sa
|
||||
|
||||
|
||||
def upgrade():
|
||||
op.add_column('jobs', sa.Column('processing_finished', sa.DateTime(), nullable=True))
|
||||
op.add_column('jobs', sa.Column('processing_started', sa.DateTime(), nullable=True))
|
||||
op.add_column('notifications', sa.Column('sent_at', sa.DateTime(), nullable=True))
|
||||
|
||||
|
||||
def downgrade():
|
||||
op.drop_column('notifications', 'sent_at')
|
||||
op.drop_column('jobs', 'processing_started')
|
||||
op.drop_column('jobs', 'processing_finished')
|
||||
Reference in New Issue
Block a user