Update the alembic migration section in the developer FAQ
After we've introduced a migration that relies on CONF option
in commit 1514b2a2f6
, following the instruction steps will lead
to an ImportError. Change direct usage of the alembic command to
calling ironic-dbsync from the virtualenv.
Change-Id: I28e51e45c4e5cdb223795dbb4d720d233cd57808
This commit is contained in:
parent
6ef7e23aa3
commit
42c7c489f2
@ -18,14 +18,15 @@ How do I...
|
||||
...create a migration script template?
|
||||
--------------------------------------
|
||||
|
||||
Using the ``alembic revision`` command, e.g::
|
||||
Using the ``ironic-dbsync revision`` command, e.g::
|
||||
|
||||
$ cd ironic/ironic/db/sqlalchemy
|
||||
$ alembic revision -m "create foo table"
|
||||
$ cd ironic
|
||||
$ tox -evenv -- ironic-dbsync revision -m \"create foo table\"
|
||||
|
||||
For more information see the `alembic documentation`_.
|
||||
It will create an empty alembic migration. For more information see the
|
||||
`alembic documentation`_.
|
||||
|
||||
.. _`alembic documentation`: https://alembic.readthedocs.org/en/latest/tutorial.html#create-a-migration-script
|
||||
.. _`alembic documentation`: http://alembic.zzzcomputing.com/en/latest/tutorial.html#create-a-migration-script
|
||||
|
||||
...know if a release note is needed for my change?
|
||||
--------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user