Skip to content

Fix DB bugs and improvements #245

Description

@r2dedios

Describe the bug
There are several things to fix in the DB schema

Additional context

  1. Bug: instances.cluster_id is an INTEGER but it refers to clusters.id which is BIGINT
  2. Bug: events.resource_id is an INTEGER but clusters.id and instances.id are BIGINT
  3. Not using RESOURCE_TYPE in events table nor its CHECK statement
  4. Logical Bug: cluster_tags omits repeated tags but HAVING COUNT(*) > 1 does the opposite

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

Fields

No fields configured for Bug.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions