Skip to content

Commit

Permalink
Merge pull request #145 from Icinga/fix-event
Browse files Browse the repository at this point in the history
Fix event: rename column of the event table
  • Loading branch information
lippserd authored Dec 5, 2024
2 parents 8c8be20 + fce569f commit da3a566
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pkg/schema/v1/event.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (

type Event struct {
Meta
ReferentUuid types.UUID
ReferenceUuid types.UUID
ReportingController sql.NullString
ReportingInstance sql.NullString
Action sql.NullString
Expand All @@ -37,7 +37,7 @@ func (e *Event) Obtain(k8s kmetav1.Object) {

event := k8s.(*keventsv1.Event)

e.ReferentUuid = EnsureUUID(event.Regarding.UID)
e.ReferenceUuid = EnsureUUID(event.Regarding.UID)
e.ReportingController = NewNullableString(event.ReportingController)
e.ReportingInstance = NewNullableString(event.ReportingInstance)
e.Action = NewNullableString(event.Action)
Expand Down
2 changes: 1 addition & 1 deletion schema/mysql/schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ CREATE TABLE endpoint_target_ref (

CREATE TABLE event (
uuid binary(16) NOT NULL,
referent_uuid binary(16) NOT NULL,
reference_uuid binary(16) NOT NULL,
namespace varchar(63) NOT NULL,
name varchar(270) NOT NULL,
uid varchar(255) NOT NULL,
Expand Down

0 comments on commit da3a566

Please sign in to comment.