Skip to content

Commit

Permalink
feat(migrations): add finalized el rewards table
Browse files Browse the repository at this point in the history
  • Loading branch information
invis-bitfly committed Jan 9, 2025
1 parent fb25b14 commit 4dbe124
Showing 1 changed file with 21 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
-- +goose Up
-- +goose StatementBegin
CREATE TABLE execution_rewards_finalized (
epoch int4 NOT NULL,
slot int4 NOT NULL,
proposer int4 NOT NULL,
value numeric NOT NULL,
CONSTRAINT finalized_execution_rewards_pk PRIMARY KEY (slot)
);
-- +goose StatementEnd
-- +goose StatementBegin
CREATE INDEX finalized_execution_rewards_epoch_idx ON execution_rewards_finalized USING btree (epoch);
-- +goose StatementEnd
-- +goose StatementBegin
CREATE UNIQUE INDEX finalized_execution_rewards_proposer_idx ON execution_rewards_finalized USING btree (proposer, slot);
-- +goose StatementEnd

-- +goose Down
-- +goose StatementBegin
DROP TABLE execution_rewards_finalized;
-- +goose StatementEnd

0 comments on commit 4dbe124

Please sign in to comment.