Skip to content

Commit

Permalink
docs: miner_sector_posts table comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Alan Shaw committed Jan 25, 2021
1 parent d9b22c4 commit 0f3dc39
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions storage/migrations/27_table_and_column_comments.go
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,12 @@ func init() {
COMMENT ON COLUMN miner_sector_infos.sector_id IS 'Numeric identifier of the sector.';
COMMENT ON COLUMN miner_sector_infos.state_root IS 'CID of the parent state root for this epoch.';
COMMENT ON COLUMN miner_sector_infos.verified_deal_weight IS 'Integral of active verified deals over sector lifetime.';
COMMENT ON TABLE miner_sector_posts IS 'Proof of Spacetime for sectors.';
COMMENT ON COLUMN miner_sector_posts.height IS 'Epoch at which this PoSt message was executed.';
COMMENT ON COLUMN miner_sector_posts.miner_id IS 'Address of the miner who owns the sector.';
COMMENT ON COLUMN miner_sector_posts.post_message_cid IS 'CID of the PoSt message.';
COMMENT ON COLUMN miner_sector_posts.sector_id IS 'Numeric identifier of the sector.';
`)
down := batch(`
COMMENT ON TABLE actor_states IS NULL;
Expand Down Expand Up @@ -474,6 +480,12 @@ func init() {
COMMENT ON COLUMN miner_sector_infos.sector_id IS NULL;
COMMENT ON COLUMN miner_sector_infos.state_root IS NULL;
COMMENT ON COLUMN miner_sector_infos.verified_deal_weight IS NULL;
COMMENT ON TABLE miner_sector_posts IS NULL;
COMMENT ON COLUMN miner_sector_posts.height IS NULL;
COMMENT ON COLUMN miner_sector_posts.miner_id IS NULL;
COMMENT ON COLUMN miner_sector_posts.post_message_cid IS NULL;
COMMENT ON COLUMN miner_sector_posts.sector_id IS NULL;
`)

migrations.MustRegisterTx(up, down)
Expand Down

0 comments on commit 0f3dc39

Please sign in to comment.