Capture the count of sent notifications for a job

This commit is contained in:
Martyn Inglis
2016-03-04 14:25:28 +00:00
parent 024e390c2f
commit c44aaf0fdc
4 changed files with 63 additions and 11 deletions

View File

@@ -0,0 +1,26 @@
"""empty message
Revision ID: 0034_job_sent_count
Revises: 0033_correct_permission_enums
Create Date: 2016-03-04 13:44:32.217058
"""
# revision identifiers, used by Alembic.
revision = '0034_job_sent_count'
down_revision = '0033_correct_permission_enums'
from alembic import op
import sqlalchemy as sa
def upgrade():
### commands auto generated by Alembic - please adjust! ###
op.add_column('jobs', sa.Column('notifications_sent', sa.Integer(), nullable=False))
### end Alembic commands ###
def downgrade():
### commands auto generated by Alembic - please adjust! ###
op.drop_column('jobs', 'notifications_sent')
### end Alembic commands ###