Skip to content

Commit

Permalink
improvement to bug 15478
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.ilias.de/svn/ilias/trunk@58019 21b2c9ec-7c21-0410-8b45-9bfb8ed2bfc5
  • Loading branch information
Uwe-Kohnle committed Feb 12, 2015
1 parent 881c1ec commit e3718ed
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions setup/sql/dbupdate_04.php
Original file line number Diff line number Diff line change
Expand Up @@ -3869,16 +3869,22 @@
<?php
if($ilDB->getDBType() == 'innodb')
{
$ilDB->dropPrimaryKey("cmi_gobjective");
$ilDB->addPrimaryKey('cmi_gobjective', array('user_id', 'scope_id', 'objective_id'));
$query = "show index from cmi_gobjective where Key_name = 'PRIMARY'";
$res = $ilDB->query($query);
if (!$ilDB->numRows($res)) {
$ilDB->addPrimaryKey('cmi_gobjective', array('user_id', 'scope_id', 'objective_id'));
}
}
?>
<#4373>
<?php
if($ilDB->getDBType() == 'innodb')
{
$ilDB->dropPrimaryKey("cp_suspend");
$ilDB->addPrimaryKey('cp_suspend', array('user_id', 'obj_id'));
$query = "show index from cp_suspend where Key_name = 'PRIMARY'";
$res = $ilDB->query($query);
if (!$ilDB->numRows($res)) {
$ilDB->addPrimaryKey('cp_suspend', array('user_id', 'obj_id'));
}
}
?>
<#4374>
Expand Down

0 comments on commit e3718ed

Please sign in to comment.