Skip to content

Commit

Permalink
fix(backend): differentiate reporting timestamp and incident timestamp,
Browse files Browse the repository at this point in the history
change description data type
  • Loading branch information
takadev15 committed May 25, 2024
1 parent cee1550 commit 699d6fd
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions backend/migrations/20240524154034_incident_data.sql
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
-- +goose Up
-- +goose StatementBegin
CREATE TABLE incident_data (
instance_id VARCHAR(255) NOT NULL,
incident_id VARCHAR(255) NOT NULL,
monitor_id VARCHAR(255) NOT NULL,
title VARCHAR(255) NOT NULL,
description VARCHAR(255) NOT NULL,
timestamp TIMESTAMPTZ NOT NULL DEFAULT CURRENT_TIMESTAMP,
description TEXT NOT NULL,
timestamp TIMESTAMPTZ NOT NULL,
severity SMALLINT NOT NULL,
status SMALLINT NOT NULL,
created_at TIMESTAMPTZ NOT NULL DEFAULT CURRENT_TIMESTAMP,
created_by VARCHAR(255) NOT NULL
);

Expand Down

0 comments on commit 699d6fd

Please sign in to comment.