diff --git a/sql/develop.sql b/sql/develop.sql index 513b465a3bfedb6467b56041cd3f86969e51a7a0..2e8ab7fde32682ff7407d472d8efa6228140e252 100755 --- a/sql/develop.sql +++ b/sql/develop.sql @@ -678,6 +678,10 @@ ALTER TABLE message_exchange ADD res_id_master numeric default NULL; ALTER TABLE contact_addresses DROP COLUMN IF EXISTS external_contact_id; ALTER TABLE contact_addresses ADD COLUMN external_contact_id character varying(128); +/** ADD NEW COLUMN IS CONTACTS_V2 **/ +ALTER TABLE contacts_v2 DROP COLUMN IF EXISTS is_external_contact; +ALTER TABLE contacts_v2 ADD COLUMN is_external_contact character(1) DEFAULT 'N'; + DROP SEQUENCE IF EXISTS contact_communication_id_seq CASCADE; CREATE SEQUENCE contact_communication_id_seq INCREMENT 1 @@ -742,4 +746,4 @@ ALTER TABLE notifications DROP COLUMN IF EXISTS rss_url_template; UPDATE notifications SET event_id = 'baskets' WHERE notification_id = 'BASKETS'; DELETE FROM parameters where id = 'user_quota'; -INSERT INTO parameters (id, param_value_string, param_value_int, param_value_date) VALUES ('user_quota', '', 0, NULL); \ No newline at end of file +INSERT INTO parameters (id, param_value_string, param_value_int, param_value_date) VALUES ('user_quota', '', 0, NULL); diff --git a/sql/structure.sql b/sql/structure.sql index 4b7702a111d6e293c2d05138e7f5d1130205e64a..023c78fa792a11ae63773973664e72f8c00ee82f 100755 --- a/sql/structure.sql +++ b/sql/structure.sql @@ -1189,6 +1189,7 @@ CREATE TABLE contacts_v2 contact_id bigint NOT NULL DEFAULT nextval('contact_v2_id_seq'::regclass), contact_type bigint NOT NULL, is_corporate_person character(1) DEFAULT 'Y'::bpchar, + is_external_contact character(1) DEFAULT 'N'::bpchar, society character varying(255), society_short character varying(32), firstname character varying(255),