You should use neutron-db-manage --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/plugins/ml2/ml2_conf.ini revision -m "Just For Test"" --autogenerate. Make changes in db models and then run this command - migration will be generated automatically.
On Mon, Oct 12, 2015 at 7:02 AM, Zhi Chang <[email protected]> wrote: > Thanks for your reply. What should I do if I want to create a new > migration script? > > Thanks > Zhi Chang > > > ------------------ Original ------------------ > *From: * "Vikram Choudhary"<[email protected]>; > *Date: * Mon, Oct 12, 2015 12:22 PM > *To: * "OpenStack Development Mailing List (not for usage questions)"< > [email protected]>; > *Subject: * Re: [openstack-dev] [Neutron][db]Neutron db revision fails > > > Hi Zhi, > > We already have a defect logged for this issue. > > https://bugs.launchpad.net/neutron/+bug/1503342 > > Thanks > Vikram > On Oct 12, 2015 8:10 AM, "Zhi Chang" <[email protected]> wrote: > >> Hi, everyone. >> I install a devstack from the latest code. But there is an error when >> I create a db migration script. My migration shell is: >> "neutron-db-manage --config-file /etc/neutron/neutron.conf >> --config-file /etc/neutron/plugins/ml2/ml2_conf.ini revision -m "Just For >> Test"" >> The error shows: >> Running revision for neutron ... >> FAILED: Multiple heads are present; please specify the head >> revision on which the new revision should be based, or perform a merge. >> >> Does my method wrong? Could someone helps me? >> >> Thx >> Zhi Chang >> >> __________________________________________________________________________ >> OpenStack Development Mailing List (not for usage questions) >> Unsubscribe: >> [email protected]?subject:unsubscribe >> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev >> >> > __________________________________________________________________________ > OpenStack Development Mailing List (not for usage questions) > Unsubscribe: [email protected]?subject:unsubscribe > http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev > > -- Regards, Ann Kamyshnikova Mirantis, Inc
__________________________________________________________________________ OpenStack Development Mailing List (not for usage questions) Unsubscribe: [email protected]?subject:unsubscribe http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
