From 56cf1c5c74c560dd849bceb18bf2ba8c2f8b5b1f Mon Sep 17 00:00:00 2001 From: opensides Date: Sat, 5 Jun 2004 23:50:11 +0000 Subject: [PATCH] nouvelle version pour dolibarr 1.1.0 --- pgsql/tables/llx_groupart.sql | 33 ++++++++++++++++++++ pgsql/tables/llx_lieu_concert.sql | 33 ++++++++++++++++++++ pgsql/tables/llx_livre.sql | 45 ++++++++++++++++++++++++++++ pgsql/tables/llx_livre_to_auteur.sql | 31 +++++++++++++++++++ pgsql/tables/llx_newsletter.sql | 45 ++++++++++++++++++++++++++++ pgsql/tables/llx_notify.sql | 33 ++++++++++++++++++++ pgsql/tables/llx_notify_def.sql | 32 ++++++++++++++++++++ pgsql/tables/llx_paiementfourn.sql | 35 ++++++++++++++++++++++ 8 files changed, 287 insertions(+) create mode 100644 pgsql/tables/llx_groupart.sql create mode 100644 pgsql/tables/llx_lieu_concert.sql create mode 100644 pgsql/tables/llx_livre.sql create mode 100644 pgsql/tables/llx_livre_to_auteur.sql create mode 100644 pgsql/tables/llx_newsletter.sql create mode 100644 pgsql/tables/llx_notify.sql create mode 100644 pgsql/tables/llx_notify_def.sql create mode 100644 pgsql/tables/llx_paiementfourn.sql diff --git a/pgsql/tables/llx_groupart.sql b/pgsql/tables/llx_groupart.sql new file mode 100644 index 00000000000..6f8cbb45d4d --- /dev/null +++ b/pgsql/tables/llx_groupart.sql @@ -0,0 +1,33 @@ +-- ============================================================================ +-- 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_groupart +( + rowid SERIAL PRIMARY KEY, + osc_id integer NOT NULL, + tms timestamp, + nom varchar(64), + groupart CHAR(8) CHECK (groupart IN ('artiste','groupe')) NOT NULL, + fk_user_author integer +); + diff --git a/pgsql/tables/llx_lieu_concert.sql b/pgsql/tables/llx_lieu_concert.sql new file mode 100644 index 00000000000..9f294ec16f5 --- /dev/null +++ b/pgsql/tables/llx_lieu_concert.sql @@ -0,0 +1,33 @@ +-- ============================================================================ +-- 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_lieu_concert +( + rowid SERIAL PRIMARY KEY, + tms timestamp, + nom varchar(64) NOT NULL, + description text, + ville varchar(64) NOT NULL, + fk_user_author integer +); + diff --git a/pgsql/tables/llx_livre.sql b/pgsql/tables/llx_livre.sql new file mode 100644 index 00000000000..6b9fc0ac81f --- /dev/null +++ b/pgsql/tables/llx_livre.sql @@ -0,0 +1,45 @@ +-- ============================================================================ +-- 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_livre +( + rowid SERIAL PRIMARY KEY, + oscid integer NOT NULL, + tms timestamp, + status smallint, + date_ajout timestamp, + ref varchar(12), + title varchar(64), + annee smallint, + description text, + prix decimal(15,4), + fk_editeur integer, + fk_user_author integer, + frais_de_port smallint default 1, + +UNIQUE(ref) + +); + + + diff --git a/pgsql/tables/llx_livre_to_auteur.sql b/pgsql/tables/llx_livre_to_auteur.sql new file mode 100644 index 00000000000..5fd1a8c74e3 --- /dev/null +++ b/pgsql/tables/llx_livre_to_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_livre_to_auteur +( + fk_livre integer NOT NULL, + fk_auteur integer NOT NULL, + + UNIQUE(fk_livre, fk_auteur) +); + diff --git a/pgsql/tables/llx_newsletter.sql b/pgsql/tables/llx_newsletter.sql new file mode 100644 index 00000000000..cbddbc8dd23 --- /dev/null +++ b/pgsql/tables/llx_newsletter.sql @@ -0,0 +1,45 @@ +-- ============================================================================ +-- 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_newsletter +( + rowid SERIAL PRIMARY KEY, + datec timestamp, + tms timestamp, + email_subject varchar(32) NOT NULL, + email_from_name varchar(255) NOT NULL, + email_from_email varchar(255) NOT NULL, + email_replyto varchar(255) NOT NULL, + email_body text, + target smallint, + sql_target text, + status smallint NOT NULL DEFAULT 0, + date_send_request timestamp, -- debut de l'envoi demandé + date_send_begin timestamp, -- debut de l'envoi + date_send_end timestamp, -- fin de l'envoi + nbsent integer, -- nombre de mails envoyés + nberror integer, -- nombre de mails envoyés + fk_user_author integer, + fk_user_valid integer, + fk_user_modif integer +); diff --git a/pgsql/tables/llx_notify.sql b/pgsql/tables/llx_notify.sql new file mode 100644 index 00000000000..f59953f4001 --- /dev/null +++ b/pgsql/tables/llx_notify.sql @@ -0,0 +1,33 @@ +-- =================================================================== +-- 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_notify +( + rowid SERIAL PRIMARY KEY, + tms timestamp, + daten timestamp, -- date de la notification + fk_action integer NOT NULL, + fk_contact integer NOT NULL, + objet_type CHAR(10) CHECK (objet_type IN ('ficheinter','facture','propale')), + objet_id integer NOT NULL +); diff --git a/pgsql/tables/llx_notify_def.sql b/pgsql/tables/llx_notify_def.sql new file mode 100644 index 00000000000..d483c23c888 --- /dev/null +++ b/pgsql/tables/llx_notify_def.sql @@ -0,0 +1,32 @@ +-- =================================================================== +-- 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_notify_def +( + rowid SERIAL PRIMARY KEY, + tms timestamp, + datec date, -- date de creation + fk_action integer NOT NULL, + fk_soc integer NOT NULL, + fk_contact integer NOT NULL +); diff --git a/pgsql/tables/llx_paiementfourn.sql b/pgsql/tables/llx_paiementfourn.sql new file mode 100644 index 00000000000..53b729c9df4 --- /dev/null +++ b/pgsql/tables/llx_paiementfourn.sql @@ -0,0 +1,35 @@ +-- =================================================================== +-- 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_paiementfourn +( + rowid SERIAL PRIMARY KEY, + tms timestamp, + datec timestamp, -- date de creation de l'enregistrement + fk_facture_fourn integer, -- facture + datep timestamp, -- date de paiement + amount real default 0, -- montant + fk_user_author integer, -- auteur + fk_paiement integer NOT NULL, -- moyen de paiement + num_paiement varchar(50), -- numéro de paiement (cheque) + note text +);