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
This commit is contained in:
Jeremy Stanley 2021-06-24 17:01:43 +00:00
parent 73ce0a7d7b
commit 0991ec62be

View File

@ -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