Works on migration management positioning lines
This commit is contained in:
parent
e7fda6b566
commit
e5d963984b
@ -41,9 +41,19 @@ ALTER TABLE llx_expedition MODIFY date_expedition datetime;
|
||||
ALTER TABLE llx_expedition MODIFY date_delivery datetime NULL;
|
||||
|
||||
ALTER TABLE llx_societe ADD COLUMN canvas varchar(32) DEFAULT NULL AFTER default_lang;
|
||||
--UPDATE llx_societe SET canvas='default' WHERE canvas IS NULL;
|
||||
--UPDATE llx_societe SET canvas='default' WHERE fk_typent <> 8;
|
||||
--UPDATE llx_societe SET canvas='individual' WHERE fk_typent = 8;
|
||||
|
||||
ALTER TABLE llx_cond_reglement RENAME TO llx_c_payment_term;
|
||||
ALTER TABLE llx_expedition_methode RENAME TO llx_c_shipment_mode;
|
||||
|
||||
create table llx_element_rang
|
||||
(
|
||||
rowid integer AUTO_INCREMENT PRIMARY KEY,
|
||||
fk_parent integer NOT NULL,
|
||||
parenttype varchar(16) NOT NULL,
|
||||
fk_child integer NOT NULL,
|
||||
childtype varchar(16) NOT NULL,
|
||||
rang integer DEFAULT 0
|
||||
) type=innodb;
|
||||
|
||||
ALTER TABLE llx_element_rang ADD UNIQUE INDEX idx_element_rang_idx1 (fk_parent, parenttype, fk_child, childtype);
|
||||
ALTER TABLE llx_element_rang ADD INDEX idx_element_rang_fk_parent (fk_parent);
|
||||
|
||||
28
htdocs/install/mysql/tables/llx_element_rang.key.sql
Normal file
28
htdocs/install/mysql/tables/llx_element_rang.key.sql
Normal file
@ -0,0 +1,28 @@
|
||||
-- ============================================================================
|
||||
-- Copyright (C) 2010 Regis Houssin <regis@dolibarr.fr>
|
||||
--
|
||||
-- This program is free software; you can redistribute it and/or modify
|
||||
-- it under the terms of the GNU General Public License as published by
|
||||
-- the Free Software Foundation; either version 2 of the License, or
|
||||
-- (at your option) any later version.
|
||||
--
|
||||
-- This program is distributed in the hope that it will be useful,
|
||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
-- GNU General Public License for more details.
|
||||
--
|
||||
-- You should have received a copy of the GNU General Public License
|
||||
-- along with this program; if not, write to the Free Software
|
||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
--
|
||||
-- $Id$
|
||||
-- ============================================================================
|
||||
|
||||
|
||||
ALTER TABLE llx_element_rang ADD UNIQUE INDEX idx_element_rang_idx1 (fk_parent, parenttype, fk_child, childtype);
|
||||
|
||||
|
||||
ALTER TABLE llx_element_rang ADD INDEX idx_element_rang_fk_parent (fk_parent);
|
||||
|
||||
-- Pas de contraite sur fk_parent et fk_child car pointe sur differentes tables
|
||||
|
||||
30
htdocs/install/mysql/tables/llx_element_rang.sql
Normal file
30
htdocs/install/mysql/tables/llx_element_rang.sql
Normal file
@ -0,0 +1,30 @@
|
||||
-- ============================================================================
|
||||
-- Copyright (C) 2010 Regis Houssin <regis@dolibarr.fr>
|
||||
--
|
||||
-- This program is free software; you can redistribute it and/or modify
|
||||
-- it under the terms of the GNU General Public License as published by
|
||||
-- the Free Software Foundation; either version 2 of the License, or
|
||||
-- (at your option) any later version.
|
||||
--
|
||||
-- This program is distributed in the hope that it will be useful,
|
||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
-- GNU General Public License for more details.
|
||||
--
|
||||
-- You should have received a copy of the GNU General Public License
|
||||
-- along with this program; if not, write to the Free Software
|
||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
--
|
||||
-- $Id$
|
||||
|
||||
|
||||
create table llx_element_rang
|
||||
(
|
||||
rowid integer AUTO_INCREMENT PRIMARY KEY,
|
||||
fk_parent integer NOT NULL,
|
||||
parenttype varchar(16) NOT NULL,
|
||||
fk_child integer NOT NULL,
|
||||
childtype varchar(16) NOT NULL,
|
||||
rang integer DEFAULT 0
|
||||
) type=innodb;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user