Mise a jour sql pour postgres

This commit is contained in:
Laurent Destailleur 2005-04-09 14:37:39 +00:00
parent 63dfa33005
commit 04c060869d
4 changed files with 45 additions and 5 deletions

View File

@ -37,7 +37,7 @@ create table llx_actioncomm
"fk_user_action" integer, -- id de la personne qui doit effectuer l'action
"fk_user_author" integer,
"priority" smallint,
"percent" smallint,
"percent" smallint NOT NULL default 0,
"note" text,
"propalrowid" integer,
"fk_facture" integer

View File

@ -3,7 +3,7 @@
-- (c) 2005, Laurent Destailleur.
-- ========================================================================
-- Copyright (C) 2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
-- Copyright (C) 2004-2005 Rodolphe Quiedeville <rodolphe@quiedeville.org>
-- Copyright (C) 2005 Laurent Destailleur <eldy@users.sourceforge.net>
--
-- $Id$
@ -25,11 +25,15 @@
--
-- ========================================================================
create table llx_c_methode_commande_fournisseur
(
rowid SERIAL PRIMARY KEY,
"code" varchar(30),
"libelle" varchar(30),
"active" smallint default 1 NOT NULL
"libelle" varchar(60),
"active" smallint default 1 NOT NULL,
UNIQUE(code)
);
CREATE INDEX idx_llx_c_methode_commande_fournisseur_code ON llx_c_methode_commande_fournisseur (code);

View File

@ -0,0 +1,36 @@
-- Generated from dolibarr_mysql2pgsql
-- (c) 2004, PostgreSQL Inc.
-- (c) 2005, Laurent Destailleur.
-- ========================================================================
-- Copyright (C) 2005 Rodolphe Quiedeville <rodolphe@quiedeville.org>
--
-- 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_dolibarr_modules
(
numero integer PRIMARY KEY,
"active" smallint DEFAULT 0 NOT NULL,
"active_date" timestamp NOT NULL,
"active_version" varchar(25) NOT NULL
);

View File

@ -45,7 +45,7 @@ create table llx_facture
"fk_user_author" integer, -- createur de la propale
"fk_user_valid" integer, -- valideur de la propale
"fk_projet" integer, -- projet auquel est associé la facture
"fk_cond_reglement" integer, -- condition de reglement (30 jours, fin de mois ...)
"fk_cond_reglement" integer DEFAULT 1 NOT NULL, -- condition de reglement (30 jours, fin de mois ...)
"fk_mode_reglement" integer, -- mode de reglement (Virement, Prélèvement)
"date_lim_reglement" date, -- date limite de reglement
"note" text,