# -*- encoding: utf-8 -*- 
# @Contact :  ynatsu233@outlook.com
# @Time    :  2019/5/5 19:03  
# @Author  :  Natsu Yuki

# pip install Flask-Script

from flask_script import Manager

# 本地文件

from flaskScript import app
from dbScripts import dbManager
from flask_migrate import Migrate, MigrateCommand
from exts import db
from models_sql import Book

manager = Manager(app=app)
migrate = Migrate(app=app, db=db)

manager.add_command('db', MigrateCommand)

# python manage.py db init
# python manage.py db migrate
# python manage.py db upgrade


@manager.command
def runserver():
    print('running ...')


# python manage.py runserver


manager.add_command('dbM', dbManager)

# python manage.py dbM init

manager.run()

c0776b38e9edd8d3920e274deb3f1565e348aed4
<mask token>


@manager.command
def runserver():
    print('running ...')


<mask token>

<mask token>
manager.add_command('db', MigrateCommand)


@manager.command
def runserver():
    print('running ...')


manager.add_command('dbM', dbManager)
manager.run()

<mask token>
manager = Manager(app=app)
migrate = Migrate(app=app, db=db)
manager.add_command('db', MigrateCommand)


@manager.command
def runserver():
    print('running ...')


manager.add_command('dbM', dbManager)
manager.run()

from flask_script import Manager
from flaskScript import app
from dbScripts import dbManager
from flask_migrate import Migrate, MigrateCommand
from exts import db
from models_sql import Book
manager = Manager(app=app)
migrate = Migrate(app=app, db=db)
manager.add_command('db', MigrateCommand)


@manager.command
def runserver():
    print('running ...')


manager.add_command('dbM', dbManager)
manager.run()

# -*- encoding: utf-8 -*- 
# @Contact :  ynatsu233@outlook.com
# @Time    :  2019/5/5 19:03  
# @Author  :  Natsu Yuki

# pip install Flask-Script

from flask_script import Manager

# 本地文件

from flaskScript import app
from dbScripts import dbManager
from flask_migrate import Migrate, MigrateCommand
from exts import db
from models_sql import Book

manager = Manager(app=app)
migrate = Migrate(app=app, db=db)

manager.add_command('db', MigrateCommand)

# python manage.py db init
# python manage.py db migrate
# python manage.py db upgrade


@manager.command
def runserver():
    print('running ...')


# python manage.py runserver


manager.add_command('dbM', dbManager)

# python manage.py dbM init

manager.run()
