diff --git a/hsarback/database/data.sql b/hsarback/database/data.sql index 5895bcc..77a52ea 100644 --- a/hsarback/database/data.sql +++ b/hsarback/database/data.sql @@ -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; -- diff --git a/hsarback/database/schema.sql b/hsarback/database/schema.sql index 93d89e9..6b2b5f0 100644 --- a/hsarback/database/schema.sql +++ b/hsarback/database/schema.sql @@ -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)))