diff options
Diffstat (limited to 'extra/sql_dumps/dump_idents.sql')
-rw-r--r-- | extra/sql_dumps/dump_idents.sql | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/extra/sql_dumps/dump_idents.sql b/extra/sql_dumps/dump_idents.sql index d9777ea1..528ebfaa 100644 --- a/extra/sql_dumps/dump_idents.sql +++ b/extra/sql_dumps/dump_idents.sql @@ -1,15 +1,15 @@ BEGIN TRANSACTION ISOLATION LEVEL SERIALIZABLE READ ONLY DEFERRABLE; -COPY (SELECT id FROM changelog ORDER BY id DESC LIMIT 1) TO '/tmp/fatcat_ident_latest_changelog.tsv' WITH NULL ''; -COPY (SELECT id, rev_id, redirect_id FROM creator_ident WHERE is_live=true) TO '/tmp/fatcat_ident_creators.tsv' WITH NULL ''; -COPY (SELECT id, rev_id, redirect_id FROM container_ident WHERE is_live=true) TO '/tmp/fatcat_ident_containers.tsv' WITH NULL ''; -COPY (SELECT id, rev_id, redirect_id FROM file_ident WHERE is_live=true) TO '/tmp/fatcat_ident_files.tsv' WITH NULL ''; -COPY (SELECT id, rev_id, redirect_id FROM fileset_ident WHERE is_live=true) TO '/tmp/fatcat_ident_filesets.tsv' WITH NULL ''; -COPY (SELECT id, rev_id, redirect_id FROM webcapture_ident WHERE is_live=true) TO '/tmp/fatcat_ident_webcaptures.tsv' WITH NULL ''; -COPY (SELECT id, rev_id, redirect_id FROM release_ident WHERE is_live=true) TO '/tmp/fatcat_ident_releases.tsv' WITH NULL ''; -COPY (SELECT id, rev_id, redirect_id FROM work_ident WHERE is_live=true) TO '/tmp/fatcat_ident_works.tsv' WITH NULL ''; -COPY (SELECT id, editgroup_id, timestamp FROM changelog) TO '/tmp/fatcat_ident_changelog.tsv' WITH NULL ''; +COPY (SELECT id FROM changelog ORDER BY id DESC LIMIT 1) TO '/srv/fatcat/tmp/fatcat_ident_latest_changelog.tsv' WITH NULL ''; +COPY (SELECT id, rev_id, redirect_id FROM creator_ident WHERE is_live=true) TO '/srv/fatcat/tmp/fatcat_ident_creators.tsv' WITH NULL ''; +COPY (SELECT id, rev_id, redirect_id FROM container_ident WHERE is_live=true) TO '/srv/fatcat/tmp/fatcat_ident_containers.tsv' WITH NULL ''; +COPY (SELECT id, rev_id, redirect_id FROM file_ident WHERE is_live=true) TO '/srv/fatcat/tmp/fatcat_ident_files.tsv' WITH NULL ''; +COPY (SELECT id, rev_id, redirect_id FROM fileset_ident WHERE is_live=true) TO '/srv/fatcat/tmp/fatcat_ident_filesets.tsv' WITH NULL ''; +COPY (SELECT id, rev_id, redirect_id FROM webcapture_ident WHERE is_live=true) TO '/srv/fatcat/tmp/fatcat_ident_webcaptures.tsv' WITH NULL ''; +COPY (SELECT id, rev_id, redirect_id FROM release_ident WHERE is_live=true) TO '/srv/fatcat/tmp/fatcat_ident_releases.tsv' WITH NULL ''; +COPY (SELECT id, rev_id, redirect_id FROM work_ident WHERE is_live=true) TO '/srv/fatcat/tmp/fatcat_ident_works.tsv' WITH NULL ''; +COPY (SELECT id, editgroup_id, timestamp FROM changelog) TO '/srv/fatcat/tmp/fatcat_ident_changelog.tsv' WITH NULL ''; COPY ( SELECT release_ident.id, @@ -25,6 +25,6 @@ COPY ( AND release_ident.rev_id IS NOT NULL ORDER BY release_rev.work_ident_id ASC NULLS LAST -) TO '/tmp/fatcat_ident_releases_by_work.tsv' WITH NULL ''; +) TO '/srv/fatcat/tmp/fatcat_ident_releases_by_work.tsv' WITH NULL ''; ROLLBACK; |