示例#1
0
 /**
  * @param string $table
  * @param string $columns
  *
  * @return int
  */
 public function dropForeignKey($table, $columns)
 {
     $name = $this->getConnection()->getForeignKeyName($table, $columns);
     $table = $this->getConnection()->addTablePrefix($table);
     return parent::dropForeignKey($name, $table);
 }
示例#2
0
 /**
  * @param string $table
  * @param string $columns
  * @return int
  */
 public function dropForeignKey($table, $columns)
 {
     $name = DbHelper::getForeignKeyName($table, $columns);
     $table = DbHelper::addTablePrefix($table);
     return parent::dropForeignKey($name, $table);
 }