26 lines
540 B
Java
26 lines
540 B
Java
package com.eveningoutpost.dexdrip.Models;
|
|
|
|
import com.activeandroid.Model;
|
|
import com.activeandroid.util.SQLiteUtils;
|
|
|
|
/**
|
|
* Created by jamorham on 01/02/2017.
|
|
*/
|
|
|
|
public class PlusModel extends Model {
|
|
|
|
protected synchronized static boolean fixUpTable(String[] schema, boolean patched) {
|
|
if (patched) return true;
|
|
|
|
for (String patch : schema) {
|
|
try {
|
|
SQLiteUtils.execSql(patch);
|
|
} catch (Exception e) {
|
|
//
|
|
}
|
|
}
|
|
return true;
|
|
}
|
|
|
|
}
|