Lines Matching refs:migration
209 migrations = [migration for migration in migrations
210 if migration.version >= minimum_version]
212 migrations = [migration for migration in migrations
213 if migration.version <= maximum_version]
217 def do_migration(self, migration, migrate_up=True): argument
224 print 'Applying migration %s' % migration.name, # no newline
227 assert self.get_db_version() == migration.version - 1
228 migration.migrate_up(self)
229 new_version = migration.version
232 assert self.get_db_version() == migration.version
233 migration.migrate_down(self)
234 new_version = migration.version - 1
259 for migration in migrations:
260 self.do_migration(migration, migrate_up)