1: <?php
2:
3: class AddCurrentPidToSchedulingShellCallLogs extends CakeMigration {
4:
5: /**
6: * Migration description
7: *
8: * @var string
9: * @access public
10: */
11: public $description = '';
12:
13: /**
14: * Actions to be performed
15: *
16: * @var array $migration
17: * @access public
18: */
19: public $migration = array(
20: 'up' => array(
21: 'create_field' => array(
22: 'scheduling_shell_call_logs' => array(
23: 'current_pid' => array('type' => 'integer', 'null' => true, 'default' => NULL),
24: ),
25: ),
26: ),
27: 'down' => array(
28: 'drop_field' => array(
29: 'scheduling_shell_call_logs' => array(
30: 'current_pid',
31: ),
32: ),
33: ),
34: );
35:
36: /**
37: * Before migration callback
38: *
39: * @param string $direction, up or down direction of migration process
40: * @return boolean Should process continue
41: * @access public
42: */
43: public function before($direction) {
44: return true;
45: }
46:
47: /**
48: * After migration callback
49: *
50: * @param string $direction, up or down direction of migration process
51: * @return boolean Should process continue
52: * @access public
53: */
54: public function after($direction) {
55: return true;
56: }
57:
58: }
59: