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 (
|
||||
id SERIAL PRIMARY KEY,
|
||||
header_id INTEGER NOT NULL REFERENCES headers (id) ON DELETE CASCADE,
|
||||
bid_id NUMERIC NOT NULL UNIQUE,
|
||||
bid_id NUMERIC NOT NULL,
|
||||
lot NUMERIC,
|
||||
bid NUMERIC,
|
||||
guy TEXT,
|
||||
@ -13,4 +13,4 @@ CREATE TABLE maker.tend (
|
||||
);
|
||||
|
||||
ALTER TABLE public.checked_headers
|
||||
ADD COLUMN tend_checked BOOLEAN NOT NULL DEFAULT FALSE;
|
||||
ADD COLUMN tend_checked BOOLEAN NOT NULL DEFAULT FALSE;
|
||||
|
@ -1,7 +1,7 @@
|
||||
CREATE TABLE maker.dent (
|
||||
id SERIAL PRIMARY KEY,
|
||||
header_id INTEGER NOT NULL REFERENCES headers (id) ON DELETE CASCADE,
|
||||
bid_id NUMERIC NOT NULL UNIQUE,
|
||||
bid_id NUMERIC NOT NULL,
|
||||
lot NUMERIC,
|
||||
bid NUMERIC,
|
||||
guy BYTEA,
|
||||
@ -13,4 +13,4 @@ CREATE TABLE maker.dent (
|
||||
);
|
||||
|
||||
ALTER TABLE public.checked_headers
|
||||
ADD COLUMN dent_checked BOOLEAN NOT NULL DEFAULT FALSE;
|
||||
ADD COLUMN dent_checked BOOLEAN NOT NULL DEFAULT FALSE;
|
||||
|
@ -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