Works on migration management positioning lines

rang is not implemented in project task for the moment
This commit is contained in:
Regis Houssin 2010-09-06 16:51:05 +00:00
parent 63908863cc
commit 7e70aaa2f0
3 changed files with 6 additions and 2 deletions

View File

@ -38,5 +38,6 @@ create table llx_projet_task
fk_user_valid integer, -- user who validated the task
fk_statut smallint DEFAULT 0 NOT NULL,
note_private text,
note_public text
note_public text,
rang integer DEFAULT 0
)type=innodb;

View File

@ -3079,7 +3079,7 @@ function migrate_element_rang($db,$langs,$conf)
//llx_livraisondet
$tables[] = array('name'=>'livraisondet','element'=>'delivery','fk_element'=>'fk_livraison');
//llx_projet_task
//$tables[] = array('name'=>'projet_task','element'=>'project','fk_element'=>'fk_projet');
//$tables[] = array('name'=>'projet_task','element'=>'project_task','fk_element'=>'fk_projet');
foreach($tables as $table)
{

View File

@ -333,6 +333,9 @@ class Task extends CommonObject
return 0;
}
}
// Delete rang of line
//$this->delRangOfLine($this->id, $this->element);
$sql = "DELETE FROM ".MAIN_DB_PREFIX."projet_task";
$sql.= " WHERE rowid=".$this->id;