inveniosoftware / inveniosoftware/invenio-sequencegenerator

models: is unique constraint on meta_template necessary?

Open
#23 0 comments 0 reactions 0 assignees View on GitHub
Size: easy
Dominant language
Python
Stars
0
Forks
8
PR merge metrics
No merged PRs in 30d

Description

https://github.com/inveniosoftware/invenio-sequencegenerator/blob/master/invenio_sequencegenerator/models.py#L44

IMHO we should be able to safely remote the `unique=True` attribute and use `definition_name` instead.

Update: the unique constraint should be a combination of a `name` and `meta_template`.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.