I have had two adapters :
public class DBController_for_drivinglicense extends SQLiteOpenHelper {
public DBController_for_drivinglicense(Context applicationcontext) {
super(applicationcontext,"nozadb", null, 1);
}
//Creates Table
@Override
public void onCreate(SQLiteDatabase database) {
String query;
query = "CREATE TABLE if not exists drivinglicense ( id INTEGER PRIMARY KEY, comment TEXT,rates float,names TEXT,date DEFAULT CURRENT_TIMESTAMP, udpateStatus TEXT)";
database.execSQL(query);
}
first adapter was :
public DBController_for_landregistration(Context applicationcontext) {
super(applicationcontext,"nozadb", null, 1);
}
@Override
public void onCreate(SQLiteDatabase database) {
String query;
query = "CREATE TABLE if not exists landregistration ( id INTEGER PRIMARY KEY, comment TEXT,rates float,names TEXT,date DEFAULT CURRENT_TIMESTAMP, udpateStatus TEXT)";
database.execSQL(query);
}
And when i changed the second one to :
public class DBController_for_drivinglicense extends SQLiteOpenHelper {
public DBController_for_drivinglicense(Context applicationcontext) {
super(applicationcontext,"nozadb", null, 2);
}
//Creates Table
@Override
public void onCreate(SQLiteDatabase database) {
String query;
query = "CREATE TABLE if not exists drivinglicense ( id INTEGER PRIMARY KEY, comment TEXT,rates float,names TEXT,date DEFAULT CURRENT_TIMESTAMP, udpateStatus TEXT)";
database.execSQL(query);
}