<filename>alembic/versions/a44c5e9ae7b5_add_content_column_to_posts_table.py<gh_stars>0
"""add content column to posts table

Revision ID: a44c5e9ae7b5
Revises: <PASSWORD>
Create Date: 2022-01-14 16:08:14.015341

"""
from alembic import op
import sqlalchemy as sa


# revision identifiers, used by Alembic.
revision = 'a44c5e9ae7b5'
down_revision = '<PASSWORD>'
branch_labels = None
depends_on = None


def upgrade():
    op.add_column("posts", sa.Column(
        "content", sa.String(), nullable=False
    ))
    pass


def downgrade():
    op.drop_column("posts", "content")
    pass

<filename>alembic/versions/a44c5e9ae7b5_add_content_column_to_posts_table.py<gh_stars>0
"""add content column to posts table

Revision ID: a44c5e9ae7b5
Revises: <PASSWORD>
Create Date: 2022-01-14 16:08:14.015341

"""
from alembic import op
import sqlalchemy as sa


# revision identifiers, used by Alembic.
revision = 'a44c5e9ae7b5'
down_revision = '<PASSWORD>'
branch_labels = None
depends_on = None


def upgrade():
    op.add_column("posts", sa.Column(
        "content", sa.String(), nullable=False
    ))
    pass


def downgrade():
    op.drop_column("posts", "content")
    pass

add content column to posts table  Revision ID: a44c5e9ae7b5 Revises: <PASSWORD> Create Date: 2022-01-14 16:08:14.015341 # revision identifiers, used by Alembic.