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

Further upgrader version fix #220

Merged
merged 4 commits into from
Jun 9, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,6 @@
.elasticbeanstalk/*
!.elasticbeanstalk/*.cfg.yml
!.elasticbeanstalk/*.global.yml

# Vim
*.swp
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "dcicsnovault"
version = "5.6.0"
version = "5.6.1"
description = "Storage support for 4DN Data Portals."
authors = ["4DN-DCIC Team <[email protected]>"]
license = "MIT"
Expand Down
2 changes: 1 addition & 1 deletion snovault/batchupgrade.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def worker(batch):

def update_item(storage, context):
target_version = context.type_info.schema_version
current_version = context.properties.get('schema_version', '')
current_version = context.properties.get('schema_version', '1')
update = False
errors = []
properties = context.properties
Expand Down
2 changes: 1 addition & 1 deletion snovault/resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ def upgrade_properties(self):
except KeyError:
# don't fail if we try to upgrade properties on something not there yet
return None
current_version = properties.get('schema_version', '')
current_version = properties.get('schema_version', '1')
target_version = self.type_info.schema_version
if target_version is not None and current_version != target_version:
upgrader = self.registry[UPGRADER]
Expand Down