Add the task table
This commit is contained in:
parent
785c83e395
commit
37ee637f7e
3
.gitignore
vendored
3
.gitignore
vendored
@ -1 +1,4 @@
|
||||
venv/
|
||||
__pycache__/
|
||||
|
||||
db/data.sqlite
|
||||
|
29
alembic/versions/40867bd0dcc8_add_tasks_table.py
Normal file
29
alembic/versions/40867bd0dcc8_add_tasks_table.py
Normal file
@ -0,0 +1,29 @@
|
||||
"""add tasks table
|
||||
|
||||
Revision ID: 40867bd0dcc8
|
||||
Revises:
|
||||
Create Date: 2020-05-20 10:59:38.018843
|
||||
|
||||
"""
|
||||
from alembic import op
|
||||
import sqlalchemy as sa
|
||||
|
||||
|
||||
# revision identifiers, used by Alembic.
|
||||
revision = '40867bd0dcc8'
|
||||
down_revision = None
|
||||
branch_labels = None
|
||||
depends_on = None
|
||||
|
||||
|
||||
def upgrade():
|
||||
op.create_table(
|
||||
'tasks',
|
||||
sa.Column('id', sa.Integer, primary_key=True),
|
||||
sa.Column('title', sa.String, nullable=False)
|
||||
)
|
||||
pass
|
||||
|
||||
|
||||
def downgrade():
|
||||
op.drop_table('tasks')
|
Loading…
Reference in New Issue
Block a user