mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-07-07 09:51:37 +00:00
Revert "add database changes for recommandation sent and inbox"
This reverts commit ae4bd94b38.
This commit is contained in:
parent
245b36e13b
commit
42c062c611
1 changed files with 6 additions and 0 deletions
|
|
@ -162,6 +162,7 @@ class Database {
|
||||||
return this.models.device
|
return this.models.device
|
||||||
}
|
}
|
||||||
|
|
||||||
|
<<<<<<< HEAD
|
||||||
get recommendationTagModel() {
|
get recommendationTagModel() {
|
||||||
return this.models.recommendationTag
|
return this.models.recommendationTag
|
||||||
}
|
}
|
||||||
|
|
@ -169,6 +170,8 @@ class Database {
|
||||||
return this.models.bookRecommendation
|
return this.models.bookRecommendation
|
||||||
}
|
}
|
||||||
|
|
||||||
|
=======
|
||||||
|
>>>>>>> parent of ae4bd94b (add database changes for recommandation sent and inbox)
|
||||||
/**
|
/**
|
||||||
* Check if db file exists
|
* Check if db file exists
|
||||||
* @returns {boolean}
|
* @returns {boolean}
|
||||||
|
|
@ -352,6 +355,7 @@ class Database {
|
||||||
require('./models/Setting').init(this.sequelize)
|
require('./models/Setting').init(this.sequelize)
|
||||||
require('./models/CustomMetadataProvider').init(this.sequelize)
|
require('./models/CustomMetadataProvider').init(this.sequelize)
|
||||||
require('./models/MediaItemShare').init(this.sequelize)
|
require('./models/MediaItemShare').init(this.sequelize)
|
||||||
|
<<<<<<< HEAD
|
||||||
require('./models/RecommendationTag').init(this.sequelize)
|
require('./models/RecommendationTag').init(this.sequelize)
|
||||||
require('./models/BookRecommendation').init(this.sequelize)
|
require('./models/BookRecommendation').init(this.sequelize)
|
||||||
// One association pass BEFORE sync
|
// One association pass BEFORE sync
|
||||||
|
|
@ -359,6 +363,8 @@ class Database {
|
||||||
Object.values(models).forEach((m) => {
|
Object.values(models).forEach((m) => {
|
||||||
if (typeof m?.associate === 'function') m.associate(models)
|
if (typeof m?.associate === 'function') m.associate(models)
|
||||||
})
|
})
|
||||||
|
=======
|
||||||
|
>>>>>>> parent of ae4bd94b (add database changes for recommandation sent and inbox)
|
||||||
|
|
||||||
return this.sequelize.sync({ force, alter: false })
|
return this.sequelize.sync({ force, alter: false })
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue