From c386675aa43e5d2e17477741778e174488707450 Mon Sep 17 00:00:00 2001 From: opensides Date: Sat, 12 Jun 2004 09:35:40 +0000 Subject: [PATCH] adaptation pour dolibarr head --- pgsql/tables/llx_adherent.sql | 5 +++ pgsql/tables/llx_adherent_options_label.sql | 2 +- pgsql/tables/llx_album.sql | 2 +- pgsql/tables/llx_c_actioncomm.sql | 32 +++++++++++++++++ pgsql/tables/llx_c_chargesociales.sql | 32 +++++++++++++++++ pgsql/tables/llx_c_effectif.sql | 28 +++++++++++++++ pgsql/tables/llx_c_paiement.sql | 40 +++++++++++++++++++++ pgsql/tables/llx_c_pays.sql | 30 ++++++++++++++++ pgsql/tables/llx_c_propalst.sql | 28 +++++++++++++++ pgsql/tables/llx_c_stcomm.sql | 28 +++++++++++++++ pgsql/tables/llx_c_typent.sql | 27 ++++++++++++++ 11 files changed, 252 insertions(+), 2 deletions(-) create mode 100644 pgsql/tables/llx_c_actioncomm.sql create mode 100644 pgsql/tables/llx_c_chargesociales.sql create mode 100644 pgsql/tables/llx_c_effectif.sql create mode 100644 pgsql/tables/llx_c_paiement.sql create mode 100644 pgsql/tables/llx_c_pays.sql create mode 100644 pgsql/tables/llx_c_propalst.sql create mode 100644 pgsql/tables/llx_c_stcomm.sql create mode 100644 pgsql/tables/llx_c_typent.sql diff --git a/pgsql/tables/llx_adherent.sql b/pgsql/tables/llx_adherent.sql index c6b8d4e4c70..5e3f2502b06 100644 --- a/pgsql/tables/llx_adherent.sql +++ b/pgsql/tables/llx_adherent.sql @@ -1,4 +1,6 @@ -- =================================================================== +-- Copyright (C) 2004 Benoit Mortiero +-- -- $Id$ -- $Source$ -- @@ -29,6 +31,7 @@ create table llx_adherent statut smallint NOT NULL DEFAULT 0, public smallint NOT NULL DEFAULT 0, -- certain champ de la fiche sont ils public ou pas ? fk_adherent_type smallint, + morphy CHAR(3) CHECK (morphy ('mor','phy')) NOT NULL, -- personne morale / personne physique datevalid timestamp, -- date de validation datec timestamp, -- date de creation prenom varchar(50), @@ -42,7 +45,9 @@ create table llx_adherent login varchar(50) NOT NULL, -- login utilise pour editer sa fiche pass varchar(50), -- pass utilise pour editer sa fiche naiss date, -- date de naissance + photo varchar(255), -- url vers la photo de l'adherent fk_user_author integer NOT NULL, + fk_user_mod integer NOT NULL, fk_user_valid integer NOT NULL, datefin timestamp NOT NULL, -- date de fin de validité de la cotisation note text diff --git a/pgsql/tables/llx_adherent_options_label.sql b/pgsql/tables/llx_adherent_options_label.sql index aa7f3a56884..2751012f087 100644 --- a/pgsql/tables/llx_adherent_options_label.sql +++ b/pgsql/tables/llx_adherent_options_label.sql @@ -24,7 +24,7 @@ create table llx_adherent_options_label ( - name SERIAL PRIMARY KEY, -- nom de l'attribut + name varchar(64) PRIMARY KEY, -- nom de l'attribut tms timestamp, label varchar(255) NOT NULL -- label correspondant a l'attribut ); diff --git a/pgsql/tables/llx_album.sql b/pgsql/tables/llx_album.sql index 8d3a233f56f..09a3c6801d8 100644 --- a/pgsql/tables/llx_album.sql +++ b/pgsql/tables/llx_album.sql @@ -24,7 +24,7 @@ create table llx_album tms timestamp, ref varchar(12), title varchar(64), - annee smallint, -- pourquoi smallint(64) + annee smallint, description text, collectif smallint, fk_user_author integer diff --git a/pgsql/tables/llx_c_actioncomm.sql b/pgsql/tables/llx_c_actioncomm.sql new file mode 100644 index 00000000000..8c18a530f4f --- /dev/null +++ b/pgsql/tables/llx_c_actioncomm.sql @@ -0,0 +1,32 @@ +-- ======================================================================== +-- Copyright (C) 2001-2002 Rodolphe Quiedeville +-- Copyright (C) 2002-2003 Éric Seigne +-- Copyright (C) 2004 Benoit Mortier +-- +-- $Id$ +-- $Source$ +-- +-- 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. +-- +-- ======================================================================== + +create table llx_c_actioncomm +( + id SERIAL PRIMARY KEY, + libelle varchar(30), + todo int +); + + diff --git a/pgsql/tables/llx_c_chargesociales.sql b/pgsql/tables/llx_c_chargesociales.sql new file mode 100644 index 00000000000..cebcb2c623c --- /dev/null +++ b/pgsql/tables/llx_c_chargesociales.sql @@ -0,0 +1,32 @@ +-- ======================================================================== +-- Copyright (C) 2001-2002 Rodolphe Quiedeville +-- Copyright (C) 2002-2003 Éric Seigne +-- Copyright (C) 2004 Benoit Mortier +-- +-- 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$ +-- $Source$ +-- +-- ======================================================================== +create table llx_c_chargesociales +( + id SERIAL PRIMARY KEY, + libelle varchar(80), + deductible smallint NOT NULL default 0 +); + + + diff --git a/pgsql/tables/llx_c_effectif.sql b/pgsql/tables/llx_c_effectif.sql new file mode 100644 index 00000000000..0b5b28c8cbc --- /dev/null +++ b/pgsql/tables/llx_c_effectif.sql @@ -0,0 +1,28 @@ +-- ======================================================================== +-- Copyright (C) 2004 Benoit Mortier +-- +-- $Id$ +-- $Source$ +-- +-- 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. +-- +-- ======================================================================== + +create table llx_c_effectif +( + id SERIAL PRIMARY KEY, + libelle varchar(30) +); + diff --git a/pgsql/tables/llx_c_paiement.sql b/pgsql/tables/llx_c_paiement.sql new file mode 100644 index 00000000000..a46d82ab362 --- /dev/null +++ b/pgsql/tables/llx_c_paiement.sql @@ -0,0 +1,40 @@ +-- ======================================================================== +-- Copyright (C) 2001-2002 Rodolphe Quiedeville +-- Copyright (C) 2002-2003 Éric Seigne +-- Copyright (C) 2004 Benoit Mortier +-- +-- 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$ +-- $Source$ +-- +-- ======================================================================== + +-- +-- Type : +-- +-- 0 : entrée d'argent +-- 1 : sortie d'argent +-- 2 : entrée ou sortie d'argent + +create table llx_c_paiement +( + id SERIAL PRIMARY KEY, + libelle varchar(30), + type smallint +); + + + diff --git a/pgsql/tables/llx_c_pays.sql b/pgsql/tables/llx_c_pays.sql new file mode 100644 index 00000000000..593ecf995dc --- /dev/null +++ b/pgsql/tables/llx_c_pays.sql @@ -0,0 +1,30 @@ +-- ======================================================================== +-- Copyright (C) 2004 Benoit Mortier +-- +-- $Id$ +-- $Source$ +-- +-- 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. +-- +-- ======================================================================== + +create table llx_c_pays +( + id SERIAL PRIMARY KEY, + libelle varchar(25), + code char(2) NOT NULL +); + + diff --git a/pgsql/tables/llx_c_propalst.sql b/pgsql/tables/llx_c_propalst.sql new file mode 100644 index 00000000000..bb03f8f3777 --- /dev/null +++ b/pgsql/tables/llx_c_propalst.sql @@ -0,0 +1,28 @@ +-- =================================================================== +-- Copyright (C) 2004 Benoit Mortier +-- +-- $Id$ +-- $Source$ +-- +-- 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. +-- +-- =================================================================== + +create table llx_c_propalst +( + id SERIAL PRIMARY KEY, + label varchar(30) +); + diff --git a/pgsql/tables/llx_c_stcomm.sql b/pgsql/tables/llx_c_stcomm.sql new file mode 100644 index 00000000000..cc78b88e3b1 --- /dev/null +++ b/pgsql/tables/llx_c_stcomm.sql @@ -0,0 +1,28 @@ +-- ======================================================================== +-- Copyright (C) 2004 Benoit Mortier +-- +-- $Id$ +-- $Source$ +-- +-- 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. +-- +-- ======================================================================== + +create table llx_c_stcomm +( + id SERIAL PRIMARY KEY, + libelle varchar(30) +); + diff --git a/pgsql/tables/llx_c_typent.sql b/pgsql/tables/llx_c_typent.sql new file mode 100644 index 00000000000..ee2f1d3b355 --- /dev/null +++ b/pgsql/tables/llx_c_typent.sql @@ -0,0 +1,27 @@ +-- ======================================================================== +-- Copyright (C) 2004 Benoit Mortier +-- +-- $Id$ +-- $Source$ +-- +-- 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. +-- +-- ======================================================================== + +create table llx_c_typent +( + id SERIAL PRIMARY KEY, + libelle varchar(30) +);