summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2018-09-11 15:13:08 -0700
committerBryan Newbold <bnewbold@robocracy.org>2018-09-11 15:13:08 -0700
commit3ea98203577d016998808ae9ec4d5daade96febc (patch)
treeea7f094cea8737914271f6887de9d1bc1dd14d04
parent2162c7b87ac737b9fcb4e3cab1b80f5dede2c6ec (diff)
downloadfatcat-3ea98203577d016998808ae9ec4d5daade96febc.tar.gz
fatcat-3ea98203577d016998808ae9ec4d5daade96febc.zip
quick_dump: include redirect rows
-rw-r--r--extra/quick_dump.sql10
1 files changed, 5 insertions, 5 deletions
diff --git a/extra/quick_dump.sql b/extra/quick_dump.sql
index d3f52c0d..d2d12bb4 100644
--- a/extra/quick_dump.sql
+++ b/extra/quick_dump.sql
@@ -1,11 +1,11 @@
BEGIN TRANSACTION ISOLATION LEVEL SERIALIZABLE READ ONLY DEFERRABLE;
-COPY (SELECT id, rev_id FROM creator_ident WHERE is_live=true AND redirect_id IS NULL) TO '/tmp/fatcat_ident_creators.tsv';
-COPY (SELECT id, rev_id FROM container_ident WHERE is_live=true AND redirect_id IS NULL) TO '/tmp/fatcat_ident_containers.tsv';
-COPY (SELECT id, rev_id FROM file_ident WHERE is_live=true AND redirect_id IS NULL) TO '/tmp/fatcat_ident_files.tsv';
-COPY (SELECT id, rev_id FROM release_ident WHERE is_live=true AND redirect_id IS NULL) TO '/tmp/fatcat_ident_releases.tsv';
-COPY (SELECT id, rev_id FROM work_ident WHERE is_live=true AND redirect_id IS NULL) TO '/tmp/fatcat_ident_works.tsv';
+COPY (SELECT id, rev_id, redirect_id FROM creator_ident WHERE is_live=true) TO '/tmp/fatcat_ident_creators.tsv';
+COPY (SELECT id, rev_id, redirect_id FROM container_ident WHERE is_live=true) TO '/tmp/fatcat_ident_containers.tsv';
+COPY (SELECT id, rev_id, redirect_id FROM file_ident WHERE is_live=true) TO '/tmp/fatcat_ident_files.tsv';
+COPY (SELECT id, rev_id, redirect_id FROM release_ident WHERE is_live=true) TO '/tmp/fatcat_ident_releases.tsv';
+COPY (SELECT id, rev_id, redirect_id FROM work_ident WHERE is_live=true) TO '/tmp/fatcat_ident_works.tsv';
COPY (SELECT row_to_json(abstracts) FROM abstracts) TO '/tmp/fatcat_abstracts.json';