コード例 #1
0
 /**
  * @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);
 }
コード例 #2
0
ファイル: DbCommand.php プロジェクト: kentonquatman/portfolio
 /**
  * @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);
 }