Practical Apps commented on issue #4 at Practical Apps / HAMtrainer

Practical Apps
2021-02-13T00:12:49Z

@djpohly I just pushed the new update v1.0.5 and I opted for the latter of the two options I gave in my last reply. Turns out SQLiteOpenHelper has a built-in onUpgrade feature. All that has to be done is increment the database version number in an update and the function gets triggered. Any major additions/changes to the SQL database in the future will get their own file and onUpgrade will apply the edits your local copy. This was actually very easy but the Repository class was a jumbled mess. It took quite a bit of re-organizing just to figure out what was going on. I hadn't addressed that until now because dropping in the new SQL data was just too easy, thanks for giving me a reason to finally figure it out. There shouldn't be any noticeable changes for you with this update but if you see that anything has broken after please make a new issue, I'll be closing this one.