Merge pull request #3417 from nichwall/series_cleanup_2

Add: series migration to be unique
This commit is contained in:
advplyr 2024-10-12 15:48:04 -05:00 committed by GitHub
commit e58d7db03b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 553 additions and 9 deletions

View file

@ -83,6 +83,12 @@ class Series extends Model {
// collate: 'NOCASE'
// }]
// },
{
// unique constraint on name and libraryId
fields: ['name', 'libraryId'],
unique: true,
name: 'unique_series_name_per_library'
},
{
fields: ['libraryId']
}