/** * @param string $table * @param string $columns * * @return int */ public function addPrimaryKey($table, $columns) { $name = $this->getConnection()->getPrimaryKeyName($table, $columns); $table = $this->getConnection()->addTablePrefix($table); return parent::addPrimaryKey($name, $table, $columns); }
/** * @param string $table * @param string $columns * @return int */ public function addPrimaryKey($table, $columns) { $name = DbHelper::getPrimaryKeyName($table, $columns); $table = DbHelper::addTablePrefix($table); return parent::addPrimaryKey($name, $table, $columns); }