[Openstack] Adding a new column to a table.

hzguanqiang at corp.netease.com hzguanqiang at corp.netease.com
Mon Sep 2 09:42:51 UTC 2013

Hi Peeyush,
You need to add a db migration file in  nova/virt/baremetal/db/sqlalchemy/migrate_repo/versions/, named with a number prefix bigger than the existing files.
After then, You need to execute the command "nova-manage db sync".

On 2013-09-02 17:01 , Peeyush Gupta wrote:


I have been trying to add a new column to compute_nodes table.
I understand the table is defined at db.sqlalchemy.models.py. So,
I added a new field in the file and restarted the nova-compute process.
But, there is no change in the table. What am I doing wrong? Where 
should I make changes to add the column?

P.S: I am using devstack on Ubuntu 12.04 LTS


~Peeyush Gupta

Best regards!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20130902/89784f3c/attachment.html>

More information about the Openstack mailing list