diff --git a/pgsql/data/data.sql b/pgsql/data/data.sql index 5d2007e0409..90d4f5e4859 100644 --- a/pgsql/data/data.sql +++ b/pgsql/data/data.sql @@ -22,89 +22,89 @@ -- Valeurs pour les bases de langues francaises -- -delete from c_chargesociales; -insert into c_chargesociales (id,libelle,deductible) values ( 1, 'Allocations familiales',1); -insert into c_chargesociales (id,libelle,deductible) values ( 2, 'GSG Deductible',1); -insert into c_chargesociales (id,libelle,deductible) values ( 3, 'GSG/CRDS NON Deductible',0); +delete from llx_c_chargesociales; +insert into llx_c_chargesociales (id,libelle,deductible) values ( 1, 'Allocations familiales',1); +insert into llx_c_chargesociales (id,libelle,deductible) values ( 2, 'GSG Deductible',1); +insert into llx_c_chargesociales (id,libelle,deductible) values ( 3, 'GSG/CRDS NON Deductible',0); -delete from c_actioncomm; -insert into c_actioncomm (id,libelle) values ( 0, '-'); -insert into c_actioncomm (id,libelle) values ( 1, 'Appel Téléphonique'); -insert into c_actioncomm (id,libelle) values ( 2, 'Envoi Fax'); -insert into c_actioncomm (id,libelle) values ( 3, 'Envoi propal par mail'); -insert into c_actioncomm (id,libelle) values ( 4, 'Envoi d\'un email'); -insert into c_actioncomm (id,libelle) values ( 5, 'Rendez-vous'); -insert into c_actioncomm (id,libelle) values ( 9, 'Envoi Facture'); -insert into c_actioncomm (id,libelle) values (10, 'Relance effectuée'); -insert into c_actioncomm (id,libelle) values (11, 'Clôture'); +delete from llx_c_actioncomm; +insert into llx_c_actioncomm (id,libelle) values ( 0, '-'); +insert into llx_c_actioncomm (id,libelle) values ( 1, 'Appel Téléphonique'); +insert into llx_c_actioncomm (id,libelle) values ( 2, 'Envoi Fax'); +insert into llx_c_actioncomm (id,libelle) values ( 3, 'Envoi propal par mail'); +insert into llx_c_actioncomm (id,libelle) values ( 4, 'Envoi d\'un email'); +insert into llx_c_actioncomm (id,libelle) values ( 5, 'Rendez-vous'); +insert into llx_c_actioncomm (id,libelle) values ( 9, 'Envoi Facture'); +insert into llx_c_actioncomm (id,libelle) values (10, 'Relance effectuée'); +insert into llx_c_actioncomm (id,libelle) values (11, 'Clôture'); -delete from c_stcomm; -insert into c_stcomm (id,libelle) values (-1, 'NE PAS CONTACTER'); -insert into c_stcomm (id,libelle) values ( 0, 'Jamais contacté'); -insert into c_stcomm (id,libelle) values ( 1, 'A contacter'); -insert into c_stcomm (id,libelle) values ( 2, 'Contact en cours'); -insert into c_stcomm (id,libelle) values ( 3, 'Contactée'); +delete from llx_c_stcomm; +insert into llx_c_stcomm (id,libelle) values (-1, 'NE PAS CONTACTER'); +insert into llx_c_stcomm (id,libelle) values ( 0, 'Jamais contacté'); +insert into llx_c_stcomm (id,libelle) values ( 1, 'A contacter'); +insert into llx_c_stcomm (id,libelle) values ( 2, 'Contact en cours'); +insert into llx_c_stcomm (id,libelle) values ( 3, 'Contactée'); -delete from c_typent; -insert into c_typent (id,libelle) values ( 0, 'Indifférent'); -insert into c_typent (id,libelle) values ( 1, 'Start-up'); -insert into c_typent (id,libelle) values ( 2, 'Grand groupe'); -insert into c_typent (id,libelle) values ( 3, 'PME/PMI'); -insert into c_typent (id,libelle) values ( 4, 'Administration'); -insert into c_typent (id,libelle) values (100, 'Autres'); +delete from llx_c_typent; +insert into llx_c_typent (id,libelle) values ( 0, 'Indifférent'); +insert into llx_c_typent (id,libelle) values ( 1, 'Start-up'); +insert into llx_c_typent (id,libelle) values ( 2, 'Grand groupe'); +insert into llx_c_typent (id,libelle) values ( 3, 'PME/PMI'); +insert into llx_c_typent (id,libelle) values ( 4, 'Administration'); +insert into llx_c_typent (id,libelle) values (100, 'Autres'); -delete from c_pays; -insert into c_pays (id,libelle,code) values (0, 'France', 'FR'); -insert into c_pays (id,libelle,code) values (2, 'Belgique', 'BE'); -insert into c_pays (id,libelle,code) values (3, 'Italie', 'IT'); -insert into c_pays (id,libelle,code) values (4, 'Espagne', 'ES'); -insert into c_pays (id,libelle,code) values (5, 'Allemagne', 'DE'); -insert into c_pays (id,libelle,code) values (6, 'Suisse', 'CH'); -insert into c_pays (id,libelle,code) values (7, 'Royaume uni', 'GB'); -insert into c_pays (id,libelle,code) values (8, 'Irlande', 'IE'); -insert into c_pays (id,libelle,code) values (9, 'Chine', 'CN'); -insert into c_pays (id,libelle,code) values (10, 'Tunisie', 'TN'); -insert into c_pays (id,libelle,code) values (11, 'Etats Unis', 'US'); -insert into c_pays (id,libelle,code) values (12, 'Maroc', 'MA'); -insert into c_pays (id,libelle,code) values (13, 'Algérie', 'DZ'); -insert into c_pays (id,libelle,code) values (14, 'Canada', 'CA'); -insert into c_pays (id,libelle,code) values (15, 'Togo', 'TG'); -insert into c_pays (id,libelle,code) values (16, 'Gabon', 'GA'); -insert into c_pays (id,libelle,code) values (17, 'Pays Bas', 'NL'); -insert into c_pays (id,libelle,code) values (18, 'Hongrie', 'HU'); -insert into c_pays (id,libelle,code) values (19, 'Russie', 'RU'); -insert into c_pays (id,libelle,code) values (20, 'Suède', 'SE'); -insert into c_pays (id,libelle,code) values (21, 'Côte d\'Ivoire', 'CI'); -insert into c_pays (id,libelle,code) values (23, 'Sénégal', 'SN'); -insert into c_pays (id,libelle,code) values (24, 'Argentine', 'AR'); -insert into c_pays (id,libelle,code) values (25, 'Cameroun', 'CM'); +delete from llx_c_pays; +insert into llx_c_pays (id,libelle,code) values (0, 'France', 'FR'); +insert into llx_c_pays (id,libelle,code) values (2, 'Belgique', 'BE'); +insert into llx_c_pays (id,libelle,code) values (3, 'Italie', 'IT'); +insert into llx_c_pays (id,libelle,code) values (4, 'Espagne', 'ES'); +insert into llx_c_pays (id,libelle,code) values (5, 'Allemagne', 'DE'); +insert into llx_c_pays (id,libelle,code) values (6, 'Suisse', 'CH'); +insert into llx_c_pays (id,libelle,code) values (7, 'Royaume uni', 'GB'); +insert into llx_c_pays (id,libelle,code) values (8, 'Irlande', 'IE'); +insert into llx_c_pays (id,libelle,code) values (9, 'Chine', 'CN'); +insert into llx_c_pays (id,libelle,code) values (10, 'Tunisie', 'TN'); +insert into llx_c_pays (id,libelle,code) values (11, 'Etats Unis', 'US'); +insert into llx_c_pays (id,libelle,code) values (12, 'Maroc', 'MA'); +insert into llx_c_pays (id,libelle,code) values (13, 'Algérie', 'DZ'); +insert into llx_c_pays (id,libelle,code) values (14, 'Canada', 'CA'); +insert into llx_c_pays (id,libelle,code) values (15, 'Togo', 'TG'); +insert into llx_c_pays (id,libelle,code) values (16, 'Gabon', 'GA'); +insert into llx_c_pays (id,libelle,code) values (17, 'Pays Bas', 'NL'); +insert into llx_c_pays (id,libelle,code) values (18, 'Hongrie', 'HU'); +insert into llx_c_pays (id,libelle,code) values (19, 'Russie', 'RU'); +insert into llx_c_pays (id,libelle,code) values (20, 'Suède', 'SE'); +insert into llx_c_pays (id,libelle,code) values (21, 'Côte d\'Ivoire', 'CI'); +insert into llx_c_pays (id,libelle,code) values (23, 'Sénégal', 'SN'); +insert into llx_c_pays (id,libelle,code) values (24, 'Argentine', 'AR'); +insert into llx_c_pays (id,libelle,code) values (25, 'Cameroun', 'CM'); -delete from c_effectif; -insert into c_effectif (id,libelle) values (0, 'Non spécifié'); -insert into c_effectif (id,libelle) values (1, '1 - 5'); -insert into c_effectif (id,libelle) values (2, '6 - 10'); -insert into c_effectif (id,libelle) values (3, '11 - 50'); -insert into c_effectif (id,libelle) values (4, '51 - 100'); -insert into c_effectif (id,libelle) values (5, '100 - 500'); -insert into c_effectif (id,libelle) values (6, '> 500'); +delete from llx_c_effectif; +insert into llx_c_effectif (id,libelle) values (0, 'Non spécifié'); +insert into llx_c_effectif (id,libelle) values (1, '1 - 5'); +insert into llx_c_effectif (id,libelle) values (2, '6 - 10'); +insert into llx_c_effectif (id,libelle) values (3, '11 - 50'); +insert into llx_c_effectif (id,libelle) values (4, '51 - 100'); +insert into llx_c_effectif (id,libelle) values (5, '100 - 500'); +insert into llx_c_effectif (id,libelle) values (6, '> 500'); -delete from c_paiement; -insert into c_paiement (id,libelle,type) values (0, '-', 3); -insert into c_paiement (id,libelle,type) values (1, 'TIP', 1); -insert into c_paiement (id,libelle,type) values (2, 'Virement', 2); -insert into c_paiement (id,libelle,type) values (3, 'Prélèvement', 1); -insert into c_paiement (id,libelle,type) values (4, 'Liquide', 0); -insert into c_paiement (id,libelle,type) values (5, 'Paiement en ligne', 0); -insert into c_paiement (id,libelle,type) values (6, 'CB', 1); -insert into c_paiement (id,libelle,type) values (7, 'Chèque', 2); +delete from llx_c_paiement; +insert into llx_c_paiement (id,libelle,type) values (0, '-', 3); +insert into llx_c_paiement (id,libelle,type) values (1, 'TIP', 1); +insert into llx_c_paiement (id,libelle,type) values (2, 'Virement', 2); +insert into llx_c_paiement (id,libelle,type) values (3, 'Prélèvement', 1); +insert into llx_c_paiement (id,libelle,type) values (4, 'Liquide', 0); +insert into llx_c_paiement (id,libelle,type) values (5, 'Paiement en ligne', 0); +insert into llx_c_paiement (id,libelle,type) values (6, 'CB', 1); +insert into llx_c_paiement (id,libelle,type) values (7, 'Chèque', 2); -delete from c_propalst; -insert into c_propalst (id,label) values (0, 'Brouillon'); -insert into c_propalst (id,label) values (1, 'Ouverte'); -insert into c_propalst (id,label) values (2, 'Signée'); -insert into c_propalst (id,label) values (3, 'Non Signée'); -insert into c_propalst (id,label) values (4, 'Facturée'); +delete from llx_c_propalst; +insert into llx_c_propalst (id,label) values (0, 'Brouillon'); +insert into llx_c_propalst (id,label) values (1, 'Ouverte'); +insert into llx_c_propalst (id,label) values (2, 'Signée'); +insert into llx_c_propalst (id,label) values (3, 'Non Signée'); +insert into llx_c_propalst (id,label) values (4, 'Facturée'); -- -- Utilisateur diff --git a/pgsql/tables/Makefile b/pgsql/tables/Makefile index 5939382eda7..6df3f3ef595 100644 --- a/pgsql/tables/Makefile +++ b/pgsql/tables/Makefile @@ -27,15 +27,15 @@ OPTIONS=-U $(OWNER) all: show create: - $(SQL) $(OPTIONS) $(BASE) < actioncomm.sql - $(SQL) $(OPTIONS) $(BASE) < c_actioncomm.sql - $(SQL) $(OPTIONS) $(BASE) < c_chargesociales.sql - $(SQL) $(OPTIONS) $(BASE) < c_effectif.sql - $(SQL) $(OPTIONS) $(BASE) < c_paiement.sql - $(SQL) $(OPTIONS) $(BASE) < c_pays.sql - $(SQL) $(OPTIONS) $(BASE) < c_propalst.sql - $(SQL) $(OPTIONS) $(BASE) < c_stcomm.sql - $(SQL) $(OPTIONS) $(BASE) < c_typent.sql + $(SQL) $(OPTIONS) $(BASE) < llx_actioncomm.sql + $(SQL) $(OPTIONS) $(BASE) < llx_c_actioncomm.sql + $(SQL) $(OPTIONS) $(BASE) < llx_c_chargesociales.sql + $(SQL) $(OPTIONS) $(BASE) < llx_c_effectif.sql + $(SQL) $(OPTIONS) $(BASE) < llx_c_paiement.sql + $(SQL) $(OPTIONS) $(BASE) < llx_c_pays.sql + $(SQL) $(OPTIONS) $(BASE) < llx_c_propalst.sql + $(SQL) $(OPTIONS) $(BASE) < llx_c_stcomm.sql + $(SQL) $(OPTIONS) $(BASE) < llx_c_typent.sql $(SQL) $(OPTIONS) $(BASE) < llx_adherent.sql $(SQL) $(OPTIONS) $(BASE) < llx_bank.sql $(SQL) $(OPTIONS) $(BASE) < llx_bank_account.sql diff --git a/pgsql/tables/c_actioncomm.sql b/pgsql/tables/c_actioncomm.sql index 01d448a0c09..f3ad217e88a 100644 --- a/pgsql/tables/c_actioncomm.sql +++ b/pgsql/tables/c_actioncomm.sql @@ -21,7 +21,7 @@ -- -- ======================================================================== -create table c_actioncomm +create table llx_c_actioncomm ( id SERIAL, libelle varchar(30), diff --git a/pgsql/tables/c_chargesociales.sql b/pgsql/tables/c_chargesociales.sql index bb2d14039cd..df69f925747 100644 --- a/pgsql/tables/c_chargesociales.sql +++ b/pgsql/tables/c_chargesociales.sql @@ -20,7 +20,7 @@ -- $Source$ -- -- ======================================================================== -create table c_chargesociales +create table llx_c_chargesociales ( id SERIAL, libelle varchar(80), diff --git a/pgsql/tables/c_effectif.sql b/pgsql/tables/c_effectif.sql index b65c967932b..eff3fcb0938 100644 --- a/pgsql/tables/c_effectif.sql +++ b/pgsql/tables/c_effectif.sql @@ -18,7 +18,7 @@ -- -- ======================================================================== -create table c_effectif +create table llx_c_effectif ( id SERIAL, libelle varchar(30) diff --git a/pgsql/tables/c_paiement.sql b/pgsql/tables/c_paiement.sql index a68ba4eb628..c9fc0c28cb1 100644 --- a/pgsql/tables/c_paiement.sql +++ b/pgsql/tables/c_paiement.sql @@ -28,7 +28,7 @@ -- 1 : sortie d'argent -- 2 : entrée ou sortie d'argent -create table c_paiement +create table llx_c_paiement ( id SERIAL, libelle varchar(30), diff --git a/pgsql/tables/c_pays.sql b/pgsql/tables/c_pays.sql index a23423e66eb..f908266d6c0 100644 --- a/pgsql/tables/c_pays.sql +++ b/pgsql/tables/c_pays.sql @@ -18,7 +18,7 @@ -- -- ======================================================================== -create table c_pays +create table llx_c_pays ( id SERIAL, libelle varchar(25), diff --git a/pgsql/tables/c_propalst.sql b/pgsql/tables/c_propalst.sql index d78809bbb60..f09c691ab0a 100644 --- a/pgsql/tables/c_propalst.sql +++ b/pgsql/tables/c_propalst.sql @@ -18,7 +18,7 @@ -- -- =================================================================== -create table c_propalst +create table llx_c_propalst ( id SERIAL, label varchar(30) diff --git a/pgsql/tables/c_stcomm.sql b/pgsql/tables/c_stcomm.sql index 783504b6734..10ea2730e7f 100644 --- a/pgsql/tables/c_stcomm.sql +++ b/pgsql/tables/c_stcomm.sql @@ -18,7 +18,7 @@ -- -- ======================================================================== -create table c_stcomm +create table llx_c_stcomm ( id SERIAL, libelle varchar(30) diff --git a/pgsql/tables/c_typent.sql b/pgsql/tables/c_typent.sql index f920951b32a..7ec4d30f35e 100644 --- a/pgsql/tables/c_typent.sql +++ b/pgsql/tables/c_typent.sql @@ -18,7 +18,7 @@ -- -- ======================================================================== -create table c_typent +create table llx_c_typent ( id SERIAL, libelle varchar(30) diff --git a/pgsql/tables/drop.sql b/pgsql/tables/drop.sql index 02b35f65cc2..ed993355bec 100644 --- a/pgsql/tables/drop.sql +++ b/pgsql/tables/drop.sql @@ -20,29 +20,29 @@ -- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -- -drop table actioncomm; +drop table llx_actioncomm; -drop table bots; +drop table llx_bots; -drop table c_anexpe; +drop table llx_c_anexpe; -drop table c_actioncomm; +drop table llx_c_actioncomm; -drop table c_chargesociales; +drop table llx_c_chargesociales; -drop table c_effectif; +drop table llx_c_effectif; -drop table c_paiement ; +drop table llx_c_paiement ; -drop table c_pays ; +drop table llx_c_pays ; -drop table c_prestatype ; +drop table llx_c_prestatype ; -drop table c_propalst ; +drop table llx_c_propalst ; -drop table c_stcomm; +drop table llx_c_stcomm; -drop table c_typent ; +drop table llx_c_typent ; drop table llx_adherent;