Mercurial > gemma
diff pkg/models/import.go @ 4748:47922c1a088d
Added a 'changed' column to the import.imports table.
Changed is update each time the state changes (TODO: solve this with a trigger).
The update script takes as approximation the time of the last log entry
connected with the particular import.
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Fri, 18 Oct 2019 15:34:34 +0200 |
parents | 948e312e87bc |
children | 1222b777f51f |
line wrap: on
line diff
--- a/pkg/models/import.go Fri Oct 18 15:17:31 2019 +0200 +++ b/pkg/models/import.go Fri Oct 18 15:34:34 2019 +0200 @@ -28,6 +28,7 @@ ID int64 `json:"id"` State string `json:"state"` Enqueued ImportTime `json:"enqueued"` + Changed ImportTime `json:"changed"` Kind string `json:"kind"` User string `json:"user"` Signer string `json:"signer,omitempty"`