foldynl / QLog

Amateur radio logbook software
GNU General Public License v3.0
109 stars 15 forks source link

Global profile lost upon addition of ITU and CQ region in 0.35 dev branch #361

Closed rsaue closed 1 month ago

rsaue commented 2 months ago

Hi, I have been following the testing_0.35 branch lately. All good until tonight, with the ITU/CQ zone changes. When starting Qlog, the Settings - Station tab was empty. All other settings; equipment, sync, etc. was still there. Added the station profile data, and saved, the station data is lost/not shown on restart...

73 de LB2EG Richard

foldynl commented 2 months ago

Richard,

I had to do something that I'm usually careful about, but this time I had to make an exception. Despite the fact that I published the test branch, I had to additionally change the DB layout due to the change #358 . Under normal circumstances, the migration script would run automatically, but because I didn't want to increase the DB version due to a minor change, I put it in the current version file. This caused that people who installed the Testing branch before 26.4 and then used yesterday's version, so they do not have the correct DB version.

Your profiles are there, but Qlog is unable to load them. In your case, it will be necessary to add a new column manually like this.

1) open the DB in the sqlite editor 2) call the following SQLs

ALTER TABLE station_profiles ADD ituz INTEGER;
ALTER TABLE station_profiles ADD cqz INTEGER;
ALTER TABLE station_profiles ADD dxcc INTEGER;
ALTER TABLE station_profiles ADD country TEXT;
UPDATE station_profiles SET ituz = 1, cqz = 1, dxcc = 1, country = ' ';

3) start the new version of QLog 4) edit the profiles with regard to the new ITU/CQZ and DXCC country fields

QLog will normally migrate profiles, but due to the fact that the DB version did not change, the migration script did not start automatically for you.

I apologize for the inconvenience, but it was necessary to change it. As I wrote, I normally do not and will not change the DB version after testing branch is released. This was an exception.

rsaue commented 2 months ago

Hi, My only intention was to report a possible config fault before the general relase of version 0.35… I am very happy that you keep the development branch open. The few among us who compiles from it, knows there can be some hazards involved :)

Keep up the good work!

73 de LB2EG Richard

foldynl commented 2 months ago

good to know that someone is checking me ;-) I'm a little nervous about the recent changes, so testing phase must be longer than usual