From 4d9e137d0f30f456538a666f0dbb998456e244a4 Mon Sep 17 00:00:00 2001 From: opensides Date: Sat, 5 Jun 2004 23:33:32 +0000 Subject: [PATCH] nouvelle version pour dolibarr 1.1.0 --- pgsql/tables/llx_action_def.sql | 31 ++++++++++++++ pgsql/tables/llx_actioncomm.sql | 45 +++++++++++++++++++++ pgsql/tables/llx_adherent_options.sql | 34 ++++++++++++++++ pgsql/tables/llx_adherent_options_label.sql | 30 ++++++++++++++ pgsql/tables/llx_album.sql | 32 +++++++++++++++ pgsql/tables/llx_album_to_groupart.sql | 30 ++++++++++++++ pgsql/tables/llx_appro.sql | 34 ++++++++++++++++ pgsql/tables/llx_auteur.sql | 31 ++++++++++++++ pgsql/tables/llx_bank_url.sql | 30 ++++++++++++++ 9 files changed, 297 insertions(+) create mode 100644 pgsql/tables/llx_action_def.sql create mode 100644 pgsql/tables/llx_actioncomm.sql create mode 100644 pgsql/tables/llx_adherent_options.sql create mode 100644 pgsql/tables/llx_adherent_options_label.sql create mode 100644 pgsql/tables/llx_album.sql create mode 100644 pgsql/tables/llx_album_to_groupart.sql create mode 100644 pgsql/tables/llx_appro.sql create mode 100644 pgsql/tables/llx_auteur.sql create mode 100644 pgsql/tables/llx_bank_url.sql diff --git a/pgsql/tables/llx_action_def.sql b/pgsql/tables/llx_action_def.sql new file mode 100644 index 00000000000..c22ba65f8f4 --- /dev/null +++ b/pgsql/tables/llx_action_def.sql @@ -0,0 +1,31 @@ +-- =================================================================== +-- Copyright (C) 2003 Rodolphe Quiedeville +-- 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_action_def +( + rowid SERIAL PRIMARY KEY, + tms timestamp, + titre varchar(255) NOT NULL, + description text, + objet_type CHAR(10) CHECK (objet_type IN ('ficheinter','facture','propale')) +); diff --git a/pgsql/tables/llx_actioncomm.sql b/pgsql/tables/llx_actioncomm.sql new file mode 100644 index 00000000000..8e34e5308e3 --- /dev/null +++ b/pgsql/tables/llx_actioncomm.sql @@ -0,0 +1,45 @@ +-- ======================================================================== +-- Copyright (C) 2001-2003 Rodolphe Quiedeville +-- 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. +-- +-- Actions commerciales +-- +-- ======================================================================== + +create table llx_actioncomm +( + id SERIAL PRIMARY KEY, + datea timestamp, -- action date + fk_action integer, + label varchar(50), -- libelle de l'action + fk_soc integer, + fk_contact integer default 0, + fk_user_action integer, -- id de la personne qui doit effectuer l'action + fk_user_author integer, + priority smallint, + percent smallint, + note text, + propalrowid integer, + fk_facture integer +); + + + + diff --git a/pgsql/tables/llx_adherent_options.sql b/pgsql/tables/llx_adherent_options.sql new file mode 100644 index 00000000000..bf1a459f3a1 --- /dev/null +++ b/pgsql/tables/llx_adherent_options.sql @@ -0,0 +1,34 @@ +-- =================================================================== +-- Copyright (C) 2002-2003 Rodolphe Quiedeville +-- Copyright (C) 2002-2003 Jean-Louis Bergamo +-- 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_adherent_options +( + optid SERIAL PRIMARY KEY, + tms timestamp, + adhid integer NOT NULL -- id de l'adherent auquel correspond ces attributs optionnel +-- telfixe varchar(15), +-- teljob varchar(15) +); + +CREATE UNIQUE INDEX llx_adherent_options_adhid ON llx_adherent_options (adhid); diff --git a/pgsql/tables/llx_adherent_options_label.sql b/pgsql/tables/llx_adherent_options_label.sql new file mode 100644 index 00000000000..aa7f3a56884 --- /dev/null +++ b/pgsql/tables/llx_adherent_options_label.sql @@ -0,0 +1,30 @@ +-- =================================================================== +-- Copyright (C) 2002-2003 Rodolphe Quiedeville +-- Copyright (C) 2002-2003 Jean-Louis Bergamo +-- 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_adherent_options_label +( + name SERIAL 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 new file mode 100644 index 00000000000..8d3a233f56f --- /dev/null +++ b/pgsql/tables/llx_album.sql @@ -0,0 +1,32 @@ +-- ============================================================================ +-- 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. +-- +-- ============================================================================ + +create table llx_album +( + rowid serial PRIMARY KEY, + osc_id integer NOT NULL, + tms timestamp, + ref varchar(12), + title varchar(64), + annee smallint, -- pourquoi smallint(64) + description text, + collectif smallint, + fk_user_author integer +); + diff --git a/pgsql/tables/llx_album_to_groupart.sql b/pgsql/tables/llx_album_to_groupart.sql new file mode 100644 index 00000000000..db155f34b75 --- /dev/null +++ b/pgsql/tables/llx_album_to_groupart.sql @@ -0,0 +1,30 @@ +-- ============================================================================ +-- Copyright (C) 2003 Rodolphe Quiedeville +-- 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_album_to_groupart +( + fk_album integer NOT NULL, + fk_groupart integer NOT NULL, + + UNIQUE (fk_album, fk_groupart) +); diff --git a/pgsql/tables/llx_appro.sql b/pgsql/tables/llx_appro.sql new file mode 100644 index 00000000000..93e67372d9e --- /dev/null +++ b/pgsql/tables/llx_appro.sql @@ -0,0 +1,34 @@ +-- ============================================================================ +-- Copyright (C) 2003 Rodolphe Quiedeville +-- 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_appro +( + rowid SERIAL PRIMARY KEY, + datec timestamp, + tms timestamp, + fk_product integer NOT NULL, + quantity smallint NOT NULL, + price real, + fk_user_author integer +); + diff --git a/pgsql/tables/llx_auteur.sql b/pgsql/tables/llx_auteur.sql new file mode 100644 index 00000000000..78d08ab99fc --- /dev/null +++ b/pgsql/tables/llx_auteur.sql @@ -0,0 +1,31 @@ +-- ============================================================================ +-- Copyright (C) 2003 Rodolphe Quiedeville +-- 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_auteur +( + rowid SERIAL PRIMARY KEY, + oscid integer NOT NULL, + tms timestamp, + nom varchar(255), + fk_user_author integer +); diff --git a/pgsql/tables/llx_bank_url.sql b/pgsql/tables/llx_bank_url.sql new file mode 100644 index 00000000000..e93c5bb3bc4 --- /dev/null +++ b/pgsql/tables/llx_bank_url.sql @@ -0,0 +1,30 @@ +-- =================================================================== +-- Copyright (C) 2003 Rodolphe Quiedeville +-- +-- 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_bank_url +( + rowid SERIAL PRIMARY KEY, + fk_bank integer, + url_id integer, + url varchar(255), + label varchar(255) +);