mirror of
https://github.com/stashapp/stash.git
synced 2025-12-06 08:26:00 +01:00
Use existing consts for table names in anonymise.go where available (#5167)
This commit is contained in:
parent
e49beb139c
commit
62ff6f3c7f
1 changed files with 9 additions and 9 deletions
|
|
@ -84,14 +84,14 @@ func (db *Anonymiser) truncateTable(tableName string) error {
|
||||||
|
|
||||||
func (db *Anonymiser) deleteBlobs() error {
|
func (db *Anonymiser) deleteBlobs() error {
|
||||||
return utils.Do([]func() error{
|
return utils.Do([]func() error{
|
||||||
func() error { return db.truncateColumn("tags", "image_blob") },
|
func() error { return db.truncateColumn(tagTable, tagImageBlobColumn) },
|
||||||
func() error { return db.truncateColumn("studios", "image_blob") },
|
func() error { return db.truncateColumn(studioTable, studioImageBlobColumn) },
|
||||||
func() error { return db.truncateColumn("performers", "image_blob") },
|
func() error { return db.truncateColumn(performerTable, performerImageBlobColumn) },
|
||||||
func() error { return db.truncateColumn("scenes", "cover_blob") },
|
func() error { return db.truncateColumn(sceneTable, sceneCoverBlobColumn) },
|
||||||
func() error { return db.truncateColumn("groups", "front_image_blob") },
|
func() error { return db.truncateColumn(groupTable, groupFrontImageBlobColumn) },
|
||||||
func() error { return db.truncateColumn("groups", "back_image_blob") },
|
func() error { return db.truncateColumn(groupTable, groupBackImageBlobColumn) },
|
||||||
|
|
||||||
func() error { return db.truncateTable("blobs") },
|
func() error { return db.truncateTable(blobTable) },
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -105,13 +105,13 @@ func (db *Anonymiser) deleteStashIDs() error {
|
||||||
|
|
||||||
func (db *Anonymiser) clearOHistory() error {
|
func (db *Anonymiser) clearOHistory() error {
|
||||||
return utils.Do([]func() error{
|
return utils.Do([]func() error{
|
||||||
func() error { return db.truncateTable("scenes_o_dates") },
|
func() error { return db.truncateTable(scenesODatesTable) },
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
func (db *Anonymiser) clearWatchHistory() error {
|
func (db *Anonymiser) clearWatchHistory() error {
|
||||||
return utils.Do([]func() error{
|
return utils.Do([]func() error{
|
||||||
func() error { return db.truncateTable("scenes_view_dates") },
|
func() error { return db.truncateTable(scenesViewDatesTable) },
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue