How to use the masonite.helpers.migrations.Migrations function in masonite

To help you get started, we’ve selected a few masonite examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github MasoniteFramework / masonite / masonite / testing / TestCase.py View on Github external
def setUpDatabase(self):
        self.tearDownDatabase()
        Migrations().run()
        if hasattr(self, 'setUpFactories'):
            self.setUpFactories()
github MasoniteFramework / masonite / masonite / commands / MigrateRollbackCommand.py View on Github external
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("")