From 9f10fd7915ca2e0dec920418a86799b1ef66d6ba Mon Sep 17 00:00:00 2001 From: Laurent Destailleur <eldy@users.sourceforge.net> Date: Sun, 5 Dec 2010 20:32:59 +0000 Subject: [PATCH] New: Add field ref_ext to allow external program to add their reference --- htdocs/install/mysql/migration/2.9.0-3.0.0.sql | 7 ++++--- htdocs/install/mysql/tables/llx_product.sql | 4 ++++ 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/htdocs/install/mysql/migration/2.9.0-3.0.0.sql b/htdocs/install/mysql/migration/2.9.0-3.0.0.sql index 3e9ea7ef7cf..b069819b354 100644 --- a/htdocs/install/mysql/migration/2.9.0-3.0.0.sql +++ b/htdocs/install/mysql/migration/2.9.0-3.0.0.sql @@ -124,6 +124,7 @@ ALTER TABLE llx_commande ADD COLUMN ref_ext varchar(30) after entity; ALTER TABLE llx_propal ADD COLUMN ref_ext varchar(30) after entity; ALTER TABLE llx_user ADD COLUMN ref_ext varchar(30) after entity; ALTER TABLE llx_societe ADD COLUMN ref_ext varchar(60) after entity; +ALTER TABLE llx_product ADD COLUMN ref_ext varchar(32) after entity; ALTER TABLE llx_mailing_cibles CHANGE COLUMN url source_url integer; @@ -141,9 +142,9 @@ ALTER TABLE llx_facture_rec ADD COLUMN nb_gen_max integer DEFAULT NULL; ALTER TABLE llx_user ADD COLUMN openid varchar(255); -- Enhance Withdrawal module -INSERT INTO llx_action_def (rowid,code,titre,description,objet_type) values (7,'NOTIFY_TRN_WITHDRAW','Transmission prélèvement','Executed when a withdrawal is transmited','withdraw'); -INSERT INTO llx_action_def (rowid,code,titre,description,objet_type) values (8,'NOTIFY_CRD_WITHDRAW','Créditer prélèvement','Executed when a withdrawal is credited','withdraw'); -INSERT INTO llx_action_def (rowid,code,titre,description,objet_type) values (9,'NOTIFY_EMT_WITHDRAW','Emission prélèvement','Executed when a withdrawal is emited','withdraw'); +INSERT INTO llx_action_def (rowid,code,titre,description,objet_type) values (7,'NOTIFY_TRN_WITHDRAW','Transmit withdraw','Executed when a withdrawal is transmited','withdraw'); +INSERT INTO llx_action_def (rowid,code,titre,description,objet_type) values (8,'NOTIFY_CRD_WITHDRAW','Credite withdraw','Executed when a withdrawal is credited','withdraw'); +INSERT INTO llx_action_def (rowid,code,titre,description,objet_type) values (9,'NOTIFY_EMT_WITHDRAW','Emit withdraw','Executed when a withdrawal is emited','withdraw'); ALTER TABLE llx_prelevement_notifications MODIFY action varchar(32); diff --git a/htdocs/install/mysql/tables/llx_product.sql b/htdocs/install/mysql/tables/llx_product.sql index 0e7c673ec69..9d8c826743a 100644 --- a/htdocs/install/mysql/tables/llx_product.sql +++ b/htdocs/install/mysql/tables/llx_product.sql @@ -28,8 +28,12 @@ create table llx_product tms timestamp, virtual tinyint DEFAULT 0 NOT NULL, -- Not used. Used by external modules. Value 0 for physical product, 1 for virtual product fk_parent integer DEFAULT 0, -- Not used. Used by external modules. Virtual product id + ref varchar(32) NOT NULL, entity integer DEFAULT 1 NOT NULL, -- Multi company id + + ref_ext varchar(32), -- reference into an external system (not used by dolibarr) + label varchar(255) NOT NULL, description text, note text, -- GitLab