'feeditem' is the id of the FeedItem
SQL statement previously used 'id' which was actually the id of the FeedMedia item and not the FeedItem
This commit is contained in:
parent
86f4d244d8
commit
008347313f
|
@ -1711,7 +1711,7 @@ public class PodDBAdapter {
|
|||
}
|
||||
if(oldVersion < 1030002) {
|
||||
db.execSQL("UPDATE FeedItems SET auto_download=0 WHERE " +
|
||||
"(read=1 OR id IN (SELECT id FROM FeedMedia WHERE position>0 OR downloaded=1)) " +
|
||||
"(read=1 OR id IN (SELECT feeditem FROM FeedMedia WHERE position>0 OR downloaded=1)) " +
|
||||
"AND id NOT IN (SELECT feeditem FROM Queue)");
|
||||
}
|
||||
EventBus.getDefault().post(ProgressEvent.end());
|
||||
|
|
Loading…
Reference in New Issue