diff --git a/cmd/labelmaker/store/models.go b/cmd/labelmaker/store/models.go index 32841d8..6410682 100644 --- a/cmd/labelmaker/store/models.go +++ b/cmd/labelmaker/store/models.go @@ -16,15 +16,3 @@ type Label struct { Negated bool `gorm:"column:neg"` Data json.RawMessage `gorm:"column:data"` } - -type Labeler struct { - ID uint64 `gorm:"column:id;primarykey"` - // these fields are automatically managed by gorm (by convention) - CreatedAt time.Time - UpdatedAt time.Time - - // TODO: DID? - Hostname string `gorm:"column:hostname;not null;unique"` - Status string `gorm:"column:status;default:active"` - LastSeq int64 `gorm:"column:last_seq;default:0"` -} diff --git a/cmd/labelmaker/store/store.go b/cmd/labelmaker/store/store.go index fc84eb0..6a0bdc0 100644 --- a/cmd/labelmaker/store/store.go +++ b/cmd/labelmaker/store/store.go @@ -28,9 +28,6 @@ func (s *Store) MigrateDatabase() error { if err := s.db.AutoMigrate(Label{}); err != nil { return err } - if err := s.db.AutoMigrate(Labeler{}); err != nil { - return err - } return nil }