Closed silenus092 closed 2 years ago
In GitLab by @kunaphas.kon on Jan 16, 2022, 15:35
requested review from @s.fuchs
In GitLab by @kunaphas.kon on Jan 16, 2022, 15:39
added 2 commits
In GitLab by @s.fuchs on Jan 18, 2022, 08:16
Hi Note, could you please try the update process on a copy of our productive database. If it works, I will perform the merge! Also please add a new version (PRAGMA user_version to the sqlite) that users cannot use this covSonar version with an incompatible database. Thx a lot!
In GitLab by @kunaphas.kon on Jan 20, 2022, 16:55
@s.fuchs , Hi I test with the copy DB, and it works, I will implement the database upgrade assistant/command to solve and allow for a smooth upgrade for this and the upcoming version.
In GitLab by @kunaphas.kon on Jan 21, 2022, 11:14
added 1 commit
In GitLab by @kunaphas.kon on Jan 22, 2022, 22:52
marked this merge request as draft
In GitLab by @kunaphas.kon on Jan 22, 2022, 22:54
added 1 commit
In GitLab by @kunaphas.kon on Jan 24, 2022, 12:06
added 1 commit
In GitLab by @kunaphas.kon on Jan 24, 2022, 14:18
marked this merge request as ready
In GitLab by @s.fuchs on Feb 4, 2022, 16:05
mentioned in commit ed2f7963f269e70ea4d3e8ac48fecc907d573697
In GitLab by @kunaphas.kon on Jan 16, 2022, 15:35
Merges dev/tovcf -> master
In covSonar V.1.1.3
Improvement
1.Readme.md
2. Add function to update lineage information
Run
update-lineage-info
flag, it will download the latest version of lineages from https://github.com/cov-lineages/pango-designation/ and install inlib/lineage.all.tsv
3.Database
According to #21, I add the 'submission date' column to the genome table and also prot_viewand essence view *(
submission_date TEXT
).To update an existing database
Then we can normally update/add info.
And now we can use the match command with the
submission_date
flag to define a condition. The submission date will always be included in the output result. for example;3.Improve error message
According to #22, I update the error message with the accession number.
4.Update test script
I update the test script to support the submission date.
New Features
1.Database upgrade assistant
In the upcoming future, if we have the new version of the database schema, we can just use this function to upgrade. We can easily put the new schema file (e.g., {version}.sql) under
lib/migrate
and then run the following command;This function will automatically update the database to the latest version.
Fix Bugs
1. #23
Fix Incorrect Date format in SQL query, now it works properly.💪