create system request reviews when request is automatically accepted for financial verification

This commit is contained in:
dandds
2018-11-05 15:02:01 -05:00
parent 673e6efbce
commit 66a10f2d2f
4 changed files with 42 additions and 6 deletions

View File

@@ -0,0 +1,32 @@
"""make user_id nullable for request_review
Revision ID: ea8b5681b37c
Revises: e1081cf01780
Create Date: 2018-11-05 14:42:42.175939
"""
from alembic import op
import sqlalchemy as sa
from sqlalchemy.dialects import postgresql
# revision identifiers, used by Alembic.
revision = 'ea8b5681b37c'
down_revision = 'e1081cf01780'
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.alter_column('request_reviews', 'user_id',
existing_type=postgresql.UUID(),
nullable=True)
# ### end Alembic commands ###
def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.alter_column('request_reviews', 'user_id',
existing_type=postgresql.UUID(),
nullable=False)
# ### end Alembic commands ###