Re: [Openstack] Adding a new column to a table.

2013-09-02 Thread Somanchi Trinath-B39208
, 2013 2:57 PM To: Peeyush Gupta Cc: openstack@lists.openstack.org Subject: Re: [Openstack] Adding a new column to a table. Hi Peeyush, My approach is to create a file with successive number in dir "\nova\db\sqlalchemy\migrate_repo\versions\" , and realize it according to my needs.

Re: [Openstack] Adding a new column to a table.

2013-09-02 Thread hzguanqi...@corp.netease.com
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: Hi, I have be

Re: [Openstack] Adding a new column to a table.

2013-09-02 Thread wu jiang
Hi Peeyush, My approach is to create a file with successive number in dir "\nova\db\sqlalchemy\migrate_repo\versions\" , and realize it according to my needs. And later, execute "nova-manage db sync", the new table will be available. Please take it as your reference~ On Mon, Sep 2, 2013 at 5:01

[Openstack] Adding a new column to a table.

2013-09-02 Thread Peeyush Gupta
Hi, 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 t