From 0991ec62be75c3067780d2890284bd973eea5618 Mon Sep 17 00:00:00 2001 From: Jeremy Stanley Date: Thu, 24 Jun 2021 17:01:43 +0000 Subject: [PATCH] Stop updating Gerrit RDBMS for repo renames The version of Gerrit we're running no longer keeps account and project details in an SQL database, so drop the tasks from our rename playbook related to this. Change-Id: I4b11b627a1285617496ca7b53f9b7e3f8251630c --- playbooks/rename_repos.yaml | 8 -------- 1 file changed, 8 deletions(-) diff --git a/playbooks/rename_repos.yaml b/playbooks/rename_repos.yaml index 17ad633fa0..66e5c8e740 100644 --- a/playbooks/rename_repos.yaml +++ b/playbooks/rename_repos.yaml @@ -10,14 +10,6 @@ cmd: docker-compose down chdir: /etc/gerrit-compose/ - - name: Update account_project_watches in gerrit database - shell: echo 'update account_project_watches set project_name = "{{ item.new }}" where project_name = "{{ item.old }}";' | mysql --defaults-file=/root/.gerrit_db.cnf reviewdb - with_items: "{{ repos }}" - - - name: Update changes in gerrit database - shell: echo 'update changes set dest_project_name = "{{ item.new }}", created_on = created_on where dest_project_name = "{{ item.old }}";' | mysql --defaults-file=/root/.gerrit_db.cnf reviewdb - with_items: "{{ repos }}" - - name: Make organization dir file: state: directory