class TableDiff (View source)

Table Diff

Properties

string $name
string $newName
array(string=>Column) $addedColumns All added fields
array(string=>Column) $changedColumns All changed fields
array(string=>Column) $removedColumns All removed fields
array(string=>Column) $renamedColumns Columns that are only renamed from key to column instance name.
array(string=>Index) $addedIndexes All added indexes
array(string=>Index) $changedIndexes All changed indexes
array(string=>bool) $removedIndexes All removed indexes
array $addedForeignKeys All added foreign key definitions
array $changedForeignKeys All changed foreign keys
array $removedForeignKeys All removed foreign keys

Methods

__construct($tableName, $addedColumns = array(), $changedColumns = array(), $removedColumns = array(), $addedIndexes = array(), $changedIndexes = array(), $removedIndexes = array())

Constructs an TableDiff object.

Details

__construct($tableName, $addedColumns = array(), $changedColumns = array(), $removedColumns = array(), $addedIndexes = array(), $changedIndexes = array(), $removedIndexes = array())

Constructs an TableDiff object.

Parameters

$tableName
$addedColumns
$changedColumns
$removedColumns
$addedIndexes
$changedIndexes
$removedIndexes