updated-packages
This commit is contained in:
@@ -10,27 +10,27 @@ use Doctrine\DBAL\Platforms\AbstractPlatform;
|
||||
class TableDiff
|
||||
{
|
||||
/** @var string */
|
||||
public $name = null;
|
||||
public $name;
|
||||
|
||||
/** @var string|bool */
|
||||
/** @var string|false */
|
||||
public $newName = false;
|
||||
|
||||
/**
|
||||
* All added fields.
|
||||
* All added columns
|
||||
*
|
||||
* @var Column[]
|
||||
*/
|
||||
public $addedColumns;
|
||||
|
||||
/**
|
||||
* All changed fields.
|
||||
* All changed columns
|
||||
*
|
||||
* @var ColumnDiff[]
|
||||
*/
|
||||
public $changedColumns = [];
|
||||
|
||||
/**
|
||||
* All removed fields.
|
||||
* All removed columns
|
||||
*
|
||||
* @var Column[]
|
||||
*/
|
||||
@@ -92,7 +92,7 @@ class TableDiff
|
||||
*/
|
||||
public $removedForeignKeys = [];
|
||||
|
||||
/** @var Table */
|
||||
/** @var Table|null */
|
||||
public $fromTable;
|
||||
|
||||
/**
|
||||
@@ -139,10 +139,14 @@ class TableDiff
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Identifier|string|bool
|
||||
* @return Identifier|false
|
||||
*/
|
||||
public function getNewName()
|
||||
{
|
||||
return $this->newName ? new Identifier($this->newName) : $this->newName;
|
||||
if ($this->newName === false) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return new Identifier($this->newName);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user