From 6db46b53be679151c14d3fd2af7c6b739a4f73f2 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 18 May 2009 10:55:58 +0000 Subject: [PATCH] New: Add supplier ref on supplier order --- mysql/migration/2.6.0-2.7.0.sql | 5 +++++ mysql/tables/llx_commande_fournisseur.sql | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/mysql/migration/2.6.0-2.7.0.sql b/mysql/migration/2.6.0-2.7.0.sql index 8dba6dbaadc..b0d03a5650c 100644 --- a/mysql/migration/2.6.0-2.7.0.sql +++ b/mysql/migration/2.6.0-2.7.0.sql @@ -19,6 +19,7 @@ alter table llx_facture_fourn add column tms timestamp after datef; update llx_facture set tms = datec where tms <= 0; update llx_facture_fourn set tms = datec where tms <= 0; + -- Clean no more required parameters delete from llx_const where name = 'MAIN_MODULE_COMMERCIAL'; delete from llx_const where name like 'MAIN_MODULE_%_DIR_OUTPUT'; @@ -137,3 +138,7 @@ UPDATE llx_const SET entity=0 WHERE name='SYSLOG_LEVEL'; -- Fix to solve forgoten names on keys ALTER TABLE llx_dolibarr_modules drop primary KEY; ALTER TABLE llx_dolibarr_modules ADD PRIMARY KEY pk_dolibarr_modules (numero, entity); + + +alter table llx_commande_fournisseur add column ref_supplier varchar(30) after entity; + diff --git a/mysql/tables/llx_commande_fournisseur.sql b/mysql/tables/llx_commande_fournisseur.sql index 422ce2fef1a..a6ed81393d9 100644 --- a/mysql/tables/llx_commande_fournisseur.sql +++ b/mysql/tables/llx_commande_fournisseur.sql @@ -24,10 +24,11 @@ create table llx_commande_fournisseur rowid integer AUTO_INCREMENT PRIMARY KEY, tms timestamp, fk_soc integer NOT NULL, - fk_projet integer DEFAULT 0, -- projet auquel est rattache la commande ref varchar(30) NOT NULL, -- order number - entity integer DEFAULT 1 NOT NULL, -- multi company id + entity integer DEFAULT 1 NOT NULL, -- multi company id + ref_supplier varchar(30), + fk_projet integer DEFAULT 0, -- projet auquel est rattache la commande date_creation datetime, -- date de creation date_valid datetime, -- date de validation date_cloture datetime, -- date de cloture @@ -46,7 +47,6 @@ create table llx_commande_fournisseur note text, note_public text, model_pdf varchar(50), - fk_methode_commande integer default 0 )type=innodb;