From 054f38176552a52a6f17154400edca708c37c4da Mon Sep 17 00:00:00 2001 From: Peter Hormanns Date: Mon, 29 Apr 2013 11:32:58 +0200 Subject: [PATCH] fix test data --- hsarback/database/data.sql | 4 ++-- hsarback/database/schema.sql | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/hsarback/database/data.sql b/hsarback/database/data.sql index 77a52ea..90ff719 100644 --- a/hsarback/database/data.sql +++ b/hsarback/database/data.sql @@ -61,8 +61,8 @@ INSERT INTO component (basepacket_id, basecomponent_id, min_quantity, max_quanti -- -- Table: business_partner -- -INSERT INTO business_partner (member_id, member_code, member_since, shares_signed) - VALUES (10000, 'hsh00-hsh', current_date, 0); +INSERT INTO business_partner (member_id, member_code, member_since, shares_signed, free, indicator_vat) + VALUES (10000, 'hsh00-hsh', current_date, 0, TRUE, 'NET'); -- -- table: contact diff --git a/hsarback/database/schema.sql b/hsarback/database/schema.sql index 04b6480..60ba901 100644 --- a/hsarback/database/schema.sql +++ b/hsarback/database/schema.sql @@ -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)),