<filename>migrations/versions/dc0225f11987_.py
"""empty message

Revision ID: dc0225f11987
Revises: 
Create Date: 2021-01-02 16:55:14.731437

"""
from alembic import op
import sqlalchemy as sa

# revision identifiers, used by Alembic.
revision = 'dc0225f11987'
down_revision = None
branch_labels = None
depends_on = None


def upgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.add_column('Movies', sa.Column('release', sa.BigInteger(), nullable=True))
    op.add_column('Movies', sa.Column('title', sa.String(), nullable=True))
    op.drop_column('Movies', 'catchphrase')
    op.drop_column('Movies', 'name')
    # ### end Alembic commands ###


def downgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.add_column('Movies', sa.Column('name', sa.VARCHAR(), autoincrement=False, nullable=True))
    op.add_column('Movies', sa.Column('catchphrase', sa.VARCHAR(), autoincrement=False, nullable=True))
    op.drop_column('Movies', 'title')
    op.drop_column('Movies', 'release')
    # ### end Alembic commands ###

<filename>migrations/versions/dc0225f11987_.py
"""empty message

Revision ID: dc0225f11987
Revises: 
Create Date: 2021-01-02 16:55:14.731437

"""
from alembic import op
import sqlalchemy as sa

# revision identifiers, used by Alembic.
revision = 'dc0225f11987'
down_revision = None
branch_labels = None
depends_on = None


def upgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.add_column('Movies', sa.Column('release', sa.BigInteger(), nullable=True))
    op.add_column('Movies', sa.Column('title', sa.String(), nullable=True))
    op.drop_column('Movies', 'catchphrase')
    op.drop_column('Movies', 'name')
    # ### end Alembic commands ###


def downgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.add_column('Movies', sa.Column('name', sa.VARCHAR(), autoincrement=False, nullable=True))
    op.add_column('Movies', sa.Column('catchphrase', sa.VARCHAR(), autoincrement=False, nullable=True))
    op.drop_column('Movies', 'title')
    op.drop_column('Movies', 'release')
    # ### end Alembic commands ###

empty message  Revision ID: dc0225f11987 Revises:  Create Date: 2021-01-02 16:55:14.731437 # revision identifiers, used by Alembic. # ### commands auto generated by Alembic - please adjust! ### # ### end Alembic commands ### # ### commands auto generated by Alembic - please adjust! ### # ### end Alembic commands ###