<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">It's probably the best approach that doesn't depend on the Django ORM (like South).  Does anyone use the "experimental" command line migrate to generate the migrate script?  I always did it by hand.<div><a href="http://packages.python.org/sqlalchemy-migrate/">http://packages.python.org/sqlalchemy-migrate/</a><br><div><br></div><div>On the dev side, one of the big headaches in nova migrate_repo has been that the file numbering by hand meant that competing feature teams that needed to incorporate a schema change had to keep bumping the number every time a new version file got committed.  We talked about relaxing migrate_repo numbering rules so that you could create a 999_my_pending_change.py file that didn't break the version numbering adjacency checks.  I don't know if that happened.  Otherwise, every time a new file arrived in trunk, we all had to manually renumber our development files from 055_x to 056_x...  Not a big deal, but annoying when you pushed a branch up for review, then it broke because something else arrived in the same number slot.</div><div><br></div><div>On the deploy side, complicated table transforms don't always map well to all database backends and I don't think here is any unit testing with populated fixtures for data upgrade/downgrade. Don't know if this has been an issue in real deployments, but the opportunity for sysadmin excellence is certainly there....</div><div><br></div><div>Brian </div><div><br></div><div><div><div apple-content-edited="true">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>-------------------------------------------------</div><div>Brian Schott, CTO</div><div>Nimbis Services, Inc.</div><div>brian.schott@nimbisservices.com</div><div>ph: 443-274-6064  fx: 443-274-6060</div><div><br></div></div></span><br class="Apple-interchange-newline"></div><br class="Apple-interchange-newline"></div><br class="Apple-interchange-newline"></div><br class="Apple-interchange-newline"><br class="Apple-interchange-newline">
</div>
<br><div><div>On Oct 25, 2011, at 5:45 PM, Ziad Sawalha wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">

<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">

<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
<div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px; ">
Our schema right now is auto generated from the model using sqlalchemy. Whenever we change the model, the generated schema is different for new installations but this does not address existing deployments.</div>
<div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px; ">
<br>
</div>
<div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px; ">
Looking for feedback on how to handle this better:</div>
<div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px; ">
anotherjesses offered: <span class="Apple-style-span" style="color: rgb(20, 20, 20); line-height: 14px; font-size: medium; font-family: 'Lucida Grande'; "><a href="https://github.com/openstack/nova/tree/master/nova/db/sqlalchemy/migrate_repo" title="https://github.com/openstack/nova/tree/master/nova/db/sqlalchemy/migrate_repo" style="word-wrap: break-word; text-rendering: optimizelegibility; color: rgb(0, 51, 204); text-decoration: underline; ">https://github.com/openstack/nova/tree/master/nova/db/sqlalchemy/migrate_repo</a></span></div>
<div><span class="Apple-style-span" style="font-size: 14px; font-family: Calibri, sans-serif; "><br>
</span></div>
<div><span class="Apple-style-span" style="font-size: 14px; font-family: Calibri, sans-serif; ">Questions:</span></div>
<div><span class="Apple-style-span" style="font-size: 14px; font-family: Calibri, sans-serif; ">- Has anyone used this on the dev side?</span></div>
<div><span class="Apple-style-span" style="font-size: 14px; font-family: Calibri, sans-serif; ">- Has anyone used this on the deployment/ops side?</span></div>
<div><span class="Apple-style-span" style="font-size: 14px; font-family: Calibri, sans-serif; "><br>
</span></div>
<div><span class="Apple-style-span" style="font-size: 14px; font-family: Calibri, sans-serif; ">Would love to hear from you how you started it (we have multiple versions of our schema out there, so where do we start) and what was the experience updating versions.</span></div>
<div><span class="Apple-style-span" style="font-size: 14px; font-family: Calibri, sans-serif; "><br>
</span></div>
<div><span class="Apple-style-span" style="font-size: 14px; font-family: Calibri, sans-serif; ">Regards,</span></div>
<div><span class="Apple-style-span" style="font-size: 14px; font-family: Calibri, sans-serif; "><br>
</span></div>
<div><font class="Apple-style-span" face="Calibri,sans-serif">Ziad</font></div>
</div>

_______________________________________________<br>Mailing list: https://launchpad.net/~openstack<br>Post to     : openstack@lists.launchpad.net<br>Unsubscribe : https://launchpad.net/~openstack<br>More help   : https://help.launchpad.net/ListHelp<br></blockquote></div><br></div></div></div></body></html>