[SailfishDevel] Getting odd error when attempting to use LocalStorage.changeVersion
Sylvain B.
sthocs at hotmail.com
Sun Feb 16 17:59:23 UTC 2014
Oh I did not. Ok that's great, it's a shame that it's not documented!
Thanks!
> Date: Sun, 16 Feb 2014 18:28:06 +0100
> From: rob at hoelz.ro
> To: devel at lists.sailfishos.org
> CC: sthocs at hotmail.com
> Subject: Re: [SailfishDevel] Getting odd error when attempting to use LocalStorage.changeVersion
>
> On Sun, 16 Feb 2014 17:13:11 +0000
> Sylvain B. <sthocs at hotmail.com> wrote:
>
> > Thanks for the report on qt-project, I just faced this exact same
> > issue this afternoon (my app is not released yet but I already wanted
> > to see if a DB update will be possible). It's a shame not to be able
> > to open the DB without specifying the version :/
> >
> > Waiting for improvements on QML LocalStorage API, I've found out via
> > StackOverflow the "table_info" SQLite Pragma statement:
> > http://www.sqlite.org/pragma.html#pragma_table_info With that, you
> > can either look at the number of columns of your table, or iterate
> > through the rows returned to see if your new column name already
> > exists or not.
> >
>
> Did you see the solution I posted on qt-project?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.sailfishos.org/pipermail/devel/attachments/20140216/708cf405/attachment.html>
More information about the Devel
mailing list