Make gerrit DB setup match actual practice.

sudo su - mysql is the actual mechanism used by -infra folk.

Change-Id: I209f0e9e2cb3f4dd7ad012f39b6e6551c05c5e0e
This commit is contained in:
Robert Collins 2013-09-04 14:18:18 +12:00 committed by Monty Taylor
parent 020254f570
commit 1ba7d02a0e

View File

@ -52,7 +52,8 @@ Add "Approved" review type to gerrit:
.. code-block:: mysql
mysql -u root -p
sudo -u root
mysql
use reviewdb;
insert into approval_categories values ('Approved', 'A', 2, 'MaxNoBlock', 'N', 'APRV');
insert into approval_category_values values ('No score', 'APRV', 0);
@ -63,7 +64,8 @@ Expand "Verified" review type to -2/+2:
.. code-block:: mysql
mysql -u root -p
sudo -u root
mysql
use reviewdb;
update approval_category_values set value=2
where value=1 and category_id='VRIF';
@ -78,7 +80,8 @@ we're not happy with people for submitting the patch in the first place:
.. code-block:: mysql
mysql -u root -p
sudo -u root
mysql
use reviewdb;
update approval_category_values set name="Do not merge"
where category_id='CRVW' and value=-2;
@ -90,6 +93,9 @@ Add information about the CLA:
.. code-block:: mysql
sudo -u root
mysql
use reviewdb;
insert into contributor_agreements values (
'Y', 'Y', 'Y', 'ICLA',
'OpenStack Individual Contributor License Agreement',