Ejemplo n.º 1
0
 /**
  * Set column as big primary key and register it in parent table primary key list.
  *
  * @see TableSchema::setPrimaryKeys()
  * @return $this
  */
 public function bigPrimary()
 {
     if (!in_array($this->name, $this->table->getPrimaryKeys())) {
         $this->table->setPrimaryKeys([$this->name]);
     }
     return $this->setType('bigPrimary');
 }