Skip to content

Commit

Permalink
docs: miner_sector_events table comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Alan Shaw committed Jan 21, 2021
1 parent 71775a7 commit dadb75f
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions storage/migrations/27_table_and_column_comments.go
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,13 @@ func init() {
COMMENT ON COLUMN miner_sector_deals.height IS 'Epoch at which this deal was added/updated.';
COMMENT ON COLUMN miner_sector_deals.miner_id IS 'Address of the miner the deal is with.';
COMMENT ON COLUMN miner_sector_deals.sector_id IS 'Numeric identifier of the sector the deal is for.';
COMMENT ON TABLE miner_sector_events IS 'Sector events on-chain per Miner/Sector.';
COMMENT ON COLUMN miner_sector_events.event IS 'Name of the event that occurred.';
COMMENT ON COLUMN miner_sector_events.height IS 'Epoch at which this event occurred.';
COMMENT ON COLUMN miner_sector_events.miner_id IS 'Address of the miner who owns the sector.';
COMMENT ON COLUMN miner_sector_events.sector_id IS 'Numeric identifier of the sector.';
COMMENT ON COLUMN miner_sector_events.state_root IS 'CID of the parent state root for this epoch.';
`)
down := batch(`
COMMENT ON TABLE actor_states IS NULL;
Expand Down Expand Up @@ -432,6 +439,13 @@ func init() {
COMMENT ON COLUMN miner_sector_deals.height IS NULL;
COMMENT ON COLUMN miner_sector_deals.miner_id IS NULL;
COMMENT ON COLUMN miner_sector_deals.sector_id IS NULL;
COMMENT ON TABLE miner_sector_events IS NULL;
COMMENT ON COLUMN miner_sector_events.event IS NULL;
COMMENT ON COLUMN miner_sector_events.height IS NULL;
COMMENT ON COLUMN miner_sector_events.miner_id IS NULL;
COMMENT ON COLUMN miner_sector_events.sector_id IS NULL;
COMMENT ON COLUMN miner_sector_events.state_root IS NULL;
`)

migrations.MustRegisterTx(up, down)
Expand Down

0 comments on commit dadb75f

Please sign in to comment.