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