Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature / let database show version without upgrading #1395

Conversation

WilliamHPNielsen
Copy link
Contributor

Needed over at #1352

Changes proposed in this pull request:

  • Add a little convenience function to get the DB version of a database and the latest available DB version

@QCoDeS/core

@codecov
Copy link

codecov bot commented Nov 26, 2018

Codecov Report

Merging #1395 into master will decrease coverage by <.01%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master    #1395      +/-   ##
==========================================
- Coverage   72.23%   72.22%   -0.01%     
==========================================
  Files          83       83              
  Lines        9561     9566       +5     
==========================================
+ Hits         6906     6909       +3     
- Misses       2655     2657       +2

qcodes/dataset/sqlite_base.py Show resolved Hide resolved
upgrade_actions = [perform_db_upgrade_0_to_1, perform_db_upgrade_1_to_2,
perform_db_upgrade_2_to_3]
newest_version = len(upgrade_actions)
newest_version = len(_UPGRADE_ACTIONS)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shall this be extracted as well? well, at least it is extracted in #1389 in order to be used for testing.

qcodes/dataset/sqlite_base.py Show resolved Hide resolved
@WilliamHPNielsen WilliamHPNielsen merged commit d6564c6 into microsoft:master Nov 27, 2018
giulioungaretti pushed a commit that referenced this pull request Nov 27, 2018
Merge: 2606cad 42c57f0
Author: William H.P. Nielsen <whpn@mailbox.org>

    Merge pull request #1395 from WilliamHPNielsen/database/show_upgrade_versions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants