Remind people to use postgresql-migrate-db.sh when migrating data

The "Upgrading from Nova to Placement" doc mentions the
postgresql-migrate-db.sh script but within a big wall of
text and the rest of the examples in the guide are using
mysql, so people might miss the postgresql script which
could result in errors later if their sequence ids are
wrong.

This adds a note to serve as a reminder.

Change-Id: Id93531cc2d440b1adde1c0bd7c504f737b14012c
Story: #2005478
Task: #30568
This commit is contained in:
Matt Riedemann 2019-04-18 15:12:07 -04:00
parent d921ad4bc8
commit ae9bdbaa35
1 changed files with 6 additions and 0 deletions

View File

@ -120,6 +120,11 @@ Initial Steps
* Create the configuration file.
.. note:: The examples in this guide are using MySQL but if you are using
PostgreSQL it is recommended to use the
`postgresql-migrate-db.sh`_ script since it handles sequences.
See `bug 2005478`_ for details.
.. code-block:: console
$ mysql-migrate-db.sh --mkconfig /tmp/migrate-db.rc
@ -190,3 +195,4 @@ Finalize the Upgrade
.. _alembic: https://alembic.sqlalchemy.org/en/latest/
.. _release notes: https://docs.openstack.org/releasenotes/placement/stein.html
.. _osc-placement: https://docs.openstack.org/osc-placement/latest/
.. _bug 2005478: https://storyboard.openstack.org/#!/story/2005478