def drop_db():
if prompt_bool(
'Are you sure you want to lose all your data for {0} ? \nThis is process is not reversible'.format(
app.config['SQLALCHEMY_DATABASE_URI'].split('@')[1])
):
db.drop_all()
db.session.commit()
print('Database has been dropped')
评论列表
文章目录