Skip to content
Snippets Groups Projects
Commit e5d96398 authored by Regis Houssin's avatar Regis Houssin
Browse files

Works on migration management positioning lines

parent e7fda6b5
No related branches found
No related tags found
No related merge requests found
......@@ -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);
-- ============================================================================
-- 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
\ No newline at end of file
-- ============================================================================
-- 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;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment