#encoding: utf-8

from flask_script import Manager
from flask_migrate import Migrate,MigrateCommand
from zlktqa import app
from exts import db
import pymysql
pymysql.install_as_MySQLdb()
from models import User,Question,Answer
manager=Manager(app)

#使用Migrate绑定app和db
migrate=Migrate(app,db)

#添加迁移脚本的命令道manager中
manager.add_command('db',MigrateCommand)

if __name__=="__main__":
    manager.run()
266b6187904cf1208aa0fa4d59554852376f96cf
<mask token>

<mask token>
pymysql.install_as_MySQLdb()
<mask token>
manager.add_command('db', MigrateCommand)
if __name__ == '__main__':
    manager.run()

<mask token>
pymysql.install_as_MySQLdb()
<mask token>
manager = Manager(app)
migrate = Migrate(app, db)
manager.add_command('db', MigrateCommand)
if __name__ == '__main__':
    manager.run()

from flask_script import Manager
from flask_migrate import Migrate, MigrateCommand
from zlktqa import app
from exts import db
import pymysql
pymysql.install_as_MySQLdb()
from models import User, Question, Answer
manager = Manager(app)
migrate = Migrate(app, db)
manager.add_command('db', MigrateCommand)
if __name__ == '__main__':
    manager.run()

#encoding: utf-8

from flask_script import Manager
from flask_migrate import Migrate,MigrateCommand
from zlktqa import app
from exts import db
import pymysql
pymysql.install_as_MySQLdb()
from models import User,Question,Answer
manager=Manager(app)

#使用Migrate绑定app和db
migrate=Migrate(app,db)

#添加迁移脚本的命令道manager中
manager.add_command('db',MigrateCommand)

if __name__=="__main__":
    manager.run()