Skip to content

Commit

Permalink
fix(backend): change strategy to use title to grouped related incident
Browse files Browse the repository at this point in the history
  • Loading branch information
takadev15 committed May 25, 2024
1 parent 674bf62 commit dac73af
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions backend/migrations/20240524154034_incident_data.sql
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
-- +goose Up
-- +goose StatementBegin
CREATE TABLE incident_data (
incident_id VARCHAR(255) NOT NULL,
monitor_id VARCHAR(255) NOT NULL,
title VARCHAR(255) NOT NULL,
description TEXT NOT NULL,
Expand All @@ -12,7 +11,7 @@ CREATE TABLE incident_data (
created_by VARCHAR(255) NOT NULL
);

CREATE INDEX incident_data_incident_id_idx ON incident_data (monitor_id, incident_id, timestamp);
CREATE INDEX incident_data_incident_id_idx ON incident_data (monitor_id, timestamp, title);
-- +goose StatementEnd

-- +goose Down
Expand Down

0 comments on commit dac73af

Please sign in to comment.