[DATABASE][PostgreSQL] Ignore index prefix length
This commit is contained in:
parent
b01974b665
commit
a15d51c3d8
@ -539,9 +539,11 @@ class PgsqlSchema extends Schema
|
|||||||
if (!empty($tableDef['primary key'])) {
|
if (!empty($tableDef['primary key'])) {
|
||||||
$tableDef['primary key'] = $this->filterKeyDef($tableDef['primary key']);
|
$tableDef['primary key'] = $this->filterKeyDef($tableDef['primary key']);
|
||||||
}
|
}
|
||||||
if (!empty($tableDef['unique keys'])) {
|
foreach (['unique keys', 'indexes'] as $type) {
|
||||||
foreach ($tableDef['unique keys'] as $i => $def) {
|
if (!empty($tableDef[$type])) {
|
||||||
$tableDef['unique keys'][$i] = $this->filterKeyDef($def);
|
foreach ($tableDef[$type] as $k => $def) {
|
||||||
|
$tableDef[$type][$k] = $this->filterKeyDef($def);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return $tableDef;
|
return $tableDef;
|
||||||
|
Loading…
Reference in New Issue
Block a user