Skip to content

Commit

Permalink
Update database/migrations/000050_artifact_projects.up.sql
Browse files Browse the repository at this point in the history
Co-authored-by: Jakub Hrozek <jakub@stacklok.com>
  • Loading branch information
JAORMX and jhrozek committed Apr 10, 2024
1 parent dc3b21c commit ada499c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion database/migrations/000050_artifact_projects.up.sql
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ ALTER TABLE artifacts ADD CONSTRAINT fk_artifacts_provider_id_and_name FOREIGN K
DROP INDEX artifact_name_lower_idx;

-- recreate index artifact_name_lower_idx on artifacts but with project_id
CREATE INDEX artifact_name_lower_idx ON artifacts (project_id, LOWER(artifact_name));
CREATE UNIQUE INDEX artifact_name_lower_idx ON artifacts (project_id, LOWER(artifact_name));

COMMIT;

Expand Down

0 comments on commit ada499c

Please sign in to comment.