blob: 855064611a60374f81d2d94347f760de2652fa18 (
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
27
|
"""create posts table
Revision ID: 19d57d527c14
Revises:
Create Date: 2022-02-24 01:18:04.684095
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '19d57d527c14'
down_revision = None
branch_labels = None
depends_on = None
def upgrade():
op.create_table("posts", sa.Column('id', sa.Integer(), nullable=False, primary_key=True ),
sa.Column("title", sa.String(), nullable=False) )
pass
def downgrade():
op.drop_table('posts')
pass
|