Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: add missing indexes for fk #632

Merged
merged 1 commit into from
Nov 16, 2021

Conversation

vasco-santos
Copy link
Contributor

This PR adds missing indexes for all foreign keys. They were already added in the DB

@@ -108,6 +108,8 @@ CREATE TABLE IF NOT EXISTS pin
UNIQUE (content_cid, pin_location_id)
);

CREATE INDEX IF NOT EXISTS pin_content_cid_idx ON pin (content_cid);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

already existing before, but was not added here

CREATE INDEX IF NOT EXISTS upload_auth_key_id_idx ON upload (auth_key_id);
CREATE INDEX IF NOT EXISTS upload_content_cid_idx ON upload (content_cid);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

already existing before, but was not added here

@vasco-santos vasco-santos merged commit 0a26912 into main Nov 16, 2021
@vasco-santos vasco-santos deleted the chore/add-missing-indexes-for-fk branch November 16, 2021 10:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants