-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: remove POST & PATCH
/measurements
(#126)
These endpoints have been superseded by `POST /measurements` as part of filecoin-station/spark#13 After this change, spark-api returns 410 OUTDATED CLIENT errors when these endpoints are called. This removal allowed me to further clean up our code: - remove `retrievals` table - delete `retrieval_templates` that were soft-deleted - drop the column `retrieval_templates.deleted` Signed-off-by: Miroslav Bajtoš <[email protected]>
- Loading branch information
Showing
5 changed files
with
34 additions
and
469 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
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,6 @@ | ||
DROP TABLE retrievals; | ||
|
||
-- Now that we have removed `retrievals` table, we no longer need to preserve deleted retrieval | ||
-- templates. | ||
DELETE FROM retrieval_templates WHERE deleted = true; | ||
ALTER TABLE retrieval_templates DROP COLUMN deleted; |
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.