调整注释

This commit is contained in:
yunwuxin 2017-03-27 17:55:04 +08:00
parent daf523be9e
commit 98d002b9a9

View File

@ -84,11 +84,22 @@ class Table extends \Phinx\Db\Table
return $this;
}
/**
* @param string $createdAtColumnName
* @param string $updatedAtColumnName
* @return \Phinx\Db\Table|Table
*/
public function addTimestamps($createdAtColumnName = 'create_time', $updatedAtColumnName = 'update_time')
{
return parent::addTimestamps($createdAtColumnName, $updatedAtColumnName);
}
/**
* @param \Phinx\Db\Table\Column|string $columnName
* @param null $type
* @param array $options
* @return \Phinx\Db\Table|Table
*/
public function addColumn($columnName, $type = null, $options = [])
{
if ($columnName instanceof Column && $columnName->getUnique()) {
@ -100,6 +111,12 @@ class Table extends \Phinx\Db\Table
return parent::addColumn($columnName, $type, $options);
}
/**
* @param string $columnName
* @param null $newColumnType
* @param array $options
* @return \Phinx\Db\Table|Table
*/
public function changeColumn($columnName, $newColumnType = null, $options = [])
{
if ($columnName instanceof \Phinx\Db\Table\Column) {