/** * {@inheritdoc} */ public function bigPrimary() { $this->autoIncrement = true; //Changing type of already created primary key (we can't use "serial" alias here) if (!empty($this->type) && $this->type != 'bigserial') { $this->type = 'bigint'; return $this; } return parent::bigPrimary(); }