Initialize local database steps

  1. flask db migrate

    Migrate the database according to the migration script. (related to migrations file)

  2. flask db upgrade

    upgrade.

  3. sh dev/init.sh

    Read the database pre-file.

  4. python main.py init_company -n head office

    Create a new company.

  5. python main.py init_admin

    Create a new administrator.

Guess you like

Origin blog.csdn.net/weixin_45605541/article/details/131719674