d496dad33c
- limit missing headers results set to 100 so that extraction doesn't excessively block delegation - wrap checked headers functions in repository struct - move storage repository to factory, to correspond with event repository path - remove unused files - reformat sql - remove line breaks in imports
24 lines
534 B
SQL
24 lines
534 B
SQL
-- +goose Up
|
|
ALTER TABLE full_sync_logs
|
|
DROP CONSTRAINT full_sync_log_uc;
|
|
|
|
ALTER TABLE full_sync_logs
|
|
ADD COLUMN receipt_id INT;
|
|
|
|
ALTER TABLE full_sync_logs
|
|
ADD CONSTRAINT receipts_fk
|
|
FOREIGN KEY (receipt_id)
|
|
REFERENCES full_sync_receipts (id)
|
|
ON DELETE CASCADE;
|
|
|
|
|
|
-- +goose Down
|
|
ALTER TABLE full_sync_logs
|
|
DROP CONSTRAINT receipts_fk;
|
|
|
|
ALTER TABLE full_sync_logs
|
|
DROP COLUMN receipt_id;
|
|
|
|
ALTER TABLE full_sync_logs
|
|
ADD CONSTRAINT full_sync_log_uc UNIQUE (block_number, index);
|