Skip to content

Commit

Permalink
cleanup unused table from schema
Browse files Browse the repository at this point in the history
  • Loading branch information
pk910 committed Jun 17, 2024
1 parent e53629d commit a19bd55
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 27 deletions.
11 changes: 0 additions & 11 deletions db/schema/pgsql/20240616024911_mev-relay-index.sql
Original file line number Diff line number Diff line change
Expand Up @@ -45,17 +45,6 @@ CREATE INDEX IF NOT EXISTS "mev_blocks_block_value_gwei_idx"
ON public."mev_blocks"
("block_value_gwei" ASC NULLS FIRST);


CREATE TABLE IF NOT EXISTS mev_blocks_seenby (
block_hash bytea NOT NULL,
mev_relay INT NOT NULL,
CONSTRAINT mev_blocks_pkey PRIMARY KEY (block_hash)
);

CREATE INDEX IF NOT EXISTS "mev_blocks_seenby_mev_relay_idx"
ON public."mev_blocks_seenby"
("mev_relay" ASC NULLS FIRST);

-- +goose StatementEnd
-- +goose Down
-- +goose StatementBegin
Expand Down
11 changes: 0 additions & 11 deletions db/schema/sqlite/20240616024911_mev-relay-index.sql
Original file line number Diff line number Diff line change
Expand Up @@ -45,17 +45,6 @@ CREATE INDEX IF NOT EXISTS "mev_blocks_block_value_gwei_idx"
ON "mev_blocks"
("block_value_gwei" ASC);


CREATE TABLE IF NOT EXISTS mev_blocks_seenby (
block_hash BLOB NOT NULL,
mev_relay INT NOT NULL,
CONSTRAINT mev_blocks_pkey PRIMARY KEY (block_hash)
);

CREATE INDEX IF NOT EXISTS "mev_blocks_seenby_mev_relay_idx"
ON "mev_blocks_seenby"
("mev_relay" ASC);

-- +goose StatementEnd
-- +goose Down
-- +goose StatementBegin
Expand Down
5 changes: 0 additions & 5 deletions dbtypes/dbtypes.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,11 +143,6 @@ type MevBlock struct {
BlockValueGwei uint64 `db:"block_value_gwei"`
}

type MevBlockSeenby struct {
BlockHash []byte `db:"block_hash"`
MevRelay uint64 `db:"mev_relay"`
}

type DepositTx struct {
Index uint64 `db:"deposit_index"`
BlockNumber uint64 `db:"block_number"`
Expand Down

0 comments on commit a19bd55

Please sign in to comment.