예제 #1
0
 def handle(self):
     sys.path.append(os.getcwd())
     migrations = Migrations().run()
     self.line("")
     for notes in migrations._notes:
         self.line(notes)
     self.line("")
예제 #2
0
 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("")
예제 #3
0
 def tearDownDatabase(self):
     Migrations().reset()
예제 #4
0
 def setUpDatabase(self):
     self.tearDownDatabase()
     Migrations().run()
     if hasattr(self, 'setUpFactories'):
         self.setUpFactories()
예제 #5
0
 def staticTearDownDatabase():
     Migrations().reset()
예제 #6
0
 def staticSetUpDatabase():
     Migrations().run()