-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/main' into map/remove-hb-non-det…
…erminism
- Loading branch information
Showing
21 changed files
with
854 additions
and
798 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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
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,22 @@ | ||
|
||
CREATE TABLE speedtests_migration ( | ||
pubkey text NOT NULL, | ||
upload_speed bigint, | ||
download_speed bigint, | ||
latency integer, | ||
serial_num text, | ||
timestamp timestamptz NOT NULL, | ||
inserted_at timestamptz default now(), | ||
PRIMARY KEY(pubkey, timestamp) | ||
); | ||
CREATE INDEX idx_speedtests_pubkey on speedtests_migration (pubkey); | ||
|
||
INSERT INTO speedtests_migration (pubkey, upload_speed, download_speed, latency, serial_num, timestamp) | ||
SELECT id, (st).upload_speed, (st).download_speed, (st).latency, '', (st).timestamp | ||
FROM (select id, unnest(speedtests) as st from speedtests) as tmp | ||
ON CONFLICT DO NOTHING; | ||
|
||
ALTER TABLE speedtests RENAME TO speedtests_old; | ||
ALTER TABLE speedtests_migration RENAME TO speedtests; | ||
|
||
|
Oops, something went wrong.