Hi
can you tell me that is the best way to open the database Please
I use this code to open my database
but when I upgrade the app and new database then I am still on the old database and if I change field I get error so I need to uninstall the app and install
that is the best way to open the database
Regards
Sigster
can you tell me that is the best way to open the database Please
I use this code to open my database
but when I upgrade the app and new database then I am still on the old database and if I change field I get error so I need to uninstall the app and install
that is the best way to open the database
B4X:
If File.Exists(File.DirDefaultExternal, "database.db") = False Then
File.Copy(File.DirAssets, "database.db", File.DirDefaultExternal,"database.db")
End If
If FirstTime Then
SQL.Initialize(File.DirDefaultExternal, "database.db", True)
End If
End If
Regards
Sigster