blob: 7740f0d7ee1cb0a43500cbc8ef84a01dea03544d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
<?
class ChangeActionIdInstCreate extends Migration
{
function description ()
{
return 'Corrects action_id for INST_CREATE log action and log events';
}
function up ()
{
$db = DBManager::get();
// fixes #448, cf. http://develop.studip.de/trac/ticket/448
$db->exec("UPDATE log_actions SET action_id=MD5('INST_CREATE')
WHERE action_id=MD5('INST_NEW')");
$db->exec("UPDATE log_events SET action_id=MD5('INST_CREATE')
WHERE action_id=MD5('INST_NEW')");
}
}
?>
|