-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
centrifugation: split steps
ingest
, reingest
and reprocess
- Loading branch information
Showing
6 changed files
with
963 additions
and
440 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
BEGIN; | ||
|
||
select _v.register_patch( '006-reingestion', ARRAY[ '005-repeated-report' ], NULL ); | ||
|
||
ALTER SEQUENCE autoclaved_autoclaved_no_seq RENAME TO autoclaved_no_seq; | ||
|
||
DROP TABLE report_meta; | ||
DROP TABLE report_blob; | ||
DROP TABLE measurement_meta; | ||
DROP TABLE measurement_blob; | ||
DROP TABLE measurement_exc; | ||
DROP TABLE badmeta_tpl; | ||
DROP TABLE dns_a_tpl; | ||
|
||
-- `badblob` is a nice table, but we can't properly ingest it right now and | ||
-- it's something that does not actually exist after `autoclaved` stage, these | ||
-- bad blobs are lost during autoclaving, only canning preserves them. | ||
DROP TABLE badblob; | ||
|
||
ALTER TABLE badmeta DROP COLUMN textname; | ||
|
||
-- re-ingest `vanilla_tor` | ||
UPDATE autoclaved SET code_ver = 4 | ||
WHERE code_ver = 3 AND NOT EXISTS ( | ||
SELECT 1 FROM report | ||
WHERE autoclaved_no = autoclaved.autoclaved_no | ||
AND test_name = 'vanilla_tor' | ||
); | ||
|
||
COMMIT; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.