Set default value to 0 for assign_ts for backward-compatibility
This commit is contained in:
parent
b81612e249
commit
85f317b99b
@ -29,7 +29,7 @@ UPDATE tb_user SET additional_info = tb_user.additional_info::jsonb - 'userPassw
|
||||
|
||||
-- ALARM ASSIGN TO USER START
|
||||
|
||||
ALTER TABLE alarm ADD COLUMN IF NOT EXISTS assign_ts BIGINT;
|
||||
ALTER TABLE alarm ADD COLUMN IF NOT EXISTS assign_ts BIGINT DEFAULT 0;
|
||||
ALTER TABLE alarm ADD COLUMN IF NOT EXISTS assignee_id UUID;
|
||||
|
||||
CREATE INDEX IF NOT EXISTS idx_alarm_tenant_assignee_created_time ON alarm(tenant_id, assignee_id, created_time DESC);
|
||||
|
||||
@ -52,7 +52,7 @@ CREATE TABLE IF NOT EXISTS alarm (
|
||||
propagate boolean,
|
||||
severity varchar(255),
|
||||
start_ts bigint,
|
||||
assign_ts bigint,
|
||||
assign_ts bigint DEFAULT 0,
|
||||
assignee_id uuid,
|
||||
tenant_id uuid,
|
||||
customer_id uuid,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user