Esempio n. 1
0
 def sync(self, version=None, current_version=None):
     """
     Place a database under migration control and upgrade/downgrade it,
     creating first if necessary.
     """
     if current_version is not None:
         migration.db_version_control(db_migration.MIGRATE_REPO_PATH, current_version)
     migration.db_sync(db_migration.MIGRATE_REPO_PATH, version)
Esempio n. 2
0
 def sync(self, version=None, current_version=None):
     """
     Place a database under migration control and upgrade/downgrade it,
     creating first if necessary.
     """
     if current_version is not None:
         migration.db_version_control(db_migration.MIGRATE_REPO_PATH,
                                      current_version)
     migration.db_sync(db_migration.MIGRATE_REPO_PATH, version)
Esempio n. 3
0
 def sync(self, version=None, current_version=None):
     """
     Place a database under migration control and upgrade/downgrade it,
     creating first if necessary.
     """
     if current_version not in (None, 'None'):
         migration.db_version_control(db_api.get_engine(),
                                      db_migration.MIGRATE_REPO_PATH,
                                      version=current_version)
     migration.db_sync(db_api.get_engine(),
                       db_migration.MIGRATE_REPO_PATH,
                       version,
                       sanity_check=self._need_sanity_check())
Esempio n. 4
0
 def sync(self, version=None, current_version=None):
     """
     Place a database under migration control and upgrade/downgrade it,
     creating first if necessary.
     """
     if current_version not in (None, 'None'):
         migration.db_version_control(db_api.get_engine(),
                                      db_migration.MIGRATE_REPO_PATH,
                                      version=current_version)
     migration.db_sync(db_api.get_engine(),
                       db_migration.MIGRATE_REPO_PATH,
                       version,
                       sanity_check=self._need_sanity_check())
Esempio n. 5
0
 def version_control(self, version=None):
     """Place a database under migration control"""
     migration.db_version_control(db_migration.MIGRATE_REPO_PATH, version)
Esempio n. 6
0
 def version_control(self, version=None):
     """Place a database under migration control"""
     migration.db_version_control(db_api.get_engine(),
                                  db_migration.MIGRATE_REPO_PATH, version)