File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
app/src/org/gnucash/android/db Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -62,7 +62,10 @@ public DatabaseAdapter(Context context) {
62
62
mDbHelper = new DatabaseHelper (context );
63
63
mContext = context .getApplicationContext ();
64
64
open ();
65
- createTempView ();
65
+
66
+ if (mDb .getVersion () >= DatabaseSchema .SPLITS_DB_VERSION ) {
67
+ createTempView ();
68
+ }
66
69
}
67
70
68
71
/**
@@ -74,7 +77,10 @@ public DatabaseAdapter(SQLiteDatabase db) {
74
77
this .mContext = GnuCashApplication .getAppContext ();
75
78
if (!db .isOpen () || db .isReadOnly ())
76
79
throw new IllegalArgumentException ("Database not open or is read-only. Require writeable database" );
77
- createTempView ();
80
+
81
+ if (mDb .getVersion () >= DatabaseSchema .SPLITS_DB_VERSION ) {
82
+ createTempView ();
83
+ }
78
84
}
79
85
80
86
private void createTempView () {
You can’t perform that action at this time.
0 commit comments