forked from cerc-io/ipld-eth-server
6c77f369d9
* VatHeal Converter * Add VatHeal repository * Add VatHeal transformer * Add VatHeal to continuousLogSync command * Mark vat_init_checked as true when creating vat init records * Update urn and v converting * Return error if Repository.MarkCheckedHeader fails * Add deleting vat heal from test cleanup method
14 lines
402 B
SQL
14 lines
402 B
SQL
CREATE TABLE maker.vat_heal (
|
|
id SERIAL PRIMARY KEY,
|
|
header_id INTEGER NOT NULL REFERENCES headers (id) ON DELETE CASCADE,
|
|
urn varchar,
|
|
v varchar,
|
|
rad int,
|
|
tx_idx INTEGER NOT NULL,
|
|
raw_log JSONB,
|
|
UNIQUE (header_id, tx_idx)
|
|
);
|
|
|
|
ALTER TABLE public.checked_headers
|
|
ADD COLUMN vat_heal_checked BOOLEAN NOT NULL DEFAULT FALSE;
|