Skip to content

Commit

Permalink
Do not import versionitem_seq and versionhistory_seq because they…
Browse files Browse the repository at this point in the history
… are different between v5 and v7 because the v5 doesn't use this tables to store versions so that sequences are like empty. (#158)
  • Loading branch information
milanmajchrak authored Jul 25, 2024
1 parent 8e01594 commit 4702cf1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/pump/_sequences.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ def migrate(self, env, db7, db5_dspace, db5_utilities):
if dspace5_seq_name not in db7_seqs_names:
continue

if dspace5_seq_name in ["versionhistory_seq", "versionitem_seq"]:
continue

# use cursor according to database to which sequence belongs
if dspace5_seq_db == "clarin-dspace":
db = db5_dspace
Expand Down

0 comments on commit 4702cf1

Please sign in to comment.