mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-25 01:13:25 +01:00
"cant create an index without fields (was observed in broken backups)"
This commit is contained in:
parent
a7f5776ae3
commit
1423948060
@ -193,6 +193,10 @@ class schema_proc
|
||||
// creating unique indices/constrains
|
||||
foreach ($aTableDef['uc'] as $name => $mFields)
|
||||
{
|
||||
if (empty($mFields))
|
||||
{
|
||||
continue; // cant create an index without fields (was observed in broken backups)
|
||||
}
|
||||
if ($this->_in_index($mFields,array($aTableDef['pk'])))
|
||||
{
|
||||
continue; // is already created as primary key
|
||||
@ -210,6 +214,10 @@ class schema_proc
|
||||
// creation indices
|
||||
foreach ($aTableDef['ix'] as $name => $mFields)
|
||||
{
|
||||
if (empty($mFields))
|
||||
{
|
||||
continue; // cant create an index without fields (was observed in broken backups)
|
||||
}
|
||||
if ($this->_in_index($mFields,array($aTableDef['pk'])) ||
|
||||
$this->_in_index($mFields,$aTableDef['uc']))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user