Skip to content

Commit cb2aadc

Browse files
author
Alexey Yakimovich
committed
MAGETWO-95654: Constraint removal is not treated as destructive operation
- Marked 'drop_reference' as destructive operation
1 parent 8e2b6f9 commit cb2aadc

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

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

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,26 +35,23 @@ public function __construct(DropElement $dropElement)
3535
}
3636

3737
/**
38-
* {@inheritdoc}
39-
* We can drop references and this will not cause any issues.
40-
*
41-
* @return bool
38+
* @inheritdoc
4239
*/
4340
public function isOperationDestructive()
4441
{
45-
return false;
42+
return true;
4643
}
4744

4845
/**
49-
* {@inheritdoc}
46+
* @inheritdoc
5047
*/
5148
public function getOperationName()
5249
{
5350
return self::OPERATION_NAME;
5451
}
5552

5653
/**
57-
* {@inheritdoc}
54+
* @inheritdoc
5855
*/
5956
public function doOperation(ElementHistory $elementHistory)
6057
{

0 commit comments

Comments
 (0)