Skip to content
Snippets Groups Projects
Commit 7edfa8a2 authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

New: Ajout index sur code client et code compta

parent 27ecf64b
No related branches found
No related tags found
No related merge requests found
......@@ -191,6 +191,11 @@ alter table llx_societe add capital real after tva_intra;
alter table llx_societe add rubrique varchar(255);
alter table llx_societe add remise_client real default 0;
update llx_societe set prefix_comm = null where prefix_comm = '';
update llx_societe set code_client = null where code_client = '';
ALTER TABLE llx_societe ADD UNIQUE uk_societe_prefix_comm(prefix_comm);
ALTER TABLE llx_societe ADD UNIQUE uk_societe_code_client(code_client);
insert into llx_const (name, value, type, note, visible) values ('ADHERENT_MAIL_REQUIRED','1','yesno','Le mail est obligatoire pour crer un adhrent',0);
alter table llx_societe add fk_forme_juridique integer default 0 after fk_typent;
......
......@@ -21,6 +21,6 @@
-- ===================================================================
ALTER TABLE llx_societe ADD UNIQUE uk_prefix_comm(prefix_comm);
ALTER TABLE llx_societe ADD UNIQUE uk_code_client(code_client);
ALTER TABLE llx_societe ADD UNIQUE uk_code_compta(code_compta);
ALTER TABLE llx_societe ADD UNIQUE uk_societe_prefix_comm(prefix_comm);
ALTER TABLE llx_societe ADD UNIQUE uk_societe_code_client(code_client);
ALTER TABLE llx_societe ADD UNIQUE uk_societe_code_compta(code_compta);
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment