Example #1
0
 def model(self):
     """Initialize and cache MigrationHistory model."""
     MigrateHistory._meta.database = self.database
     MigrateHistory._meta.table_name = self.migrate_table
     MigrateHistory._meta.schema = self.schema
     MigrateHistory.create_table(True)
     return MigrateHistory
Example #2
0
 def model(self):
     """Initialize and cache MigrationHistory model."""
     MigrateHistory._meta.database = self.database
     MigrateHistory._meta.table_name = self.migrate_table
     MigrateHistory._meta.schema = self.schema
     MigrateHistory.create_table(True)
     return MigrateHistory
Example #3
0
 def model(self):
     """Ensure that migrations has prepared to run."""
     # Initialize MigrationHistory model
     MigrateHistory._meta.database = self.database
     MigrateHistory.create_table(True)
     return MigrateHistory
Example #4
0
 def model(self):
     """Ensure that migrations has prepared to run."""
     # Initialize MigrationHistory model
     MigrateHistory._meta.database = self.database
     MigrateHistory.create_table(True)
     return MigrateHistory