mise a jour des tables postgresql

This commit is contained in:
opensides 2004-08-09 21:51:09 +00:00
parent 8e90beb515
commit 62295e7fbf
9 changed files with 17 additions and 34 deletions

View File

@ -25,8 +25,11 @@
create table llx_c_actioncomm create table llx_c_actioncomm
( (
id SERIAL PRIMARY KEY, id SERIAL PRIMARY KEY,
libelle varchar(30), lang varchar(8) default 'all' not null,
todo int type varchar(10) default 'system' not null,
libelle varchar(30) not null,
active smallint default 1,
todo smallint
); );

View File

@ -22,6 +22,8 @@
create table llx_c_civilite create table llx_c_civilite
( (
rowid serial PRIMARY KEY, rowid serial PRIMARY KEY,
lang varchar(8) default 'all' not null,
code varchar(6),
fk_pays integer default 1, fk_pays integer default 1,
civilite varchar(50), civilite varchar(50),
active smallint default 1 active smallint default 1

View File

@ -1,28 +1 @@
-- ======================================================================== -- ======================================================================== -- Copyright (C) 2004 Benoit Mortier <benoit.mortier@opensides.be> -- -- 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_c_effectif ( id SERIAL PRIMARY KEY, lang varchar(8) default 'all' not null, libelle varchar(30) );
-- Copyright (C) 2004 Benoit Mortier <benoit.mortier@opensides.be>
--
-- 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_c_effectif
(
id SERIAL PRIMARY KEY,
libelle varchar(30)
);

View File

@ -32,6 +32,7 @@
create table llx_c_paiement create table llx_c_paiement
( (
id SERIAL PRIMARY KEY, id SERIAL PRIMARY KEY,
lang varchar(8) default 'all' not null,
code varchar(6), code varchar(6),
libelle varchar(30), libelle varchar(30),
type smallint type smallint

View File

@ -23,6 +23,7 @@
create table llx_c_pays create table llx_c_pays
( (
rowid SERIAL PRIMARY KEY, rowid SERIAL PRIMARY KEY,
lang varchar(8) default 'all' not null,
libelle varchar(25), libelle varchar(25),
code char(2) NOT NULL, code char(2) NOT NULL,
active smallint default 1 NOT NULL active smallint default 1 NOT NULL

View File

@ -23,6 +23,7 @@
create table llx_c_propalst create table llx_c_propalst
( (
id SERIAL PRIMARY KEY, id SERIAL PRIMARY KEY,
lang varchar(8) default 'all' not null,
label varchar(30) label varchar(30)
); );

View File

@ -23,6 +23,7 @@
create table llx_c_stcomm create table llx_c_stcomm
( (
id SERIAL PRIMARY KEY, id SERIAL PRIMARY KEY,
lang varchar(8) default 'all' not null,
libelle varchar(30) libelle varchar(30)
); );

View File

@ -23,5 +23,6 @@
create table llx_c_typent create table llx_c_typent
( (
id SERIAL PRIMARY KEY, id SERIAL PRIMARY KEY,
lang varchar(8) default 'all' not null,
libelle varchar(30) libelle varchar(30)
); );

View File

@ -26,20 +26,20 @@ create table llx_socpeople
( (
idp SERIAL PRIMARY KEY, idp SERIAL PRIMARY KEY,
datec timestamp, datec timestamp,
tms timestamp, tms timestamp,
fk_soc integer, fk_soc integer,
civilite smallint, -- 1 M, 2 Mme, 3 Mlle civilite varchar(6),
name varchar(50), name varchar(50),
firstname varchar(50), firstname varchar(50),
address varchar(255), address varchar(255),
birthday date, birthday date,
poste varchar(80), poste varchar(80),
phone varchar(30), phone varchar(30),
phone_perso varchar(30), phone_perso varchar(30),
phone_mobile varchar(30), phone_mobile varchar(30),
fax varchar(30), fax varchar(30),
email varchar(255), email varchar(255),
jabberid varchar(255), jabberid varchar(255),
fk_user integer default 0, -- user qui a créé l'enregistrement fk_user integer default 0, -- user qui a créé l'enregistrement
fk_user_modif integer, fk_user_modif integer,
note text note text