Skip to content

Commit 0f5ca80

Browse files
committed
PostgreSql Index opt
1 parent 0481223 commit 0f5ca80

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

dinky-admin/src/main/resources/db/migration/postgresql/V20250301.1.3.0__release.sql

+3-3
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,9 @@ COMMENT ON COLUMN public.dinky_approval.reviewer_comment IS 'reviewer comment';
5151
COMMENT ON COLUMN public.dinky_approval.create_time IS 'create time';
5252
COMMENT ON COLUMN public.dinky_approval.update_tIme IS 'update time';
5353

54-
CREATE UNIQUE INDEX IF NOT EXISTS task_id_current_version_idx ON public.dinky_approval (task_id, current_task_version);
55-
CREATE UNIQUE INDEX IF NOT EXISTS tenant_id_submitter_union_idx ON public.dinky_approval (submitter, tenant_id);
56-
CREATE UNIQUE INDEX IF NOT EXISTS tenant_id_reviewer_union_idx ON public.dinky_approval (reviewer, tenant_id);
54+
CREATE INDEX IF NOT EXISTS task_id_current_version_idx ON public.dinky_approval (task_id, current_task_version);
55+
CREATE INDEX IF NOT EXISTS tenant_id_submitter_union_idx ON public.dinky_approval (submitter, tenant_id);
56+
CREATE INDEX IF NOT EXISTS tenant_id_reviewer_union_idx ON public.dinky_approval (reviewer, tenant_id);
5757

5858
CREATE OR REPLACE TRIGGER set_update_time_dinky_approval
5959
BEFORE UPDATE

0 commit comments

Comments
 (0)