<?php
class AddExceptionTypeToIncidents extends CakeMigration {

/**
 * Migration description
 *
 * @var string
 * @access public
 */
	public $description = '';

/**
 * Actions to be performed
 *
 * @var array $migration
 * @access public
 */
	public $migration = array(
		'up' => array(
			'create_field' => array(
			    'incidents' => array(
			        'exception_type' => array(
			            'type' => 'boolean'
			        ),
			    ),
			),
		),
		'down' => array(
			'drop_field' => array(
			    'incidents' => array('exception_type'),
			),
		),
	);

/**
 * Before migration callback
 *
 * @param string $direction, up or down direction of migration process
 * @return boolean Should process continue
 * @access public
 */
	public function before($direction) {
		return true;
	}

/**
 * After migration callback
 *
 * @param string $direction, up or down direction of migration process
 * @return boolean Should process continue
 * @access public
 */
	public function after($direction) {
		return true;
	}
}

Add 'exception_type' field to Incidents.
Add 'exception_type' field to Incidents.

Signed-off-by: Dhananjay Nakrani <9e965ab80219a00627f2dc7fe46b57bdbd34c853@gmail.com>
