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 3e9ea7ef7cf779fcdebe936b8edf9472664f3b02..b069819b3549d3cc1c3d61b6eb8813caced67f87 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 0e7c673ec693dd46bcdb1bb105de8b35b6eaca5a..9d8c826743a7c3d50ac95b4479ac7034e620f013 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,