fix migration history
This commit is contained in:
parent
dc92d3f297
commit
ce0ce4feef
|
@ -1,7 +1,7 @@
|
|||
"""milestone payment fields
|
||||
|
||||
Revision ID: 3793d9a71e27
|
||||
Revises: 310dca400b81
|
||||
Revises: 86d300cb6d69
|
||||
Create Date: 2019-02-11 11:01:44.703413
|
||||
|
||||
"""
|
||||
|
@ -11,7 +11,7 @@ import sqlalchemy as sa
|
|||
|
||||
# revision identifiers, used by Alembic.
|
||||
revision = '3793d9a71e27'
|
||||
down_revision = '310dca400b81'
|
||||
down_revision = '86d300cb6d69'
|
||||
branch_labels = None
|
||||
depends_on = None
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
"""empty message
|
||||
"""proposal_arbiter table
|
||||
|
||||
Revision ID: 86d300cb6d69
|
||||
Revises: 310dca400b81
|
||||
|
@ -17,23 +17,23 @@ depends_on = None
|
|||
|
||||
|
||||
def upgrade():
|
||||
# ### commands auto generated by Alembic - please adjust! ###
|
||||
# ### commands auto generated by Alembic - please adjust! ###
|
||||
op.create_table('proposal_arbiter',
|
||||
sa.Column('id', sa.Integer(), nullable=False),
|
||||
sa.Column('proposal_id', sa.Integer(), nullable=False),
|
||||
sa.Column('user_id', sa.Integer(), nullable=True),
|
||||
sa.Column('status', sa.String(length=255), nullable=False),
|
||||
sa.ForeignKeyConstraint(['proposal_id'], ['proposal.id'], ),
|
||||
sa.ForeignKeyConstraint(['user_id'], ['user.id'], ),
|
||||
sa.PrimaryKeyConstraint('id')
|
||||
)
|
||||
sa.Column('id', sa.Integer(), nullable=False),
|
||||
sa.Column('proposal_id', sa.Integer(), nullable=False),
|
||||
sa.Column('user_id', sa.Integer(), nullable=True),
|
||||
sa.Column('status', sa.String(length=255), nullable=False),
|
||||
sa.ForeignKeyConstraint(['proposal_id'], ['proposal.id'], ),
|
||||
sa.ForeignKeyConstraint(['user_id'], ['user.id'], ),
|
||||
sa.PrimaryKeyConstraint('id')
|
||||
)
|
||||
op.drop_constraint('proposal_arbiter_id_fkey', 'proposal', type_='foreignkey')
|
||||
op.drop_column('proposal', 'arbiter_id')
|
||||
# ### end Alembic commands ###
|
||||
|
||||
|
||||
def downgrade():
|
||||
# ### commands auto generated by Alembic - please adjust! ###
|
||||
# ### commands auto generated by Alembic - please adjust! ###
|
||||
op.add_column('proposal', sa.Column('arbiter_id', sa.INTEGER(), autoincrement=False, nullable=True))
|
||||
op.create_foreign_key('proposal_arbiter_id_fkey', 'proposal', 'user', ['arbiter_id'], ['id'])
|
||||
op.drop_table('proposal_arbiter')
|
||||
|
|
Loading…
Reference in New Issue