mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-07-10 01:15:06 +02:00
Add: series migration to be unique
This commit is contained in:
parent
01fbea02f1
commit
2711b989e1
3 changed files with 358 additions and 0 deletions
|
@ -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']
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue