Fix: Erreur init data

This commit is contained in:
Laurent Destailleur 2007-12-04 19:01:38 +00:00
parent 85b611f1ff
commit 2b25de5211
2 changed files with 3 additions and 1 deletions

View File

@ -39,7 +39,9 @@
-- Corrige mauvaise insertion du a champ trop court
alter table llx_action_def modify code varchar(28) UNIQUE NOT NULL;
alter table llx_action_def modify objet_type varchar(16) NOT NULL;
update llx_action_def set code = 'NOTIFY_VAL_ORDER_SUPPLIER' where code = 'NOTIFY_VAL_ORDER_SUUPLIE';
update llx_action_def set objet_type = 'order_supplier' where code = 'NOTIFY_VAL_ORDER_SUPPLIER';
-- Nettoyage champ ref table llx_bank_account
update llx_bank_account set ref=concat('ACCOUNT',rowid) where (ref='' or ref is null);

View File

@ -27,5 +27,5 @@ create table llx_action_def
tms timestamp,
titre varchar(255) NOT NULL,
description text,
objet_type enum('ficheinter','facture','propale','mailing')
objet_type varchar(16) NOT NULL
)type=innodb;