-
Notifications
You must be signed in to change notification settings - Fork 617
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(rollup-relayer): finalize bundle (#1411)
- Loading branch information
1 parent
beee0c2
commit bc9bc5d
Showing
28 changed files
with
2,088 additions
and
610 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
database/migrate/migrations/00022_add_bundle_hash_and_codec_version_to_batch.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
-- +goose Up | ||
-- +goose StatementBegin | ||
|
||
ALTER TABLE batch | ||
ADD COLUMN bundle_hash VARCHAR DEFAULT '', | ||
ADD COLUMN codec_version SMALLINT DEFAULT 0; | ||
|
||
CREATE INDEX idx_batch_bundle_hash ON batch(bundle_hash); | ||
CREATE INDEX idx_batch_index_codec_version ON batch(index, codec_version); | ||
|
||
-- +goose StatementEnd | ||
|
||
-- +goose Down | ||
-- +goose StatementBegin | ||
|
||
DROP INDEX IF EXISTS idx_batch_bundle_hash; | ||
DROP INDEX IF EXISTS idx_batch_index_codec_version; | ||
|
||
ALTER TABLE IF EXISTS batch | ||
DROP COLUMN IF EXISTS bundle_hash, | ||
DROP COLUMN IF EXISTS codec_version; | ||
|
||
-- +goose StatementEnd |
15 changes: 0 additions & 15 deletions
15
database/migrate/migrations/00022_add_bundle_hash_to_batch.sql
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.