2
0
forked from Wavyzz/dolibarr

Qual: Optimisation du type en base de donnes de certains champs. Suppression d'un champ obsolete.

This commit is contained in:
Laurent Destailleur
2006-06-04 11:57:38 +00:00
parent a2faa230bc
commit 6ce48c709a
3 changed files with 31 additions and 15 deletions

View File

@@ -23,9 +23,8 @@
create table llx_societe
(
idp integer AUTO_INCREMENT PRIMARY KEY,
id varchar(32), -- private id
active smallint DEFAULT 0, --
parent integer DEFAULT 0, --
statut tinyint DEFAULT 0, -- statut
parent integer,
tms timestamp,
datec datetime, -- creation date
datea datetime, -- activation date
@@ -52,17 +51,17 @@ create table llx_societe
tva_intra varchar(20), -- tva intracommunautaire
capital real, -- capital de la soci<63>t<EFBFBD>
description text, --
fk_stcomm smallint DEFAULT 0, -- commercial statut
fk_stcomm tinyint DEFAULT 0, -- commercial statut
note text, --
services integer DEFAULT 0, --
services tinyint DEFAULT 0, --
prefix_comm varchar(5), -- prefix commercial
client integer DEFAULT 0, -- client oui/non
fournisseur smallint DEFAULT 0, -- fournisseur oui/non
client tinyint DEFAULT 0, -- client 0/1/2
fournisseur tinyint DEFAULT 0, -- fournisseur 0/1
rubrique varchar(255), -- champ rubrique libre
fk_user_creat integer, -- utilisateur qui a cr<63><72> l'info
fk_user_modif integer, -- utilisateur qui a modifi<66> l'info
remise_client real DEFAULT 0, -- remise syst<73>matique pour le client
mode_reglement integer DEFAULT 0, -- mode de r<>glement
cond_reglement integer DEFAULT 1 NOT NULL, -- condition de r<>glement
tva_assuj tinyint DEFAULT 1 -- assuj<75>ti ou non <20> la TVA
mode_reglement tinyint, -- mode de r<>glement
cond_reglement tinyint, -- condition de r<>glement
tva_assuj tinyint DEFAULT 1 -- assuj<75>ti ou non <20> la TVA
)type=innodb;