fix sql
This commit is contained in:
parent
23a3d24d11
commit
93e7e736d0
@ -121,7 +121,7 @@ CREATE TABLE business_partner (
|
||||
shares_signed integer NOT NULL,
|
||||
uid_vat character varying(20),
|
||||
free boolean NOT NULL,
|
||||
indicator_vat varying(20) NOT NULL,
|
||||
indicator_vat character varying(20) NOT NULL,
|
||||
CONSTRAINT ckc_member_id_business CHECK (((member_id >= 10000) AND (member_id <= 99999))),
|
||||
CONSTRAINT ckc_shares_signed_business CHECK ((shares_signed >= 0)),
|
||||
CONSTRAINT ckt_business_partner CHECK ( ( ((member_since IS NULL) AND (member_until IS NULL)) OR ((member_since IS NOT NULL) AND (member_until IS NULL)) OR ((member_since IS NOT NULL) AND (member_until IS NOT NULL) AND (member_since < member_until)) ) AND ((member_code)::text ~~ 'hsh00-%'::text)),
|
||||
|
Loading…
Reference in New Issue
Block a user