From ae0c06c1a8e5b6bc94544e875af810d2c62b2c3b Mon Sep 17 00:00:00 2001 From: Jeremy Stanley Date: Thu, 5 Sep 2013 01:36:43 +0000 Subject: [PATCH] Preserve change creation time on project renames * doc/source/gerrit.rst: When renaming projects in the changes table, set created_on to itself so that it won't get updated to the current time. This column is a timestamp datatype in MySQL and has the "on update" property set, probably for no good reason but it's how Gerrit's installer sets the schema. Change-Id: I5b99d2869e55ab0f8b036fd08f248f406aff41bb --- doc/source/gerrit.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/source/gerrit.rst b/doc/source/gerrit.rst index b9e57a72cc..9e37f3f55c 100644 --- a/doc/source/gerrit.rst +++ b/doc/source/gerrit.rst @@ -318,7 +318,7 @@ To rename a project: where project_name = "openstack/OLD"; update changes - set dest_project_name = "openstack/NEW" + set dest_project_name = "openstack/NEW", created_on = created_on where dest_project_name = "openstack/OLD"; #. Move both the git repository and the mirror on