correction d'erreur dans les tables postgresql
This commit is contained in:
parent
07a7296554
commit
3710bcc10a
@ -31,7 +31,7 @@ create table llx_adherent
|
|||||||
statut smallint NOT NULL DEFAULT 0,
|
statut smallint NOT NULL DEFAULT 0,
|
||||||
public smallint NOT NULL DEFAULT 0, -- certain champ de la fiche sont ils public ou pas ?
|
public smallint NOT NULL DEFAULT 0, -- certain champ de la fiche sont ils public ou pas ?
|
||||||
fk_adherent_type smallint,
|
fk_adherent_type smallint,
|
||||||
morphy CHAR(3) CHECK (morphy ('mor','phy')) NOT NULL, -- personne morale / personne physique
|
morphy CHAR(3) CHECK (morphy IN ('mor','phy')) NOT NULL, -- personne morale / personne physique
|
||||||
datevalid timestamp, -- date de validation
|
datevalid timestamp, -- date de validation
|
||||||
datec timestamp, -- date de creation
|
datec timestamp, -- date de creation
|
||||||
prenom varchar(50),
|
prenom varchar(50),
|
||||||
|
|||||||
@ -25,9 +25,9 @@ create table llx_album
|
|||||||
rowid serial PRIMARY KEY,
|
rowid serial PRIMARY KEY,
|
||||||
osc_id integer NOT NULL,
|
osc_id integer NOT NULL,
|
||||||
tms timestamp,
|
tms timestamp,
|
||||||
ref varchar(12),
|
ref varchar(12),
|
||||||
title varchar(64),
|
title varchar(64),
|
||||||
annee smallint,
|
annee smallint,
|
||||||
description text,
|
description text,
|
||||||
collectif smallint,
|
collectif smallint,
|
||||||
fk_user_author integer
|
fk_user_author integer
|
||||||
|
|||||||
@ -28,7 +28,7 @@
|
|||||||
create table llx_cash_account
|
create table llx_cash_account
|
||||||
(
|
(
|
||||||
rowid SERIAL PRIMARY KEY,
|
rowid SERIAL PRIMARY KEY,
|
||||||
datec datetime,
|
datec timestamp,
|
||||||
tms timestamp,
|
tms timestamp,
|
||||||
label varchar(30),
|
label varchar(30),
|
||||||
courant smallint default 0 not null,
|
courant smallint default 0 not null,
|
||||||
|
|||||||
@ -29,6 +29,6 @@ create table llx_cotisation
|
|||||||
fk_adherent integer,
|
fk_adherent integer,
|
||||||
dateadh timestamp,
|
dateadh timestamp,
|
||||||
cotisation real,
|
cotisation real,
|
||||||
fk_bank int(11) default NULL,
|
fk_bank integer default NULL,
|
||||||
note text
|
note text
|
||||||
);
|
);
|
||||||
|
|||||||
@ -23,7 +23,7 @@
|
|||||||
|
|
||||||
create table llx_expeditiondet
|
create table llx_expeditiondet
|
||||||
(
|
(
|
||||||
rowid integer AUTO_INCREMENT PRIMARY KEY,
|
rowid serial PRIMARY KEY,
|
||||||
fk_expedition integer not null,
|
fk_expedition integer not null,
|
||||||
fk_commande_ligne integer not null,
|
fk_commande_ligne integer not null,
|
||||||
qty real, -- quantité
|
qty real, -- quantité
|
||||||
|
|||||||
@ -44,4 +44,4 @@ create table llx_facture_fourn
|
|||||||
note text
|
note text
|
||||||
);
|
);
|
||||||
|
|
||||||
create unique index llx_facture_fourn_facnumber on llx_facture_fourn(facnumber, fksoc);
|
create unique index llx_facture_fourn_facnumber on llx_facture_fourn(facnumber, fk_soc);
|
||||||
|
|||||||
@ -55,10 +55,10 @@ create table llx_societe
|
|||||||
services integer default 0, --
|
services integer default 0, --
|
||||||
prefix_comm varchar(5), -- prefix commercial
|
prefix_comm varchar(5), -- prefix commercial
|
||||||
client smallint default 0, -- client oui/non
|
client smallint default 0, -- client oui/non
|
||||||
fournisseur smallint default 0 -- fournisseur oui/non
|
fournisseur smallint default 0, -- fournisseur oui/non
|
||||||
rubrique varchar(255), -- champ rubrique libre
|
rubrique varchar(255), -- champ rubrique libre
|
||||||
fk_user_creat integer, -- utilisateur qui a créé l'info
|
fk_user_creat integer, -- utilisateur qui a créé l'info
|
||||||
fk_user_modif integer, -- utilisateur qui a modifié l'info
|
fk_user_modif integer -- utilisateur qui a modifié l'info
|
||||||
);
|
);
|
||||||
|
|
||||||
create unique index llx_societe_prefix_comm on llx_societe(prefix_comm);
|
create unique index llx_societe_prefix_comm on llx_societe(prefix_comm);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user