summaryrefslogtreecommitdiff
path: root/alembic/versions/f18f4db81d80_add_content_column_to_posts_table.py
blob: a783bf5b149137e3a8217f9edd1681ead99161c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
"""add content column to posts table

Revision ID: f18f4db81d80
Revises: 19d57d527c14
Create Date: 2022-02-24 02:03:54.409749

"""
from alembic import op
import sqlalchemy as sa


# revision identifiers, used by Alembic.
revision = 'f18f4db81d80'
down_revision = '19d57d527c14'
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