Version returns the value of the "version" field in the mutation.
()
| 9207 | |
| 9208 | // Version returns the value of the "version" field in the mutation. |
| 9209 | func (m *MachineMutation) Version() (r string, exists bool) { |
| 9210 | v := m.version |
| 9211 | if v == nil { |
| 9212 | return |
| 9213 | } |
| 9214 | return *v, true |
| 9215 | } |
| 9216 | |
| 9217 | // OldVersion returns the old "version" field's value of the Machine entity. |
| 9218 | // If the Machine object wasn't provided to the builder, the object is fetched from the database. |