Skip to content

Commit

Permalink
fix(backend): add differentiate instance_id and incident_id to able to
Browse files Browse the repository at this point in the history
group several incident into one context
  • Loading branch information
takadev15 committed May 24, 2024
1 parent e5e373a commit cee1550
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion backend/migrations/20240524154034_incident_data.sql
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
-- +goose Up
-- +goose StatementBegin
CREATE TABLE incident_data (
instance_id VARCHAR(255) NOT NULL,
incident_id VARCHAR(255) NOT NULL,
title VARCHAR(255) NOT NULL,
description VARCHAR(255) NOT NULL,
Expand All @@ -10,7 +11,7 @@ CREATE TABLE incident_data (
created_by VARCHAR(255) NOT NULL
);

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

-- +goose Down
Expand Down

0 comments on commit cee1550

Please sign in to comment.