示例#1
0
 /**
  * Get the SQL syntax to drop a key.
  *
  * @param   string  $table  The table name.
  * @param   string  $name   The constraint name.
  *
  * @return  string
  *
  * @since   12.1
  */
 protected function getDropPrimaryKeySQL($table, $name)
 {
     $sql = 'ALTER TABLE ONLY ' . $this->db->quoteName($table) . ' DROP CONSTRAINT ' . $this->db->quoteName($name);
     return $sql;
 }