blob: 99b2ec6e556b5cc373c6ace519fcdba56afb8d33 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
<?php
class Step00268EventLog extends Migration {
/**
* short description of this migration
*/
function description() {
return 'Extends event logging for using by arbitrary objects.';
}
/**
* perform this migration
*/
function up() {
DBManager::get()->exec("ALTER TABLE `log_actions` ADD `filename`
VARCHAR( 255 ) NULL DEFAULT NULL ,
ADD `class` VARCHAR( 255 ) NULL DEFAULT NULL");
DBManager::get()->exec("ALTER TABLE `log_actions` ADD `type`
ENUM( 'core', 'plugin', 'file' ) NULL DEFAULT NULL");
}
/**
* revert this migration
*/
function down() {
DBManager::get()->exec("ALTER TABLE `log_actions`
DROP `filename`, DROP `class`, DROP `type`");
}
}
|