add attribute free to packet definition

This commit is contained in:
Peter Hormanns 2013-04-25 14:32:02 +02:00
commit b4ba115987
2 changed files with 5 additions and 6 deletions

View File

@ -112,11 +112,11 @@ INSERT INTO hive (hive_name, inet_addr_id, description)
--
-- table: packet
--
INSERT INTO packet (packet_name, bp_id, hive_id, created, cur_inet_addr_id)
SELECT 'hsh00', business_partner.bp_id, hive.hive_id, current_date, inet_addr.inet_addr_id FROM business_partner, hive, inet_addr
INSERT INTO packet (packet_name, bp_id, hive_id, created, cur_inet_addr_id, free)
SELECT 'hsh00', business_partner.bp_id, hive.hive_id, current_date, inet_addr.inet_addr_id, true FROM business_partner, hive, inet_addr
WHERE hive_name='h99' AND inet_addr = inet '176.9.242.72' AND member_id = 10000;
INSERT INTO packet (packet_name, bp_id, hive_id, created, cur_inet_addr_id)
SELECT 'hsh01', business_partner.bp_id, hive.hive_id, current_date, inet_addr.inet_addr_id FROM business_partner, hive, inet_addr
INSERT INTO packet (packet_name, bp_id, hive_id, created, cur_inet_addr_id, free)
SELECT 'hsh01', business_partner.bp_id, hive.hive_id, current_date, inet_addr.inet_addr_id, true FROM business_partner, hive, inet_addr
WHERE hive_name='h99' AND inet_addr = inet '176.9.242.73' AND member_id = 10000;
--

View File

@ -411,8 +411,7 @@ CREATE TABLE packet (
hive_id integer NOT NULL,
created date NOT NULL,
cancelled date,
order_number character varying(20),
webserver_group character varying(10),
free boolean NOT NULL,
cur_inet_addr_id integer,
old_inet_addr_id integer,
CONSTRAINT ckt_packet CHECK (((cancelled IS NULL) OR (cancelled > created)))