From fb543f55da56b0633b776459b263c1356918ab32 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Fri, 8 Apr 2005 18:59:40 +0000 Subject: [PATCH] =?UTF-8?q?Fix:=20Ajout=20contrainte=20not=20null=20sur=20?= =?UTF-8?q?champ=20percent=20des=20actions.=20Evite=20perte=20de=20donn=E9?= =?UTF-8?q?es=20sur=20les=20select=20avec=20where=20percent=20<=20x%?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mysql/migration/1.1.0-2.0.0.sql | 2 ++ mysql/tables/llx_actioncomm.sql | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/mysql/migration/1.1.0-2.0.0.sql b/mysql/migration/1.1.0-2.0.0.sql index ad668d5476a..a0d861ab667 100644 --- a/mysql/migration/1.1.0-2.0.0.sql +++ b/mysql/migration/1.1.0-2.0.0.sql @@ -830,6 +830,8 @@ insert into llx_c_actioncomm (id, code, type, libelle) values ( 9, 'AC_FAC', 's insert into llx_c_actioncomm (id, code, type, libelle) values (10, 'AC_REL', 'system', 'Relance effectuée'); insert into llx_c_actioncomm (id, code, type, libelle) values (11, 'AC_CLO', 'system', 'Clôture'); +alter table llx_actioncomm change percent percent smallint NOT NULL default 0; + drop table if exists llx_c_ape; diff --git a/mysql/tables/llx_actioncomm.sql b/mysql/tables/llx_actioncomm.sql index 433384556de..823f63f4493 100644 --- a/mysql/tables/llx_actioncomm.sql +++ b/mysql/tables/llx_actioncomm.sql @@ -33,7 +33,7 @@ create table llx_actioncomm fk_user_action integer, -- id de la personne qui doit effectuer l'action fk_user_author integer, priority smallint, - percent smallint, + percent smallint NOT NULL default 0, note text, propalrowid integer, fk_facture integer