]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
Add devref for alembic milestone tagging
authorHenry Gessau <gessau@cisco.com>
Tue, 29 Sep 2015 16:15:06 +0000 (12:15 -0400)
committerHenry Gessau <gessau@cisco.com>
Wed, 30 Sep 2015 03:25:49 +0000 (23:25 -0400)
Related-Bug: #1499033

Change-Id: Iff58622c56be2c64cfb5659d20c4eae2f45a318c

doc/source/devref/alembic_migrations.rst

index 3d37199be4a62fcf04059fd9aefe039714ee85f7..65dd63bc332930c01106a5eda43f3143576c3de0 100644 (file)
@@ -317,3 +317,20 @@ and then applying all available rules::
 
 It will apply all the rules from both the expand and the contract branches, in
 proper order.
+
+
+Tagging milestone revisions
+~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+When named release (liberty, mitaka, etc.) is done for neutron or a
+sub-project, the alembic revision scripts at the head of each branch for that
+release must be tagged. This is referred to as a milestone revision tag.
+
+For example, `here <https://review.openstack.org/228272>`_ is a patch that tags
+the liberty milestone revisions for the neutron-fwaas sub-project. Note that
+each branch (expand and contract) is tagged.
+
+Tagging milestones allows neutron-db-manage to upgrade the schema to a
+milestone release, e.g.::
+
+ neutron-db-manage upgrade liberty