示例#1
0
文件: db.py 项目: andreykurilin/rally
 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")
示例#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")
示例#3
0
 def upgrade(self):
     """Upgrade Rally database to the latest state."""
     with output_migration_result("upgrade"):
         db.schema_upgrade()
示例#4
0
 def db_sync(self, engine):
     db.schema_upgrade()
示例#5
0
 def db_sync(self, engine):
     db.schema_upgrade()
示例#6
0
文件: manage.py 项目: amit0701/rally
 def upgrade(self):
     """Upgrade Rally database to the latest state."""
     db.schema_upgrade()
示例#7
0
 def upgrade(self):
     """Upgrade Rally database to the latest state."""
     db.schema_upgrade()