Merge pull request #32848 from hregis/fix_20_sql_error
FIX DROP INDEX IF EXISTS it's not possible !
This commit is contained in:
commit
5dca2af8a4
1 changed files with 1 additions and 1 deletions
|
|
@ -749,7 +749,7 @@ class ExtraFields
|
|||
$sql = "ALTER TABLE ".$this->db->prefix().$table." ADD UNIQUE INDEX uk_".$table."_".$this->db->sanitize($attrname)." (".$this->db->sanitize($attrname).")";
|
||||
} else {
|
||||
dol_syslog(get_class($this).'::update_common', LOG_DEBUG);
|
||||
$sql = "ALTER TABLE ".$this->db->prefix().$table." DROP INDEX IF EXISTS uk_".$table."_".$this->db->sanitize($attrname);
|
||||
$sql = "ALTER TABLE ".$this->db->prefix().$table." DROP INDEX uk_".$table."_".$this->db->sanitize($attrname);
|
||||
}
|
||||
dol_syslog(get_class($this).'::update', LOG_DEBUG);
|
||||
$resql = $this->db->query($sql, 1, 'dml');
|
||||
|
|
|
|||
Loading…
Reference in a new issue