Files
notifications-api/migrations/versions/0022_add_processing_dates.py
Martyn Inglis 10a764a2c1 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
2016-02-25 09:59:50 +00:00

27 lines
750 B
Python

"""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')