blob: e42bd8e7e1d2b67022fe43571b7a246d05fabd86 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
<?php
final class RenameStudygroupExpirationCronjob extends Migration
{
public function description()
{
return 'Removes .class from registered cronjob filename that expires studygroups';
}
protected function up()
{
$query = "UPDATE `cronjobs_tasks`
SET `filename` = REPLACE(`filename`, '.class.php', '.php')
WHERE `class` = 'StudygroupExpirationJob'";
DBManager::get()->exec($query);
}
protected function down()
{
// No down migration since the filename was not right in the first place
}
}
|