Skip to content

Commit 40ab34d

Browse files
authored
Fix downgrade as the sameAs was added after 0.7.0 schema release
1 parent 87b2040 commit 40ab34d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

dandischema/metadata.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,8 @@ def migrate(
456456
# List only those for which such notion of "empty" applies.
457457
SIMPLE_DOWNGRADES = [
458458
# version added, fields to remove
459-
("0.7.0", ["sameAs", "releaseNotes"]),
459+
("0.7.0", ["releaseNotes"]),
460+
("0.8.0", ["sameAs"]),
460461
]
461462
for ver_added, fields in SIMPLE_DOWNGRADES:
462463
# additional guards are via ALLOWED_TARGET_SCHEMAS

0 commit comments

Comments
 (0)