Nettoyage script sql pour release

This commit is contained in:
Laurent Destailleur 2007-12-02 22:14:45 +00:00
parent 3a48aae452
commit 45d5a7f8a9
9 changed files with 274 additions and 4 deletions

View File

@ -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

View File

@ -0,0 +1,32 @@
-- Generated by dolibarr_mysql2pgsql
-- (c) 2004, PostgreSQL Inc.
-- (c) 2005, Laurent Destailleur.
-- ========================================================================
-- Copyright (C) 2007 Regis Houssin <regis@dolibarr.fr>
--
-- 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
);

View File

@ -0,0 +1,42 @@
-- Generated by dolibarr_mysql2pgsql
-- (c) 2004, PostgreSQL Inc.
-- (c) 2005, Laurent Destailleur.
-- ========================================================================
-- Copyright (C) 2007 Regis Houssin <regis@dolibarr.fr>
--
-- 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

View File

@ -0,0 +1,38 @@
-- Generated by dolibarr_mysql2pgsql
-- (c) 2004, PostgreSQL Inc.
-- (c) 2005, Laurent Destailleur.
-- ========================================================================
-- Copyright (C) 2002-2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
-- Copyright (C) 2007 Laurent Destailleur <eldy@users.sourceforge.net>
--
-- 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)
);

View File

@ -0,0 +1,34 @@
-- Generated by dolibarr_mysql2pgsql
-- (c) 2004, PostgreSQL Inc.
-- (c) 2005, Laurent Destailleur.
-- ============================================================================
-- Copyright (C) 2007 Laurent Destailleur <eldy@users.sourceforge.net>
--
-- 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
);

View File

@ -0,0 +1,25 @@
-- Generated by dolibarr_mysql2pgsql
-- (c) 2004, PostgreSQL Inc.
-- (c) 2005, Laurent Destailleur.
-- ============================================================================
-- Copyright (C) 2007 Laurent Destailleur <eldy@users.sourceforge.net>
--
-- 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
-- ===========================================================================

View File

@ -0,0 +1,24 @@
-- Generated by dolibarr_mysql2pgsql
-- (c) 2004, PostgreSQL Inc.
-- (c) 2005, Laurent Destailleur.
-- ============================================================================
-- Copyright (C) 2007 Laurent Destailleur <eldy@users.sourceforge.net>
--
-- 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
-- ===========================================================================

View File

@ -0,0 +1,35 @@
-- Generated by dolibarr_mysql2pgsql
-- (c) 2004, PostgreSQL Inc.
-- (c) 2005, Laurent Destailleur.
-- ============================================================================
-- Copyright (C) 2007 Laurent Destailleur <eldy@users.sourceforge.net>
--
-- 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
);

View File

@ -0,0 +1,40 @@
-- Generated by dolibarr_mysql2pgsql
-- (c) 2004, PostgreSQL Inc.
-- (c) 2005, Laurent Destailleur.
-- ============================================================================
-- Copyright (C) 2007 Laurent Destailleur <eldy@users.sourceforge.net>
--
-- 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
);