Skip to content

Commit c581ebc

Browse files
committedOct 13, 2022
Update jobs_current_version_uuid_index and jobs_symlink_target_uuid_index to ignore NULL values
Signed-off-by: Michael Collado <collado.mike@gmail.com>
1 parent a458374 commit c581ebc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
/* SPDX-License-Identifier: Apache-2.0 */
22

33
create index jobs_current_version_uuid_index
4-
on jobs (current_version_uuid);
4+
on jobs (current_version_uuid) WHERE current_version_uuid IS NOT NULL;
55

66
create index jobs_symlink_target_uuid_index
7-
on jobs (symlink_target_uuid);
7+
on jobs (symlink_target_uuid) WHERE symlink_target_uuid IS NOT NULL;
88

99
create index jobs_current_job_context_uuid_index
1010
on jobs (current_job_context_uuid);

0 commit comments

Comments
 (0)