mirror of
https://github.com/GSA/notifications-api.git
synced 2026-01-06 02:33:59 -05:00
28 lines
651 B
Python
28 lines
651 B
Python
"""empty message
|
|
|
|
Revision ID: 0035_default_sent_count
|
|
Revises: 0034_job_sent_count
|
|
Create Date: 2016-03-08 09:08:55.721654
|
|
|
|
"""
|
|
|
|
# revision identifiers, used by Alembic.
|
|
revision = '0035_default_sent_count'
|
|
down_revision = '0034_job_sent_count'
|
|
|
|
from alembic import op
|
|
import sqlalchemy as sa
|
|
|
|
|
|
def upgrade():
|
|
op.execute('update jobs set notifications_sent = notification_count')
|
|
op.alter_column('jobs', 'notifications_sent',
|
|
existing_type=sa.INTEGER(),
|
|
nullable=False)
|
|
|
|
|
|
def downgrade():
|
|
op.alter_column('jobs', 'notifications_sent',
|
|
existing_type=sa.INTEGER(),
|
|
nullable=True)
|