diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2018-12-20 23:30:21 -0800 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2018-12-20 23:30:21 -0800 |
commit | 6e491d1ad583cd24a062654291ab1a4f03115e31 (patch) | |
tree | 2bb7084defb056018d215505078a756eb2f3d9aa | |
parent | 49b18c6c2e49144710ad75c7e5ed3c24146d0cdb (diff) | |
download | fatcat-6e491d1ad583cd24a062654291ab1a4f03115e31.tar.gz fatcat-6e491d1ad583cd24a062654291ab1a4f03115e31.zip |
ident table redirect lookups
-rw-r--r-- | rust/migrations/2018-05-12-001226_init/up.sql | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/rust/migrations/2018-05-12-001226_init/up.sql b/rust/migrations/2018-05-12-001226_init/up.sql index 88614e7b..7754b328 100644 --- a/rust/migrations/2018-05-12-001226_init/up.sql +++ b/rust/migrations/2018-05-12-001226_init/up.sql @@ -82,6 +82,7 @@ CREATE TABLE creator_ident ( ); CREATE INDEX creator_ident_rev_idx ON creator_ident(rev_id); +CREATE INDEX creator_ident_redirect_idx ON creator_ident(redirect_id); CREATE TABLE creator_edit ( id BIGSERIAL PRIMARY KEY, @@ -122,6 +123,7 @@ CREATE TABLE container_ident ( ); CREATE INDEX container_ident_rev_idx ON container_ident(rev_id); +CREATE INDEX container_ident_redirect_idx ON container_ident(redirect_id); CREATE TABLE container_edit ( id BIGSERIAL PRIMARY KEY, @@ -169,6 +171,7 @@ CREATE TABLE file_ident ( ); CREATE INDEX file_ident_rev_idx ON file_ident(rev_id); +CREATE INDEX file_ident_redirect_idx ON file_ident(redirect_id); CREATE TABLE file_edit ( id BIGSERIAL PRIMARY KEY, @@ -236,6 +239,7 @@ CREATE TABLE release_ident ( ); CREATE INDEX release_ident_rev_idx ON release_ident(rev_id); +CREATE INDEX release_ident_redirect_idx ON release_ident(redirect_id); CREATE TABLE release_edit ( id BIGSERIAL PRIMARY KEY, @@ -263,6 +267,7 @@ CREATE TABLE work_ident ( ); CREATE INDEX work_ident_rev_idx ON work_ident(rev_id); +CREATE INDEX work_ident_redirect_idx ON work_ident(redirect_id); CREATE TABLE work_edit ( id BIGSERIAL PRIMARY KEY, |