Skip to content

Commit

Permalink
[0.6] DB migrations for "Aggregation: repeat same request on retries."
Browse files Browse the repository at this point in the history
  • Loading branch information
branlwyd committed Jan 27, 2024
1 parent 3b38a64 commit 76d9fc0
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion aggregator_core/src/datastore.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ macro_rules! supported_schema_versions {
// version is seen, [`Datastore::new`] fails.
//
// Note that the latest supported version must be first in the list.
supported_schema_versions!(1);
supported_schema_versions!(2, 1);

/// Datastore represents a datastore for Janus, with support for transactional reads and writes.
/// In practice, Datastore instances are currently backed by a PostgreSQL database.
Expand Down
5 changes: 5 additions & 0 deletions db/00000000000002_report_data_in_report_agg.down.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
ALTER TABLE report_aggregations DROP COLUMN helper_encrypted_input_share;
ALTER TABLE report_aggregations DROP COLUMN leader_input_share;
ALTER TABLE report_aggregations DROP COLUMN leader_extensions;
ALTER TABLE report_aggregations DROP COLUMN public_share;

5 changes: 5 additions & 0 deletions db/00000000000002_report_data_in_report_agg.up.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
ALTER TABLE report_aggregations ADD COLUMN public_share BYTEA; -- the public share for the report (opaque VDAF message)
ALTER TABLE report_aggregations ADD COLUMN leader_extensions BYTEA; -- encoded sequence of Extension messages from Leader input share (opaque DAP messages)
ALTER TABLE report_aggregations ADD COLUMN leader_input_share BYTEA; -- encoded leader input share (opaque VDAF message)
ALTER TABLE report_aggregations ADD COLUMN helper_encrypted_input_share BYTEA; -- encoded HPKE ciphertext of helper input share (opaque DAP message)

0 comments on commit 76d9fc0

Please sign in to comment.