35 lines
837 B
Python
35 lines
837 B
Python
"""
|
|
Initial revision
|
|
|
|
Revision ID: 716726b4a1fe
|
|
Revises:
|
|
Create Date: 2022-04-15 16:05:29.358429+02:00
|
|
"""
|
|
|
|
from alembic import op
|
|
import sqlalchemy as sa
|
|
|
|
# Revision identifiers, used by Alembic.
|
|
revision = '716726b4a1fe'
|
|
down_revision = None
|
|
branch_labels = None
|
|
depends_on = None
|
|
|
|
|
|
def upgrade():
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
|
op.create_table(
|
|
'tasks',
|
|
sa.Column('id', sa.Integer(), nullable=False),
|
|
sa.Column('title', sa.String(length=255), nullable=False),
|
|
sa.Column('description', sa.Text(), nullable=False),
|
|
sa.PrimaryKeyConstraint('id', name=op.f('pk_tasks'))
|
|
)
|
|
# ### end Alembic commands ###
|
|
|
|
|
|
def downgrade():
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
|
op.drop_table('tasks')
|
|
# ### end Alembic commands ###
|