[Android] MediaDatabase: add incremental upgrades
Geoffrey Métais
geoffrey.metais at gmail.com
Thu Dec 11 11:12:29 CET 2014
On Mon, Dec 8, 2014 at 9:41 AM, Edward Wang <git at videolan.org> wrote:
> dropMediaTableQuery(db);
> createMediaTableQuery(db);
> }
> + // Upgrade incrementally from oldVersion to newVersion
> + for(int i = oldVersion+1; i <= newVersion; i++) {
>
Isn't the database dropped and recreated anyway before the loop?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/android/attachments/20141211/ca656d2c/attachment.html>
More information about the Android
mailing list