class TableDiff (View source)

Table Diff.

Properties

string $name
string|boolean $newName
Column[] $addedColumns All added fields.
ColumnDiff[] $changedColumns All changed fields.
Column[] $removedColumns All removed fields.
Column[] $renamedColumns Columns that are only renamed from key to column instance name.
Index[] $addedIndexes All added indexes.
Index[] $changedIndexes All changed indexes.
Index[] $removedIndexes All removed indexes
Index[] $renamedIndexes Indexes that are only renamed but are identical otherwise.
ForeignKeyConstraint[] $addedForeignKeys All added foreign key definitions
ForeignKeyConstraint[] $changedForeignKeys All changed foreign keys
ForeignKeyConstraint[] $removedForeignKeys All removed foreign keys
Table $fromTable

Methods

__construct(string $tableName, Column[] $addedColumns = array(), ColumnDiff[] $changedColumns = array(), Column[] $removedColumns = array(), Index[] $addedIndexes = array(), Index[] $changedIndexes = array(), Index[] $removedIndexes = array(), Table $fromTable = null)

Constructs an TableDiff object.

getName(AbstractPlatform $platform)

No description

Identifier|boolean
getNewName()

No description

Details

__construct(string $tableName, Column[] $addedColumns = array(), ColumnDiff[] $changedColumns = array(), Column[] $removedColumns = array(), Index[] $addedIndexes = array(), Index[] $changedIndexes = array(), Index[] $removedIndexes = array(), Table $fromTable = null)

Constructs an TableDiff object.

Parameters

string $tableName
Column[] $addedColumns
ColumnDiff[] $changedColumns
Column[] $removedColumns
Index[] $addedIndexes
Index[] $changedIndexes
Index[] $removedIndexes
Table $fromTable

Identifier getName(AbstractPlatform $platform)

Parameters

AbstractPlatform $platform The platform to use for retrieving this table diff's name.

Return Value

Identifier

Identifier|boolean getNewName()

Return Value

Identifier|boolean