[openstack-dev] [Neutron][db][migration] Neutron db migration by python scripts
Ihar Hrachyshka
ihrachys at redhat.com
Tue Nov 3 12:33:12 UTC 2015
Zhi Chang <changzhi at unitedstack.com> wrote:
> Hi, all
> Now, I should make some database model definitions if I want to upgrade db. And a database migration script will generated when I run "neutron-db-manage revision -m "description of revision" --autogenerate". The database will upgraded when run "neutron-db-manage upgrade head".
> I want to upgrade db and I plan to write db migration scripts manually instead of change database model definitions. Is there some ways to realize it?
I would start by asking *why* you may want to go with manual instead of
automatic generation. It’s so much easier to do it automatic way, and you
won’t be bothered by classifying operations into corresponding branches.
Ihar
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 455 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20151103/a3eb2dee/attachment.pgp>
More information about the OpenStack-dev
mailing list