mirror of
https://github.com/stashapp/stash.git
synced 2025-12-18 04:44:37 +03:00
SQLite model refactoring, part 2 (#3839)
* Treat empty image input as null * Add validation to models.Date * Allow zero dates in database * Make scene_markers.scene_id non-nullable * Drop scraped_items table * Remove movie/studio checksum * Add migration notes --------- Co-authored-by: WithoutPants <53250216+WithoutPants@users.noreply.github.com>
This commit is contained in:
@@ -11,14 +11,6 @@ type jsonUtils struct {
|
||||
json paths.JSONPaths
|
||||
}
|
||||
|
||||
func (jp *jsonUtils) getScraped() ([]jsonschema.ScrapedItem, error) {
|
||||
return jsonschema.LoadScrapedFile(jp.json.ScrapedFile)
|
||||
}
|
||||
|
||||
func (jp *jsonUtils) saveScaped(scraped []jsonschema.ScrapedItem) error {
|
||||
return jsonschema.SaveScrapedFile(jp.json.ScrapedFile, scraped)
|
||||
}
|
||||
|
||||
func (jp *jsonUtils) savePerformer(fn string, performer *jsonschema.Performer) error {
|
||||
return jsonschema.SavePerformerFile(filepath.Join(jp.json.Performers, fn), performer)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user