Lines Matching refs:version
24 * A helper class to manage database creation and version management.
51 * @param version number of the database (starting at 1); if the database is older,
54 public SQLiteOpenHelper(Context context, String name, CursorFactory factory, int version) {
55 if (version < 1) throw new IllegalArgumentException("Version must be >= 1, was " + version);
60 mNewVersion = version;
101 int version = db.getVersion();
102 if (version != mNewVersion) {
105 if (version == 0) {
108 onUpgrade(db, version, mNewVersion);
170 throw new SQLiteException("Can't upgrade read-only database from version " +
207 * needs to upgrade to the new schema version.
216 * @param oldVersion The old database version.
217 * @param newVersion The new database version.