mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-08-10 23:53:42 +02:00
Update Dockerfile for sqlite3, update models for cascade delete, fix backup schedule
This commit is contained in:
@ -77,7 +77,9 @@ module.exports = (sequelize) => {
|
||||
})
|
||||
|
||||
const { library } = sequelize.models
|
||||
library.hasMany(Author)
|
||||
library.hasMany(Author, {
|
||||
onDelete: 'CASCADE'
|
||||
})
|
||||
Author.belongsTo(library)
|
||||
|
||||
return Author
|
||||
|
Reference in New Issue
Block a user