Bugfix: Reset Review App Database before Restoring (#12570)

This commit is contained in:
Adalberto Vazquez 2024-07-01 16:34:32 -06:00 коммит произвёл GitHub
Родитель 9109203c39
Коммит 5f601bdff2
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: B5690EEEBB952194
1 изменённых файлов: 4 добавлений и 0 удалений

Просмотреть файл

@ -64,6 +64,10 @@ def main(ctx, review_app_name):
execute_command(ctx, f"heroku pg:backups:capture -a {review_app_name}")
log_step_completed("Review App DB backup")
log_step("Reset Review App DB")
execute_command(ctx, f"heroku pg:reset -a '{review_app_name}' --confirm '{review_app_name}'")
log_step_completed("Review App DB has been reset")
log_step("Restoring the latest Staging backup to Review App")
backup_staging_url = execute_command(ctx, f"heroku pg:backups:url -a {STAGING_APP}")
execute_command(