Fix DB to version 18
This commit is contained in:
parent
a22fa8660b
commit
cbbed8933e
|
@ -1477,7 +1477,7 @@ public class PodDBAdapter {
|
||||||
*/
|
*/
|
||||||
private static class PodDBHelper extends SQLiteOpenHelper {
|
private static class PodDBHelper extends SQLiteOpenHelper {
|
||||||
|
|
||||||
private final static int VERSION = 17;
|
private final static int VERSION = 18;
|
||||||
|
|
||||||
private Context context;
|
private Context context;
|
||||||
|
|
||||||
|
@ -1698,6 +1698,10 @@ public class PodDBAdapter {
|
||||||
Log.d("Migration", "SQL: " + sql);
|
Log.d("Migration", "SQL: " + sql);
|
||||||
db.execSQL(sql);
|
db.execSQL(sql);
|
||||||
}
|
}
|
||||||
|
if(oldVersion <= 17) {
|
||||||
|
db.execSQL("ALTER TABLE " + PodDBAdapter.TABLE_NAME_FEEDS
|
||||||
|
+ " ADD COLUMN " + PodDBAdapter.KEY_AUTO_DELETE_ACTION + " INTEGER DEFAULT 0");
|
||||||
|
}
|
||||||
EventBus.getDefault().post(ProgressEvent.end());
|
EventBus.getDefault().post(ProgressEvent.end());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue