mirror of
https://git.vectorsigma.ru/public/photoview.git
synced 2026-08-03 19:39:19 +00:00
Replace database, initial setup now works
This commit is contained in:
@@ -6,10 +6,13 @@ import (
|
||||
)
|
||||
|
||||
type SiteInfo struct {
|
||||
Model
|
||||
InitialSetup bool
|
||||
PeriodicScanInterval int
|
||||
ConcurrentWorkers int
|
||||
InitialSetup bool `gorm:"not null"`
|
||||
PeriodicScanInterval int `gorm:"not null"`
|
||||
ConcurrentWorkers int `gorm:"not null"`
|
||||
}
|
||||
|
||||
func (SiteInfo) TableName() string {
|
||||
return "site_info"
|
||||
}
|
||||
|
||||
// GetSiteInfo gets the site info row from the database, and creates it if it does not exist
|
||||
|
||||
Reference in New Issue
Block a user