Cleaning up migration hell.
This commit is contained in:
parent
b35427523d
commit
3ec8196979
|
@ -1,24 +0,0 @@
|
|||
"""merge D and F
|
||||
|
||||
Revision ID: 2b787cc265d8
|
||||
Revises: 65f3fce6031a, 0c8a2f8db28c
|
||||
Create Date: 2020-03-18 16:02:50.126232
|
||||
|
||||
"""
|
||||
from alembic import op
|
||||
import sqlalchemy as sa
|
||||
|
||||
|
||||
# revision identifiers, used by Alembic.
|
||||
revision = '2b787cc265d8'
|
||||
down_revision = ('65f3fce6031a', '0c8a2f8db28c')
|
||||
branch_labels = None
|
||||
depends_on = None
|
||||
|
||||
|
||||
def upgrade():
|
||||
pass
|
||||
|
||||
|
||||
def downgrade():
|
||||
pass
|
|
@ -1,28 +0,0 @@
|
|||
"""empty message
|
||||
|
||||
Revision ID: 4d9ae1a4eb48
|
||||
Revises: 2b787cc265d8
|
||||
Create Date: 2020-03-19 17:13:40.747794
|
||||
|
||||
"""
|
||||
from alembic import op
|
||||
import sqlalchemy as sa
|
||||
|
||||
|
||||
# revision identifiers, used by Alembic.
|
||||
revision = '4d9ae1a4eb48'
|
||||
down_revision = '2b787cc265d8'
|
||||
branch_labels = None
|
||||
depends_on = None
|
||||
|
||||
|
||||
def upgrade():
|
||||
# ### commands auto generated by Alembic - please adjust! ###
|
||||
op.add_column('file', sa.Column('irb_doc_code', sa.String(), nullable=True))
|
||||
# ### end Alembic commands ###
|
||||
|
||||
|
||||
def downgrade():
|
||||
# ### commands auto generated by Alembic - please adjust! ###
|
||||
op.drop_column('file', 'irb_doc_code')
|
||||
# ### end Alembic commands ###
|
|
@ -1,8 +1,8 @@
|
|||
"""empty message
|
||||
|
||||
Revision ID: 74254ecb1e90
|
||||
Revises: 4d9ae1a4eb48
|
||||
Create Date: 2020-03-20 08:09:13.858558
|
||||
Revision ID: ddd5fc9ea75b
|
||||
Revises: 65f3fce6031a
|
||||
Create Date: 2020-03-20 11:19:01.825283
|
||||
|
||||
"""
|
||||
from alembic import op
|
||||
|
@ -10,14 +10,16 @@ import sqlalchemy as sa
|
|||
|
||||
|
||||
# revision identifiers, used by Alembic.
|
||||
revision = '74254ecb1e90'
|
||||
down_revision = '4d9ae1a4eb48'
|
||||
revision = 'ddd5fc9ea75b'
|
||||
down_revision = '65f3fce6031a'
|
||||
branch_labels = None
|
||||
depends_on = None
|
||||
|
||||
|
||||
def upgrade():
|
||||
# ### commands auto generated by Alembic - please adjust! ###
|
||||
op.add_column('file', sa.Column('irb_doc_code', sa.String(), nullable=True))
|
||||
op.add_column('file', sa.Column('is_reference', sa.Boolean(), nullable=False))
|
||||
op.alter_column('file', 'primary',
|
||||
existing_type=sa.BOOLEAN(),
|
||||
nullable=False)
|
||||
|
@ -29,4 +31,6 @@ def downgrade():
|
|||
op.alter_column('file', 'primary',
|
||||
existing_type=sa.BOOLEAN(),
|
||||
nullable=True)
|
||||
op.drop_column('file', 'is_reference')
|
||||
op.drop_column('file', 'irb_doc_code')
|
||||
# ### end Alembic commands ###
|
Loading…
Reference in New Issue