job on notification now nullable.

This commit is contained in:
Adam Shimali
2016-02-10 11:08:24 +00:00
parent d38ba0d36a
commit 3a2cfc96e6
3 changed files with 53 additions and 1 deletions

View File

@@ -0,0 +1,30 @@
"""empty message
Revision ID: 0014_job_id_nullable
Revises: 0013_add_notifications
Create Date: 2016-02-10 10:57:39.414061
"""
# revision identifiers, used by Alembic.
revision = '0014_job_id_nullable'
down_revision = '0013_add_notifications'
from alembic import op
import sqlalchemy as sa
from sqlalchemy.dialects import postgresql
def upgrade():
### commands auto generated by Alembic - please adjust! ###
op.alter_column('notifications', 'job_id',
existing_type=postgresql.UUID(),
nullable=True)
### end Alembic commands ###
def downgrade():
### commands auto generated by Alembic - please adjust! ###
op.alter_column('notifications', 'job_id',
existing_type=postgresql.UUID(),
nullable=False)
### end Alembic commands ###