How to I set and Get correct DBVersion in SQL Browser and my application.
From the sample code below, I get result as 1 meanwhile, in building the database, I set user version as 15. Screenshot below
What am i doing wrong. Also included example project
From the sample code below, I get result as 1 meanwhile, in building the database, I set user version as 15. Screenshot below
What am i doing wrong. Also included example project
B4X:
If File.Exists(File.DirInternal,"db.db") = False Then
File.Copy(File.DirAssets,"db.db",File.DirInternal,"db.db")
Log("DB Copied")
End If
sql.Initialize(File.DirInternal,"db.db",True)
Log(DBUtils.GetDBVersion(sql))