<div dir="ltr">Hi Deepak,<div><br></div><div>Your steps look good for e except #3.1 - add unit-tests for new migrations<br><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature">Regards,<br>Ivan Kolodyazhny<br></div></div>
<br><div class="gmail_quote">On Mon, Apr 13, 2015 at 8:20 PM, Deepak Shetty <span dir="ltr"><<a href="mailto:dpkshetty@gmail.com" target="_blank">dpkshetty@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div><div><div><div><div>Hi Stackers,<br> As part of my WIP work for implementing <a href="https://blueprints.launchpad.net/nova/+spec/volume-snapshot-improvements" target="_blank">https://blueprints.launchpad.net/nova/+spec/volume-snapshot-improvements</a> I am required to add a new table to cinder (snapshot_admin_metadata) and I was looking for some inputs on whats are the steps to add a new table to existing DB<br><br></div>From what I know:<br><br></div>1) Create a new migration script at cinder/db/sqlalchemy/migrate_repo/versions<br><br></div>2) Implement the upgrade and downgrade methods<br><br></div>3) Create your model inside cinder/db/sqlalchemy/models.py<br><br></div>4) Sync DB using cinder-manage db sync<br><br></div>Are these steps correct ?<br><br></div>thanx,<br></div>deepak<br></div>
<br>__________________________________________________________________________<br>
OpenStack Development Mailing List (not for usage questions)<br>
Unsubscribe: <a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" target="_blank">OpenStack-dev-request@lists.openstack.org?subject:unsubscribe</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
<br></blockquote></div><br></div></div></div>