drop column body_html and title_url

This commit is contained in:
2022-05-05 22:17:32 +02:00
parent 726710372c
commit 84f24e7af9
5 changed files with 43 additions and 15 deletions

View File

@@ -0,0 +1,30 @@
"""init
Revision ID: 5ad5927ad64d
Revises: 1a99bede8b76
Create Date: 2022-05-05 15:49:10.984878
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '5ad5927ad64d'
down_revision = '1a99bede8b76'
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.add_column('entries', sa.Column('author', sa.UnicodeText(), nullable=True))
op.drop_column('entries', 'title_url')
op.drop_column('entries', 'body_html')
# ### end Alembic commands ###
def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.add_column('entries', sa.Column('body_html', sa.TEXT(), nullable=True))
op.add_column('entries', sa.Column('title_url', sa.VARCHAR(length=255), nullable=True))
op.drop_column('entries', 'author')
# ### end Alembic commands ###