Squash changes to tend and dent tables

This commit is contained in:
Elizabeth Engelman 2018-11-01 15:03:08 -05:00
parent 21239a986d
commit 99dc12c1fd
4 changed files with 4 additions and 14 deletions

View File

@ -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,
@ -13,4 +13,4 @@ CREATE TABLE maker.tend (
); );
ALTER TABLE public.checked_headers ALTER TABLE public.checked_headers
ADD COLUMN tend_checked BOOLEAN NOT NULL DEFAULT FALSE; ADD COLUMN tend_checked BOOLEAN NOT NULL DEFAULT FALSE;

View File

@ -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,
@ -13,4 +13,4 @@ CREATE TABLE maker.dent (
); );
ALTER TABLE public.checked_headers ALTER TABLE public.checked_headers
ADD COLUMN dent_checked BOOLEAN NOT NULL DEFAULT FALSE; ADD COLUMN dent_checked BOOLEAN NOT NULL DEFAULT FALSE;

View File

@ -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);

View File

@ -1,5 +0,0 @@
ALTER TABLE maker.tend
drop constraint tend_bid_id_key;
ALTER TABLE maker.dent
drop constraint dent_bid_id_key;