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

UFAL/PY-Cannot create a new license after migration #114

Closed
milanmajchrak opened this issue Oct 17, 2023 · 1 comment · Fixed by #115
Closed

UFAL/PY-Cannot create a new license after migration #114

milanmajchrak opened this issue Oct 17, 2023 · 1 comment · Fixed by #115
Assignees
Labels
bug Something isn't working

Comments

@milanmajchrak
Copy link
Collaborator

milanmajchrak commented Oct 17, 2023

Problem description

Error message:

Caused by: java.sql.BatchUpdateException: Batch entry 0 insert into public.license_label_extended_mapping (license_id, label_id) values (92, 20) was aborted: ERROR: duplicate key value violates unique constraint "license_label_extended_mapping_pkey"
  Detail: Key (mapping_id)=(991256) already exists.

Maybe sequences wasn't properly copied.

@milanmajchrak milanmajchrak self-assigned this Oct 17, 2023
@milanmajchrak
Copy link
Collaborator Author

milanmajchrak commented Oct 17, 2023

All sequences are copied also from the clarin-utilities database and because of different count of records between CLARIN-DSpace5 and CLARIN-DSpace7 the sequences from CLARIN-DSpace5 are causing database duplicate key errors.

TODO: Remove copying clarin-utilities table sequences.

@milanmajchrak milanmajchrak added the bug Something isn't working label Oct 17, 2023
@milanmajchrak milanmajchrak linked a pull request Oct 17, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant