示例#1
0
 def clear_all(self):
     db.drop_all()
     db.create_all()
示例#2
0
#!/usr/bin/env python

from bomb.mbsrv.app import mbsrv_site
from bomb.mbsrv.models.base import db

with mbsrv_site.app_context():
    db.drop_all()
    db.create_all()
示例#3
0
 def clear_all(self):
     db.drop_all()
     db.create_all()