Fix: table declaration

Fix: regretion into trigger management
This commit is contained in:
Laurent Destailleur 2014-07-08 21:24:36 +02:00
parent 5d2a81a4f0
commit 94cd8debeb
3 changed files with 18 additions and 18 deletions

View File

@ -219,14 +219,14 @@ class Categorie extends CommonObject
// End call triggers // End call triggers
if ( ! $error ) if ( ! $error )
{
$this->db->rollback();
return -3;
}
else
{ {
$this->db->commit(); $this->db->commit();
return $id; return $id;
}
else
{
$this->db->rollback();
return -3;
} }
} }
else else

View File

@ -101,7 +101,7 @@ create table llx_accounting_fiscalyear
statut tinyint DEFAULT 0 NOT NULL, statut tinyint DEFAULT 0 NOT NULL,
entity integer DEFAULT 1 NOT NULL, -- multi company id entity integer DEFAULT 1 NOT NULL, -- multi company id
datec datetime NOT NULL, datec datetime NOT NULL,
tms timestamp NULL, tms timestamp,
fk_user_author integer NULL, fk_user_author integer NULL,
fk_user_modif integer NULL fk_user_modif integer NULL
)ENGINE=innodb; )ENGINE=innodb;

View File

@ -25,7 +25,7 @@ create table llx_accounting_fiscalyear
statut tinyint DEFAULT 0 NOT NULL, statut tinyint DEFAULT 0 NOT NULL,
entity integer DEFAULT 1 NOT NULL, -- multi company id entity integer DEFAULT 1 NOT NULL, -- multi company id
datec datetime NOT NULL, datec datetime NOT NULL,
tms timestamp DEFAULT NULL, tms timestamp,
fk_user_author integer DEFAULT NULL, fk_user_author integer DEFAULT NULL,
fk_user_modif integer DEFAULT NULL fk_user_modif integer DEFAULT NULL
)ENGINE=innodb; )ENGINE=innodb;