New designs call for a streamlined New Portfolio page, with far fewer input options. This commit refactors that page according to those designs. Some of the route functions in this commit refer to a "step 1" of creating a new Portfolio. Though there is no "step 2" right now, the designs call for a multistep flow for Portfolio creation process, so this commit sets the stage for that.
41 lines
1.8 KiB
Python
41 lines
1.8 KiB
Python
"""Remove unneeded portfolio columns
|
|
|
|
Revision ID: 802071bcd013
|
|
Revises: 67a2151d6269
|
|
Create Date: 2019-12-11 13:26:34.770480
|
|
|
|
"""
|
|
from alembic import op
|
|
import sqlalchemy as sa
|
|
from sqlalchemy.dialects import postgresql
|
|
|
|
# revision identifiers, used by Alembic.
|
|
revision = '802071bcd013' # pragma: allowlist secret
|
|
down_revision = '67a2151d6269' # pragma: allowlist secret
|
|
branch_labels = None
|
|
depends_on = None
|
|
|
|
|
|
def upgrade():
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
|
op.drop_column('portfolios', 'dev_team')
|
|
op.drop_column('portfolios', 'complexity')
|
|
op.drop_column('portfolios', 'team_experience')
|
|
op.drop_column('portfolios', 'dev_team_other')
|
|
op.drop_column('portfolios', 'app_migration')
|
|
op.drop_column('portfolios', 'native_apps')
|
|
op.drop_column('portfolios', 'complexity_other')
|
|
# ### end Alembic commands ###
|
|
|
|
|
|
def downgrade():
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
|
op.add_column('portfolios', sa.Column('complexity_other', sa.VARCHAR(), autoincrement=False, nullable=True))
|
|
op.add_column('portfolios', sa.Column('native_apps', sa.VARCHAR(), autoincrement=False, nullable=True))
|
|
op.add_column('portfolios', sa.Column('app_migration', sa.VARCHAR(), autoincrement=False, nullable=True))
|
|
op.add_column('portfolios', sa.Column('dev_team_other', sa.VARCHAR(), autoincrement=False, nullable=True))
|
|
op.add_column('portfolios', sa.Column('team_experience', sa.VARCHAR(), autoincrement=False, nullable=True))
|
|
op.add_column('portfolios', sa.Column('complexity', postgresql.ARRAY(sa.VARCHAR()), autoincrement=False, nullable=True))
|
|
op.add_column('portfolios', sa.Column('dev_team', postgresql.ARRAY(sa.VARCHAR()), autoincrement=False, nullable=True))
|
|
# ### end Alembic commands ###
|