feat: curio: Add schemas for DDO deal support (#11805)

This commit is contained in:
Łukasz Magiera 2024-04-02 18:16:59 +02:00 committed by GitHub
parent a40cced0d9
commit 23a3c74720
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 14 additions and 0 deletions

View File

@ -115,6 +115,12 @@ create table sectors_sdr_initial_pieces (
f05_deal_start_epoch bigint, f05_deal_start_epoch bigint,
f05_deal_end_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
foreign key (sp_id, sector_number) references sectors_sdr_pipeline (sp_id, sector_number) on delete cascade, foreign key (sp_id, sector_number) references sectors_sdr_pipeline (sp_id, sector_number) on delete cascade,

View File

@ -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;