6583ce72b8
* Logs now are attached to receipt, so removing block + index unique constraint
12 lines
180 B
PL/PgSQL
12 lines
180 B
PL/PgSQL
BEGIN;
|
|
|
|
ALTER TABLE logs
|
|
DROP CONSTRAINT receipts_fk;
|
|
|
|
ALTER TABLE logs
|
|
DROP COLUMN receipt_id;
|
|
|
|
ALTER TABLE logs
|
|
ADD CONSTRAINT log_uc UNIQUE (block_number, index);
|
|
|
|
COMMIT; |