Mercurial > gemma
comparison 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 |
comparison
equal
deleted
inserted
replaced
4747:b1428b44e43f | 4748:47922c1a088d |
---|---|
26 | 26 |
27 Import struct { | 27 Import struct { |
28 ID int64 `json:"id"` | 28 ID int64 `json:"id"` |
29 State string `json:"state"` | 29 State string `json:"state"` |
30 Enqueued ImportTime `json:"enqueued"` | 30 Enqueued ImportTime `json:"enqueued"` |
31 Changed ImportTime `json:"changed"` | |
31 Kind string `json:"kind"` | 32 Kind string `json:"kind"` |
32 User string `json:"user"` | 33 User string `json:"user"` |
33 Signer string `json:"signer,omitempty"` | 34 Signer string `json:"signer,omitempty"` |
34 Summary bool `json:"summary,omitempty"` | 35 Summary bool `json:"summary,omitempty"` |
35 Errors bool `json:"errors,omitempty"` | 36 Errors bool `json:"errors,omitempty"` |