数据模型

    • id: 标识每条记录的字段,是表的主键,Integer 类型;
    • title: 即任务清单的标题,String 类型;
    • posted_on: 任务创建时间,DATE 类型;
    • status: 任务的状态,Boolean 类型;
    1. Creating directory /Users/admin/flask-todo/migrations ... done
    2. Creating directory /Users/admin/flask-todo/migrations/versions ... done
    3. Generating /Users/admin/flask-todo/migrations/env.py ... done
    4. Generating /Users/admin/flask-todo/migrations/env.pyc ... done
    5. Generating /Users/admin/flask-todo/migrations/README ... done
    6. Please edit configuration/connection/logging settings in '/Users/admin/flask-
    7. todo/migrations/alembic.ini' before proceeding.
    8. $ python manage.py db migrate # 自动创建迁移脚本
    9. INFO [alembic.runtime.migration] Will assume non-transactional DDL.
    10. Generating /Users/admin/flask-todo/migrations/versions/70215a3905e0_.py ... done
    11. $ python manage.py db upgrade # 更新数据库
    12. INFO [alembic.runtime.migration] Context impl SQLiteImpl.
    13. INFO [alembic.runtime.migration] Will assume non-transactional DDL.
    14. INFO [alembic.runtime.migration] Running upgrade -> 70215a3905e0, empty message