Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def tearDownDatabase(self):
Migrations().reset()
def tearDownDatabase(self):
Migrations().reset()
def staticSetUpDatabase():
Migrations().run()
def setUpDatabase(self):
self.tearDownDatabase()
Migrations().run()
if hasattr(self, 'setUpFactories'):
self.setUpFactories()
def handle(self):
sys.path.append(os.getcwd())
migrations = Migrations(self.option('connection')).rollback()
self.line("")
for notes in migrations._notes:
self.line(notes)
self.line("")