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 (
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,

View File

@ -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,

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;