php.ini_replace_vars()
def upgrade(self, d, version, options):
result = d.fetch("wp-admin/upgrade.php?step=1")
- if "Upgrade Complete" not in result and "No Upgrade Required" not in result:
+ if "Upgrade Complete" not in result and "Update Complete" not in result and \
+ "No Upgrade Required" not in result and "No Update Required" not in result:
raise app.UpgradeFailure(result)
+ @app.throws_database_errors
def backup(self, deployment, backup_dir, options):
- app.backup_database(backup_dir, deployment)
+ sql.backup(backup_dir, deployment)
+ @app.throws_database_errors
def restore(self, deployment, backup_dir, options):
- app.restore_database(backup_dir, deployment)
+ sql.restore(backup_dir, deployment)
+ @app.throws_database_errors
def remove(self, deployment, options):
- app.remove_database(deployment)
+ sql.drop(deployment.dsn)
Application.resolutions = {
'wp-config.php': [