From 45d5a7f8a983b631bb3d3ea3728e4e4cf1ad0a2b Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sun, 2 Dec 2007 22:14:45 +0000 Subject: [PATCH] Nettoyage script sql pour release --- doc/dev/README | 8 ++-- pgsql/tables/llx_c_barcode_type.sql | 32 ++++++++++++++ pgsql/tables/llx_c_paper_format.sql | 42 +++++++++++++++++++ pgsql/tables/llx_societe_log.sql | 38 +++++++++++++++++ pgsql/tables/llx_surveys_answers.sql | 34 +++++++++++++++ .../llx_surveys_answers_summary.key.sql | 25 +++++++++++ pgsql/tables/llx_surveys_answers_summary.sql | 24 +++++++++++ pgsql/tables/llx_surveys_questions.sql | 35 ++++++++++++++++ pgsql/tables/llx_texts.sql | 40 ++++++++++++++++++ 9 files changed, 274 insertions(+), 4 deletions(-) create mode 100644 pgsql/tables/llx_c_barcode_type.sql create mode 100644 pgsql/tables/llx_c_paper_format.sql create mode 100644 pgsql/tables/llx_societe_log.sql create mode 100644 pgsql/tables/llx_surveys_answers.sql create mode 100644 pgsql/tables/llx_surveys_answers_summary.key.sql create mode 100644 pgsql/tables/llx_surveys_answers_summary.sql create mode 100644 pgsql/tables/llx_surveys_questions.sql create mode 100644 pgsql/tables/llx_texts.sql diff --git a/doc/dev/README b/doc/dev/README index c2929987599..e6720b80134 100644 --- a/doc/dev/README +++ b/doc/dev/README @@ -22,14 +22,14 @@ diff -Naur --exclude=CVS --exclude=.# --exclude=~ --exclude=documents --exclude ***** Build a release This is all steps required to build a release od Dolibarr x.x: -* Check there is no more major bug reports. -* Check all development features are ok. +* Check there is no more major bug reports, nor running developments. * Update the ChangeLog file. -* Run script build/dolibarr_mysql2pgsql.pl * Check that file build/tgz/tar.exclude excludes all non expected files. +* Run script build/dolibarr_mysql2pgsql.pl and commit/add new files. +* Update and commit file build/makepack-dolibarr.pl to include new version constants. * Check all CVS commits are done. -* Tagg CVS with tag DOLIBARR_x_x_BETA or DOLIBARR_x_x for a release with option "overwrite tags if exists" * Run script makepack-dolibarr.pl +* Tagg CVS with tag DOLIBARR_x_x_BETA or DOLIBARR_x_x for a release with option "overwrite tags if exists" * Upload script to Dolibarr web site * Add a news on Dolibarr Web site * Create a branch for version x.x diff --git a/pgsql/tables/llx_c_barcode_type.sql b/pgsql/tables/llx_c_barcode_type.sql new file mode 100644 index 00000000000..2890ad935ce --- /dev/null +++ b/pgsql/tables/llx_c_barcode_type.sql @@ -0,0 +1,32 @@ +-- Generated by dolibarr_mysql2pgsql +-- (c) 2004, PostgreSQL Inc. +-- (c) 2005, Laurent Destailleur. + +-- ======================================================================== +-- Copyright (C) 2007 Regis Houssin +-- +-- 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: llx_c_barcode_type.sql,v 1.3 2007/12/02 21:57:09 eldy Exp +-- ======================================================================== + +create table llx_c_barcode +( + rowid SERIAL PRIMARY KEY, + "code" varchar(16) NOT NULL, + "libelle" varchar(50) NOT NULL, + "coder" integer NOT NULL DEFAULT 0, + "example" varchar(16) NOT NULL +); diff --git a/pgsql/tables/llx_c_paper_format.sql b/pgsql/tables/llx_c_paper_format.sql new file mode 100644 index 00000000000..2df624480df --- /dev/null +++ b/pgsql/tables/llx_c_paper_format.sql @@ -0,0 +1,42 @@ +-- Generated by dolibarr_mysql2pgsql +-- (c) 2004, PostgreSQL Inc. +-- (c) 2005, Laurent Destailleur. + +-- ======================================================================== +-- Copyright (C) 2007 Regis Houssin +-- +-- 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: llx_c_paper_format.sql,v 1.3 2007/12/02 21:57:09 eldy Exp +-- ======================================================================== + +create table llx_c_paper_format +( + rowid SERIAL PRIMARY KEY, + "code" varchar(16) NOT NULL, + "label" varchar(50) NOT NULL, + "width" float(6,2) DEFAULT 0, -- Largeur du papier + "height" float(6,2) DEFAULT 0, -- Hauteur du papier + "unit" varchar(5) CHECK (unit IN ('mm','cm','point','inch')) NOT NULL, -- Unité de mesure + "active" smallint DEFAULT 1 NOT NULL +); + +-- +-- Conversion +-- +-- un inch = 2.54 cm +-- 1 point = 1cm * (72/2.54) +-- 1 point = 1mm * (72/25.4) +-- 1 point = 1in * 72 \ No newline at end of file diff --git a/pgsql/tables/llx_societe_log.sql b/pgsql/tables/llx_societe_log.sql new file mode 100644 index 00000000000..f5bf4102265 --- /dev/null +++ b/pgsql/tables/llx_societe_log.sql @@ -0,0 +1,38 @@ +-- Generated by dolibarr_mysql2pgsql +-- (c) 2004, PostgreSQL Inc. +-- (c) 2005, Laurent Destailleur. + +-- ======================================================================== +-- Copyright (C) 2002-2003 Rodolphe Quiedeville +-- Copyright (C) 2007 Laurent Destailleur +-- +-- Id: llx_societe_log.sql,v 1.2 2007/12/02 21:37:46 eldy Exp +-- $Source: /cvsroot/dolibarr/dolibarr/mysql/tables/llx_societe_log.sql,v $ +-- +-- 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: llx_societe_log.sql,v 1.2 2007/12/02 21:37:46 eldy Exp +-- ======================================================================== + +create table llx_societe_log +( + id SERIAL PRIMARY KEY, + "datel" timestamp, + "fk_soc" integer, -- Ne pas mettre de controle d'integrite sur les tables de logs + "fk_statut" integer, -- Ne pas mettre de controle d'integrite sur les tables de logs + "fk_user" integer, -- Ne pas mettre de controle d'integrite sur les tables de logs + "author" varchar(30), + "label" varchar(128) +); diff --git a/pgsql/tables/llx_surveys_answers.sql b/pgsql/tables/llx_surveys_answers.sql new file mode 100644 index 00000000000..6df65b38dad --- /dev/null +++ b/pgsql/tables/llx_surveys_answers.sql @@ -0,0 +1,34 @@ +-- Generated by dolibarr_mysql2pgsql +-- (c) 2004, PostgreSQL Inc. +-- (c) 2005, Laurent Destailleur. + +-- ============================================================================ +-- Copyright (C) 2007 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 +-- 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: llx_surveys_answers.sql,v 1.2 2007/11/08 18:36:24 eldy Exp +-- =========================================================================== + +CREATE TABLE llx_surveys_answers ( + rowid SERIAL PRIMARY KEY, + "fk_question" integer NOT NULL, + "ip_adresse" varchar(15) NOT NULL default '', + "datec" date NOT NULL default '0000-00-00', + "rep1" decimal(6,0) default NULL, + "rep2" decimal(6,0) default NULL, + "rep3" decimal(6,0) default NULL, + "rep4" decimal(6,0) default NULL +); diff --git a/pgsql/tables/llx_surveys_answers_summary.key.sql b/pgsql/tables/llx_surveys_answers_summary.key.sql new file mode 100644 index 00000000000..70b615f0ac0 --- /dev/null +++ b/pgsql/tables/llx_surveys_answers_summary.key.sql @@ -0,0 +1,25 @@ +-- Generated by dolibarr_mysql2pgsql +-- (c) 2004, PostgreSQL Inc. +-- (c) 2005, Laurent Destailleur. + +-- ============================================================================ +-- Copyright (C) 2007 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 +-- 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: llx_surveys_answers_summary.key.sql,v 1.1 2007/11/08 18:36:25 eldy Exp +-- =========================================================================== + + diff --git a/pgsql/tables/llx_surveys_answers_summary.sql b/pgsql/tables/llx_surveys_answers_summary.sql new file mode 100644 index 00000000000..d1ae36dbc10 --- /dev/null +++ b/pgsql/tables/llx_surveys_answers_summary.sql @@ -0,0 +1,24 @@ +-- Generated by dolibarr_mysql2pgsql +-- (c) 2004, PostgreSQL Inc. +-- (c) 2005, Laurent Destailleur. + +-- ============================================================================ +-- Copyright (C) 2007 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 +-- 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: llx_surveys_answers_summary.sql,v 1.2 2007/11/08 18:36:25 eldy Exp +-- =========================================================================== + diff --git a/pgsql/tables/llx_surveys_questions.sql b/pgsql/tables/llx_surveys_questions.sql new file mode 100644 index 00000000000..1171aa3920d --- /dev/null +++ b/pgsql/tables/llx_surveys_questions.sql @@ -0,0 +1,35 @@ +-- Generated by dolibarr_mysql2pgsql +-- (c) 2004, PostgreSQL Inc. +-- (c) 2005, Laurent Destailleur. + +-- ============================================================================ +-- Copyright (C) 2007 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 +-- 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: llx_surveys_questions.sql,v 1.2 2007/11/08 18:36:25 eldy Exp +-- =========================================================================== + +CREATE TABLE llx_surveys_questions ( + rowid SERIAL PRIMARY KEY, + "type_question" decimal(1,0) NOT NULL default '0', + "group_question" varchar(16) NOT NULL default 'NONE', + "status" decimal(1,0) NOT NULL default '0', + "lib" varchar(255) NOT NULL default '', + "lib_rep1" varchar(100) NOT NULL default '', + "lib_rep2" varchar(100) default NULL, + "lib_rep3" varchar(100) default NULL, + "lib_rep4" varchar(100) default NULL +); diff --git a/pgsql/tables/llx_texts.sql b/pgsql/tables/llx_texts.sql new file mode 100644 index 00000000000..8009d054529 --- /dev/null +++ b/pgsql/tables/llx_texts.sql @@ -0,0 +1,40 @@ +-- Generated by dolibarr_mysql2pgsql +-- (c) 2004, PostgreSQL Inc. +-- (c) 2005, Laurent Destailleur. + +-- ============================================================================ +-- Copyright (C) 2007 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 +-- 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: llx_texts.sql,v 1.1 2007/12/02 15:55:17 eldy Exp +-- ============================================================================ + + + +create table llx_models +( + rowid SERIAL PRIMARY KEY, + "module" varchar(32), -- Nom du module en rapport avec le modele + "typemodele" varchar(32), -- Type du modele + "sortorder" smallint, -- Ordre affichage + + "private" smallint DEFAULT 0 NOT NULL, -- Modele publique ou prive + "fk_user" integer, -- Id utilisateur si modele prive, sinon null + "title" varchar(128), -- Titre du modele + "filename" varchar(128), -- Nom fichier si modele fichier + "content" text, -- Texte si modele texte + "tms" timestamp +);