[Openstack] Adding a new column to a table.

wu jiang wingwj at gmail.com
Mon Sep 2 09:27:29 UTC 2013


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 PM, Peeyush Gupta <gpeeyush at ymail.com> wrote:

>
> 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 to add the column?
>
> P.S: I am using devstack on Ubuntu 12.04 LTS
>
> Thanks,
>
> ~Peeyush Gupta
>
>
>
> _______________________________________________
> Mailing list:
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
> Post to     : openstack at lists.openstack.org
> Unsubscribe :
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20130902/73cf9d04/attachment.html>


More information about the Openstack mailing list