數據遷移

from falsk_script import Manager
from flask_migrate import Migrate, migrateCommand
from myqa import app
from exts import db


from models import User,Question,Comment


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


migrate = Migrate(app, db)


manager.add_command('db', MigrateCommand)


if __name__=='__main__':
    manager.run()
相關文章
相關標籤/搜索