class TableDiff (View source)

Table Diff.

Properties

string $name
string|bool $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[]|string[] $removedForeignKeys All removed foreign keys
Table $fromTable

Methods

__construct($tableName, $addedColumns = [], $changedColumns = [], $removedColumns = [], $addedIndexes = [], $changedIndexes = [], $removedIndexes = [], Table|null $fromTable = null)

Constructs an TableDiff object.

getName(AbstractPlatform $platform)

No description

Identifier|string|bool
getNewName()

No description

Details

__construct($tableName, $addedColumns = [], $changedColumns = [], $removedColumns = [], $addedIndexes = [], $changedIndexes = [], $removedIndexes = [], Table|null $fromTable = null)

Constructs an TableDiff object.

Parameters

$tableName
$addedColumns
$changedColumns
$removedColumns
$addedIndexes
$changedIndexes
$removedIndexes
Table|null $fromTable

Identifier getName(AbstractPlatform $platform)

Parameters

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

Return Value

Identifier

Identifier|string|bool getNewName()

Return Value

Identifier|string|bool