Skip to content

Commit cf6c395

Browse files
committed
MAGETWO-95595: Index names are ignored by declarative schema
1 parent 3c25d6e commit cf6c395

File tree

1 file changed

+4
-4
lines changed
  • lib/internal/Magento/Framework/Setup/Declaration/Schema/Operations

1 file changed

+4
-4
lines changed

lib/internal/Magento/Framework/Setup/Declaration/Schema/Operations/AddColumn.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ private function getTemporaryIndexHistory(Column $column)
110110
Index::TYPE,
111111
[
112112
'name' => self::TEMPORARY_KEY,
113-
'column' => $column->getName(),
113+
'column' => [$column->getName()],
114114
'columns' => [$column],
115115
'table' => $column->getTable()
116116
]
@@ -119,15 +119,15 @@ private function getTemporaryIndexHistory(Column $column)
119119
}
120120

121121
/**
122-
* {@inheritdoc}
122+
* @inheritdoc
123123
*/
124124
public function getOperationName()
125125
{
126126
return self::OPERATION_NAME;
127127
}
128128

129129
/**
130-
* @return bool
130+
* @inheritdoc
131131
*/
132132
public function isOperationDestructive()
133133
{
@@ -187,7 +187,7 @@ private function setupTriggersIfExists(Statement $statement, ElementHistory $ele
187187
}
188188

189189
/**
190-
* {@inheritdoc}
190+
* @inheritdoc
191191
*/
192192
public function doOperation(ElementHistory $elementHistory)
193193
{

0 commit comments

Comments
 (0)