mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 04:14:39 +03:00
More timestamp corrections (#2933)
* Fix incorrect timestamp updates * Correct folder time fields * Add migration with new indexes * Correct mod_time format * Add mod_time to data massage
This commit is contained in:
@@ -83,12 +83,12 @@ func (r *updateRecord) setNullInt(destField string, v models.OptionalInt) {
|
||||
// }
|
||||
// }
|
||||
|
||||
func (r *updateRecord) setTime(destField string, v models.OptionalTime) {
|
||||
func (r *updateRecord) setSQLiteTimestamp(destField string, v models.OptionalTime) {
|
||||
if v.Set {
|
||||
if v.Null {
|
||||
panic("null value not allowed in optional time")
|
||||
}
|
||||
r.set(destField, v.Value)
|
||||
r.set(destField, models.SQLiteTimestamp{Timestamp: v.Value})
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user