Skip to content

Commit

Permalink
unify categories
Browse files Browse the repository at this point in the history
unify categories

unify categories
  • Loading branch information
frederic34 committed Jul 4, 2023
1 parent 2e14655 commit f1cdfef
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 3 deletions.
33 changes: 33 additions & 0 deletions htdocs/install/mysql/data/llx_c_category.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
-- 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 3 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, see <https://www.gnu.org/licenses/>.
--
--

-- WARNING
-- Do not place a comment at the end of the line, this file is parsed during
-- installation and all '--' symbols are removed.
--
INSERT INTO llx_c_category (rowid,module,classname) VALUES (0, 'product', 'Product');
INSERT INTO llx_c_category (rowid,module,classname) VALUES (1, 'supplier', 'Fournisseur');
INSERT INTO llx_c_category (rowid,module,classname) VALUES (2, 'customer', 'Societe');
INSERT INTO llx_c_category (rowid,module,classname) VALUES (3, 'member', 'Adherent');
INSERT INTO llx_c_category (rowid,module,classname) VALUES (4, 'contact', 'Contact');
INSERT INTO llx_c_category (rowid,module,classname) VALUES (5, 'bank_account', 'Account');
INSERT INTO llx_c_category (rowid,module,classname) VALUES (6, 'project', 'Project');
INSERT INTO llx_c_category (rowid,module,classname) VALUES (7, 'user', 'User');
INSERT INTO llx_c_category (rowid,module,classname) VALUES (8, 'bank_line', 'AccountLine');
INSERT INTO llx_c_category (rowid,module,classname) VALUES (9, 'warehouse', 'Entrepot');
INSERT INTO llx_c_category (rowid,module,classname) VALUES (10, 'actioncomm', 'Actioncomm');
INSERT INTO llx_c_category (rowid,module,classname) VALUES (11, 'website_page', 'WebsitePage');
INSERT INTO llx_c_category (rowid,module,classname) VALUES (12, 'ticket', 'Ticket');
INSERT INTO llx_c_category (rowid,module,classname) VALUES (13, 'knowledgemanagement', 'KnowledgeRecord');
2 changes: 1 addition & 1 deletion htdocs/install/mysql/migration/18.0.0-19.0.0.sql
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@


-- v19
create table llx_c_category
CREATE TABLE llx_c_category
(
rowid integer AUTO_INCREMENT PRIMARY KEY NOT NULL,
classname varchar(32) NOT NULL,
Expand Down
2 changes: 1 addition & 1 deletion htdocs/install/mysql/tables/llx_c_category.sql
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
--
-- ========================================================================

create table llx_c_category
CREATE TABLE llx_c_category
(
rowid integer AUTO_INCREMENT PRIMARY KEY NOT NULL,
classname varchar(32) NOT NULL,
Expand Down
2 changes: 1 addition & 1 deletion htdocs/install/mysql/tables/llx_element_category.sql
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
--
-- ============================================================================

create table llx_element_category
CREATE TABLE llx_element_category
(
rowid integer AUTO_INCREMENT PRIMARY KEY,
fk_category integer NOT NULL,
Expand Down

0 comments on commit f1cdfef

Please sign in to comment.