From 297c1d754b5a89c7bd85f20fb6a2e253c20dbe27 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sun, 8 Aug 2004 19:37:44 +0000 Subject: [PATCH] Trad: Ajout champ lang sur les tables du dictionnaire qui doivent etre multi-langue. --- mysql/tables/llx_c_actioncomm.sql | 3 ++- mysql/tables/llx_c_civilite.sql | 7 +++++-- mysql/tables/llx_c_effectif.sql | 2 ++ mysql/tables/llx_c_paiement.sql | 2 ++ mysql/tables/llx_c_pays.sql | 4 +++- mysql/tables/llx_c_propalst.sql | 2 ++ mysql/tables/llx_c_stcomm.sql | 2 ++ mysql/tables/llx_c_typent.sql | 2 ++ 8 files changed, 20 insertions(+), 4 deletions(-) diff --git a/mysql/tables/llx_c_actioncomm.sql b/mysql/tables/llx_c_actioncomm.sql index e01ac1c6651..aa339213ba1 100644 --- a/mysql/tables/llx_c_actioncomm.sql +++ b/mysql/tables/llx_c_actioncomm.sql @@ -24,8 +24,9 @@ create table llx_c_actioncomm ( id integer PRIMARY KEY, - type varchar(10) default 'system' not null, lang varchar(8) default 'all' not null, + type varchar(10) default 'system' not null, libelle varchar(30) not null, + active tinyint default 1, todo tinyint )type=innodb; diff --git a/mysql/tables/llx_c_civilite.sql b/mysql/tables/llx_c_civilite.sql index 1ad08cc2b49..2709d2eb486 100644 --- a/mysql/tables/llx_c_civilite.sql +++ b/mysql/tables/llx_c_civilite.sql @@ -1,5 +1,6 @@ -- ======================================================================== -- Copyright (C) 2004 Benoit Mortier +-- Copyright (C) 2004 Laurent Destailleur -- -- 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 @@ -22,8 +23,10 @@ create table llx_c_civilite ( rowid integer PRIMARY KEY, - fk_pays integer default 1, - civilite varchar(50), + lang varchar(8) default 'all' not null, + code varchar(6), + fk_pays integer default 0, + civilite varchar(50), active tinyint default 1 )type=innodb; diff --git a/mysql/tables/llx_c_effectif.sql b/mysql/tables/llx_c_effectif.sql index 13907ab4abf..cf81ee0d236 100644 --- a/mysql/tables/llx_c_effectif.sql +++ b/mysql/tables/llx_c_effectif.sql @@ -1,5 +1,6 @@ -- ======================================================================== -- Copyright (C) 2001-2002,2004 Rodolphe Quiedeville +-- Copyright (C) 2004 Laurent Destailleur -- -- $Id$ -- $Source$ @@ -23,6 +24,7 @@ create table llx_c_effectif ( id integer PRIMARY KEY, + lang varchar(8) default 'all' not null, libelle varchar(30) )type=innodb; diff --git a/mysql/tables/llx_c_paiement.sql b/mysql/tables/llx_c_paiement.sql index faf7951c66c..7a541cc528f 100644 --- a/mysql/tables/llx_c_paiement.sql +++ b/mysql/tables/llx_c_paiement.sql @@ -1,5 +1,6 @@ -- ======================================================================== -- Copyright (C) 2001-2004 Rodolphe Quiedeville +-- Copyright (C) 2004 Laurent Destailleur -- -- 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 @@ -29,6 +30,7 @@ create table llx_c_paiement ( id integer PRIMARY KEY, + lang varchar(8) default 'all' not null, code varchar(6), libelle varchar(30), type smallint diff --git a/mysql/tables/llx_c_pays.sql b/mysql/tables/llx_c_pays.sql index 7fd7fd63c01..6b485599e75 100644 --- a/mysql/tables/llx_c_pays.sql +++ b/mysql/tables/llx_c_pays.sql @@ -1,5 +1,6 @@ -- ======================================================================== -- Copyright (C) 2001-2002,2004 Rodolphe Quiedeville +-- Copyright (C) 2004 Laurent Destailleur -- -- $Id$ -- $Source$ @@ -23,9 +24,10 @@ create table llx_c_pays ( rowid integer PRIMARY KEY, + lang varchar(8) default 'all' not null, libelle varchar(25) NOT NULL, code char(2) NOT NULL, - active tinyint default 1 NOT NULL + active tinyint default 1 NOT NULL )type=innodb; diff --git a/mysql/tables/llx_c_propalst.sql b/mysql/tables/llx_c_propalst.sql index 9d79e7b9da8..276892d8af2 100644 --- a/mysql/tables/llx_c_propalst.sql +++ b/mysql/tables/llx_c_propalst.sql @@ -1,5 +1,6 @@ -- =================================================================== -- Copyright (C) 2001-2002,2004 Rodolphe Quiedeville +-- Copyright (C) 2004 Laurent Destailleur -- -- $Id$ -- $Source$ @@ -23,6 +24,7 @@ create table llx_c_propalst ( id smallint PRIMARY KEY, + lang varchar(8) default 'all' not null, label varchar(30) )type=innodb; diff --git a/mysql/tables/llx_c_stcomm.sql b/mysql/tables/llx_c_stcomm.sql index e85fecca75e..ee658e98b03 100644 --- a/mysql/tables/llx_c_stcomm.sql +++ b/mysql/tables/llx_c_stcomm.sql @@ -1,5 +1,6 @@ -- ======================================================================== -- Copyright (C) 2001-2002,2004 Rodolphe Quiedeville +-- Copyright (C) 2004 Laurent Destailleur -- -- $Id$ -- $Source$ @@ -23,6 +24,7 @@ create table llx_c_stcomm ( id integer PRIMARY KEY, + lang varchar(8) default 'all' not null, libelle varchar(30) )type=innodb; diff --git a/mysql/tables/llx_c_typent.sql b/mysql/tables/llx_c_typent.sql index a6e1407e2dc..a44145d4769 100644 --- a/mysql/tables/llx_c_typent.sql +++ b/mysql/tables/llx_c_typent.sql @@ -1,5 +1,6 @@ -- ======================================================================== -- Copyright (C) 2001-2002,2004 Rodolphe Quiedeville +-- Copyright (C) 2004 Laurent Destailleur -- -- $Id$ -- $Source$ @@ -23,5 +24,6 @@ create table llx_c_typent ( id integer PRIMARY KEY, + lang varchar(8) default 'all' not null, libelle varchar(30) )type=innodb;