Skip to content

Add unique constraint to collections_series table #163

Closed
@php-coder

Description

@php-coder

In commit 9255a5b I've fixed determination whether series belongs to collection. The bad effect of that bug was that user might add the same series to his collection more than once. To prevent that I suggest to add unique constraint to database, like this:

ALTER TABLE collections_series ADD UNIQUE INDEX uniq (collection_id, series_id);

Metadata

Metadata

Assignees

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions