create the favorites table on upgrade
This commit is contained in:
parent
a6ddb1319c
commit
8cd6446913
|
@ -1,8 +1,8 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
package="de.danoeh.antennapod"
|
||||
android:versionCode="1040000"
|
||||
android:versionName="1.4.0.0">
|
||||
android:versionCode="1040001"
|
||||
android:versionName="1.4.0.1">
|
||||
<!--
|
||||
Version code schema:
|
||||
"1.2.3-SNAPSHOT" -> 1020300
|
||||
|
|
|
@ -1424,7 +1424,7 @@ public class PodDBAdapter implements AutoCloseable {
|
|||
*/
|
||||
private static class PodDBHelper extends SQLiteOpenHelper {
|
||||
|
||||
private final static int VERSION = 1040000;
|
||||
private final static int VERSION = 1040001;
|
||||
|
||||
private Context context;
|
||||
|
||||
|
@ -1655,6 +1655,9 @@ public class PodDBAdapter implements AutoCloseable {
|
|||
"(read=1 OR id IN (SELECT feeditem FROM FeedMedia WHERE position>0 OR downloaded=1)) " +
|
||||
"AND id NOT IN (SELECT feeditem FROM Queue)");
|
||||
}
|
||||
if(oldVersion < 1040001) {
|
||||
db.execSQL(CREATE_TABLE_FAVORITES);
|
||||
}
|
||||
EventBus.getDefault().post(ProgressEvent.end());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue