Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
colinlyguo committed Jul 7, 2024
1 parent d0f8777 commit d0dc7a1
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions database/migrate/migrations/00021_bundle.sql
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,13 @@ CREATE TABLE bundle (
deleted_at TIMESTAMP(0) DEFAULT NULL
);

CREATE INDEX idx_bundle_index_rollup_status ON bundle(index, rollup_status);
CREATE INDEX idx_bundle_hash ON bundle(hash);
CREATE INDEX idx_bundle_hash_proving_status ON bundle(hash, proving_status);
CREATE INDEX idx_bundle_index_desc ON bundle(index DESC);
CREATE INDEX idx_bundle_start_batch_index ON bundle (start_batch_index) WHERE deleted_at IS NULL;
CREATE INDEX idx_bundle_end_batch_index ON bundle (end_batch_index) WHERE deleted_at IS NULL;
CREATE INDEX idx_bundle_index_rollup_status ON bundle(index, rollup_status) WHERE deleted_at IS NULL;
CREATE INDEX idx_bundle_hash ON bundle(hash) WHERE deleted_at IS NULL;
CREATE INDEX idx_bundle_hash_proving_status ON bundle(hash, proving_status) WHERE deleted_at IS NULL;
CREATE INDEX idx_bundle_index_desc ON bundle(index DESC) WHERE deleted_at IS NULL;
CREATE INDEX idx_bundle_batch_proofs_status ON bundle(batch_proofs_status) WHERE deleted_at IS NULL;
CREATE INDEX idx_bundle_start_batch_index ON bundle(start_batch_index) WHERE deleted_at IS NULL;
CREATE INDEX idx_bundle_end_batch_index ON bundle(end_batch_index) WHERE deleted_at IS NULL;

COMMENT ON COLUMN bundle.batch_proofs_status IS 'undefined, pending, ready';
COMMENT ON COLUMN bundle.proving_status IS 'undefined, unassigned, assigned, proved (deprecated), verified, failed';
Expand Down

0 comments on commit d0dc7a1

Please sign in to comment.