[Android] [PATCH] Use MRLs and libvlc_media_new_location everywhere

XilasZ xilasz at gmail.com
Wed Mar 21 21:18:53 CET 2012


> > anyway, that's why SQLiteOpenHelper requires a db version, and an
> > implementation of "onUpgrade(SQLiteDatabase db, int oldVersion, int
> > newVersion)".
> >
> > I'll take a look to update the DB without losing anything :)
>
> Can't we just trash it?
>

The only thing that changed in the DB is a column name (from "path" to
"location").
To safely upgrade the DB and keep the date, the only option is to rename
the table, create the new one, copy data, and remove the old table (sqllite
doesn't allow column renaming).

I think it's too much effort for almost nothing, we should just keep the
old name.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/android/attachments/20120321/58e1fe83/attachment.html>


More information about the Android mailing list