Skip to content

Commit

Permalink
feat: curio: Add schemas for DDO deal support (#11805)
Browse files Browse the repository at this point in the history
  • Loading branch information
magik6k authored Apr 2, 2024
1 parent a40cced commit 23a3c74
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/harmony/harmonydb/sql/20231217-sdr-pipeline.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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,

Expand Down
Original file line number Diff line number Diff line change
@@ -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;

0 comments on commit 23a3c74

Please sign in to comment.