Vat.fold: store ilk and urn as text instead of bytea

This commit is contained in:
David Terry 2018-10-04 18:48:06 +03:00
parent 8fb573351e
commit f79a017b48
2 changed files with 4 additions and 4 deletions

View File

@ -1,8 +1,8 @@
CREATE TABLE maker.vat_fold ( CREATE TABLE maker.vat_fold (
id SERIAL PRIMARY KEY, id SERIAL PRIMARY KEY,
header_id INTEGER NOT NULL REFERENCES headers (id) ON DELETE CASCADE, header_id INTEGER NOT NULL REFERENCES headers (id) ON DELETE CASCADE,
ilk bytea, ilk text,
urn bytea, urn text,
rate numeric, rate numeric,
tx_idx INTEGER NOT NULL, tx_idx INTEGER NOT NULL,
raw_log JSONB, raw_log JSONB,

View File

@ -704,8 +704,8 @@ ALTER SEQUENCE maker.tend_id_seq OWNED BY maker.tend.id;
CREATE TABLE maker.vat_fold ( CREATE TABLE maker.vat_fold (
id integer NOT NULL, id integer NOT NULL,
header_id integer NOT NULL, header_id integer NOT NULL,
ilk bytea, ilk text,
urn bytea, urn text,
rate numeric, rate numeric,
tx_idx integer NOT NULL, tx_idx integer NOT NULL,
raw_log jsonb raw_log jsonb