Skip to content

Commit

Permalink
UPD: model: TODO on missing referential action for cleanup
Browse files Browse the repository at this point in the history
refs #30
  • Loading branch information
problame committed Aug 24, 2016
1 parent 5f5dc5f commit 46d4ce0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions model/db.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,10 @@ type Mongod struct {
ReplSetName string

ObservationError MSPError
ObservationErrorID sql.NullInt64 `sql:"type:integer NULL REFERENCES msp_errors(id) ON DELETE SET NULL DEFERRABLE INITIALLY DEFERRED"`
ObservationErrorID sql.NullInt64 `sql:"type:integer NULL REFERENCES msp_errors(id) ON DELETE SET NULL DEFERRABLE INITIALLY DEFERRED"` // TODO not cleaned up on Mongod deletion right now

LastEstablishStateError MSPError
LastEstablishStateErrorID sql.NullInt64 `sql:"type:integer NULL REFERENCES msp_errors(id) ON DELETE SET NULL DEFERRABLE INITIALLY DEFERRED"`
LastEstablishStateErrorID sql.NullInt64 `sql:"type:integer NULL REFERENCES msp_errors(id) ON DELETE SET NULL DEFERRABLE INITIALLY DEFERRED"` // TODO not cleaned up on Mongod deletion right now

ParentSlave *Slave
ParentSlaveID int64 `sql:"type:integer REFERENCES slaves(id) DEFERRABLE INITIALLY DEFERRED"`
Expand Down

0 comments on commit 46d4ce0

Please sign in to comment.