Fix DB to version 18

This commit is contained in:
Udi Finkelstein 2015-07-09 01:50:27 +03:00
parent a22fa8660b
commit cbbed8933e
1 changed files with 5 additions and 1 deletions

View File

@ -1477,7 +1477,7 @@ public class PodDBAdapter {
*/
private static class PodDBHelper extends SQLiteOpenHelper {
private final static int VERSION = 17;
private final static int VERSION = 18;
private Context context;
@ -1698,6 +1698,10 @@ public class PodDBAdapter {
Log.d("Migration", "SQL: " + 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());
}
}