for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* @link http://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license http://www.yiiframework.com/license/
*/
namespace edgardmessias\db\firebird;
*
* @author Edgard Lorraine Messias <[email protected]>
* @since 2.0
class ColumnSchemaBuilder extends \yii\db\ColumnSchemaBuilder
{
* @inheritdoc
public function __toString()
switch ($this->getTypeCategory()) {
case self::CATEGORY_PK:
$format = '{type}{length}{check}';
break;
default:
$format = '{type}{length}{default}{notnull}{unique}{check}';
}
return $this->buildCompleteString($format);