Пример #1
0
 /**
  * {@inheritDoc}
  */
 public function getColumnDeclarationSQL($name, array $field)
 {
     $def = parent::getColumnDeclarationSQL($name, $field);
     if (!empty($field['autoincrement'])) {
         $def .= ' PRIMARY KEY AUTOINCREMENT';
     }
     return $def;
 }