forked from cerc-io/ipld-eth-server
Squash changes to tend and dent tables
This commit is contained in:
parent
21239a986d
commit
99dc12c1fd
@ -1,7 +1,7 @@
|
|||||||
CREATE TABLE maker.tend (
|
CREATE TABLE maker.tend (
|
||||||
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,
|
||||||
bid_id NUMERIC NOT NULL UNIQUE,
|
bid_id NUMERIC NOT NULL,
|
||||||
lot NUMERIC,
|
lot NUMERIC,
|
||||||
bid NUMERIC,
|
bid NUMERIC,
|
||||||
guy TEXT,
|
guy TEXT,
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
CREATE TABLE maker.dent (
|
CREATE TABLE maker.dent (
|
||||||
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,
|
||||||
bid_id NUMERIC NOT NULL UNIQUE,
|
bid_id NUMERIC NOT NULL,
|
||||||
lot NUMERIC,
|
lot NUMERIC,
|
||||||
bid NUMERIC,
|
bid NUMERIC,
|
||||||
guy BYTEA,
|
guy BYTEA,
|
||||||
|
@ -1,5 +0,0 @@
|
|||||||
ALTER TABLE maker.tend
|
|
||||||
add constraint tend_bid_id_key unique (bid_id);
|
|
||||||
|
|
||||||
ALTER TABLE maker.dent
|
|
||||||
add constraint dent_bid_id_key unique (bid_id);
|
|
@ -1,5 +0,0 @@
|
|||||||
ALTER TABLE maker.tend
|
|
||||||
drop constraint tend_bid_id_key;
|
|
||||||
|
|
||||||
ALTER TABLE maker.dent
|
|
||||||
drop constraint dent_bid_id_key;
|
|
Loading…
Reference in New Issue
Block a user