<div dir="ltr"><br><div class="gmail_extra"><div class="gmail_quote">On Fri, Jul 12, 2013 at 3:19 PM, Monty Taylor <span dir="ltr"><<a href="mailto:mordred@inaugust.com" target="_blank">mordred@inaugust.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div class=""><div class="h5"><br>
<br>
On 07/11/2013 01:12 PM, Dolph Mathews wrote:<br>
> Just as a general statement, outside the scope of openstack, I don't<br>
> think sqlite is intended to support schema evolution. From the sqlite<br>
> docs [1]: "SQLite supports a limited subset of ALTER TABLE. [...] It is<br>
> not possible to rename a column, remove a column, or add or remove<br>
> constraints from a table."<br>
><br>
> We've been through hell trying to support migrations on sqlite, because<br>
> we test against sqlite, and because we test our migrations... on sqlite.<br>
> So, we've already shot ourselves in the foot. We're clearly moving<br>
> towards gating against mysql + postgresql, so in the mean time, let's<br>
> limit the amount of effort we put into further support sqlite migrations<br>
> until we can safely rip it out altogether.<br>
><br>
> [1]: <a href="http://www.sqlite.org/lang_altertable.html" target="_blank">http://www.sqlite.org/lang_altertable.html</a><br>
<br>
</div></div>I agree. The reason to use sqlite in unitests and stuff is because it's<br>
easy and doesn't require users and system things and everything. If<br>
we're spending extra effort to maintain the simple thing, then it's<br>
probably not a simple thing.<br></blockquote><div><br></div><div>I agree that it's easy for unit & functional testing. It's a simple solution and works fairly well, although I know we'd catch more issues if we ran our functional tests against a database that supported static typing, real booleans, etc.</div>
<div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<br>
As an aside, (ignore the fact that I'm a former Drizzle core dev) it<br>
might be worthwhile taking 30 minutes one day and exploring a drizzle<br>
database test fixture. One of the things we did in drizzle was make it<br>
not need any bootstrapping and to work sanely with no config files ...<br>
so launching a drizzle on a spare port, running database tests against<br>
it and then deleting it should actually be super simple - and at the<br>
worst no harder than doing what glance does in their functional tests.<br></blockquote><div><br></div><div>That sounds like an viable improvement over sqlite in general... unfortunately, the drizzle site appears to be unmaintained? (at least at the moment) The documentation link [1] from here [2] returns a 404, and these docs [3] return a 403. Launchpad bug activity [4] doesn't seem particularly active either :-/</div>
<div><br></div>[1] <a href="http://docs.drizzle.org/">http://docs.drizzle.org/</a></div><div class="gmail_quote"><div>[2] <a href="http://www.drizzle.org/content/documentation">http://www.drizzle.org/content/documentation</a></div>
[3] <a href="https://drizzle.readthedocs.org/en/latest/">https://drizzle.readthedocs.org/en/latest/</a><div>[4] <a href="https://bugs.launchpad.net/drizzle/+bugs?orderby=-date_last_updated&search=Search&field.status%3Alist=FIXCOMMITTED&field.status%3Alist=FIXRELEASED">https://bugs.launchpad.net/drizzle/+bugs?orderby=-date_last_updated&search=Search&field.status%3Alist=FIXCOMMITTED&field.status%3Alist=FIXRELEASED</a></div>
<div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<br>
<br>
_______________________________________________<br>
OpenStack-dev mailing list<br>
<a href="mailto:OpenStack-dev@lists.openstack.org">OpenStack-dev@lists.openstack.org</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>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div><br></div>-Dolph
</div></div>