From 23a3c747207ed6d4e8a8c53eab07b9372d27e55e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Magiera?= Date: Tue, 2 Apr 2024 18:16:59 +0200 Subject: [PATCH] feat: curio: Add schemas for DDO deal support (#11805) --- lib/harmony/harmonydb/sql/20231217-sdr-pipeline.sql | 6 ++++++ .../harmonydb/sql/20240402-sdr-pipeline-ddo-deal-info.sql | 8 ++++++++ 2 files changed, 14 insertions(+) create mode 100644 lib/harmony/harmonydb/sql/20240402-sdr-pipeline-ddo-deal-info.sql diff --git a/lib/harmony/harmonydb/sql/20231217-sdr-pipeline.sql b/lib/harmony/harmonydb/sql/20231217-sdr-pipeline.sql index 3a75d8a96..31f103139 100644 --- a/lib/harmony/harmonydb/sql/20231217-sdr-pipeline.sql +++ b/lib/harmony/harmonydb/sql/20231217-sdr-pipeline.sql @@ -115,6 +115,12 @@ create table sectors_sdr_initial_pieces ( f05_deal_start_epoch bigint, f05_deal_end_epoch bigint, + -- ddo deal info + -- added in 20240402-sdr-pipeline-ddo-deal-info.sql + -- direct_start_epoch bigint, + -- direct_end_epoch bigint, + -- direct_piece_activation_manifest jsonb, + -- foreign key foreign key (sp_id, sector_number) references sectors_sdr_pipeline (sp_id, sector_number) on delete cascade, diff --git a/lib/harmony/harmonydb/sql/20240402-sdr-pipeline-ddo-deal-info.sql b/lib/harmony/harmonydb/sql/20240402-sdr-pipeline-ddo-deal-info.sql new file mode 100644 index 000000000..2230ef574 --- /dev/null +++ b/lib/harmony/harmonydb/sql/20240402-sdr-pipeline-ddo-deal-info.sql @@ -0,0 +1,8 @@ +ALTER TABLE sectors_sdr_initial_pieces + ADD COLUMN direct_start_epoch BIGINT; + +ALTER TABLE sectors_sdr_initial_pieces + ADD COLUMN direct_end_epoch BIGINT; + +ALTER TABLE sectors_sdr_initial_pieces + ADD COLUMN direct_piece_activation_manifest JSONB;