Exemplo n.º 1
0
 def upgrade(self, api):
     """Upgrade Rally database to the latest state."""
     print("Upgrading...")
     start_revision = db.schema_revision()
     db.schema_upgrade()
     current_revision = db.schema_revision()
     if start_revision != current_revision:
         print("Database schema upgraded successfully "
               "from {start} to {end} revision."
               .format(start=start_revision, end=current_revision))
     else:
         print("Database is already up to date")
Exemplo n.º 2
0
 def upgrade(self, api):
     """Upgrade Rally database to the latest state."""
     print("Upgrading...")
     start_revision = db.schema_revision()
     db.schema_upgrade()
     current_revision = db.schema_revision()
     if start_revision != current_revision:
         print("Database schema upgraded successfully "
               "from {start} to {end} revision.".format(
                   start=start_revision, end=current_revision))
     else:
         print("Database is already up to date")
Exemplo n.º 3
0
 def upgrade(self):
     """Upgrade Rally database to the latest state."""
     with output_migration_result("upgrade"):
         db.schema_upgrade()
Exemplo n.º 4
0
 def db_sync(self, engine):
     db.schema_upgrade()
Exemplo n.º 5
0
 def db_sync(self, engine):
     db.schema_upgrade()
Exemplo n.º 6
0
 def upgrade(self):
     """Upgrade Rally database to the latest state."""
     db.schema_upgrade()
Exemplo n.º 7
0
 def upgrade(self):
     """Upgrade Rally database to the latest state."""
     db.schema_upgrade()