Add position for book in collection
This commit is contained in:
@@ -23,6 +23,7 @@ func Initdb(databasePath string, demoDataPath string) *gorm.DB {
|
||||
db.AutoMigrate(&model.UserBook{})
|
||||
db.AutoMigrate(&model.StaticFile{})
|
||||
db.AutoMigrate(&model.Collection{})
|
||||
db.AutoMigrate(&model.CollectionItem{})
|
||||
var book model.Book
|
||||
queryResult := db.Limit(1).Find(&book)
|
||||
if queryResult.RowsAffected == 0 && demoDataPath != "" {
|
||||
|
||||
Reference in New Issue
Block a user