mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-11-28 19:32:45 +01:00
Update Dockerfile for sqlite3, update models for cascade delete, fix backup schedule
This commit is contained in:
1 parent
254ba1f089
commit
f73a0cce72
20 files changed
+67
-31
No files matched your search
@@ -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