-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* log, wenn TOS akzeptiert * log for reject. cleaner output
- Loading branch information
Showing
2 changed files
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?php | ||
|
||
class AddLogTos extends Migration { | ||
|
||
function up() | ||
{ | ||
$db = DBManager::get(); | ||
$query = $db->prepare("INSERT INTO log_actions (action_id, name, description, info_template, active) VALUES (?, ?, ?, ?, ?)"); | ||
|
||
$query->execute(array(md5('OC_TOS'), 'OC_TOS', 'Opencast: TOS akzeptiert/abgelehnt', '%user hat TOS %info in %sem(%affected)', 1)); | ||
} | ||
|
||
function down() | ||
{ | ||
$db = DBManager::get(); | ||
$query = $db->prepare("DELETE FROM log_actions WHERE action_id = ?"); | ||
$query2 = $db->prepare("DELETE FROM log_events WHERE action_id = ?"); | ||
$query->execute(array(md5('OC_TOS'))); | ||
$query2->execute(array(md5('OC_TOS'))); | ||
} | ||
} | ||
|
||
?> |