Skip to content

Commit 84a1b81

Browse files
authored
MC-32534: Deleting of DB Schema whitelist is treated as a Minor change (#38)
- Fixed Versioning level - Updated Tests to comply with versioning change
1 parent e58cb17 commit 84a1b81

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Operation/WhiteListWasRemoved.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class WhiteListWasRemoved extends Operation
2929
*
3030
* @var int
3131
*/
32-
protected $level = Level::MINOR;
32+
protected $level = Level::MAJOR;
3333

3434
/**
3535
* Operation message

tests/Unit/Console/Command/CompareSourceCommandDatabaseSchemasTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,10 +215,10 @@ public function changesDataProvider()
215215
$pathToFixtures . '/whitelist-was-removed/source-code-before',
216216
$pathToFixtures . '/whitelist-was-removed/source-code-after',
217217
[
218-
'/Database \(MINOR\)/',
218+
'/Database \(MAJOR\)/',
219219
'/Magento_DbSchema\s*\|\s*Db Whitelist from module Magento_DbSchema was removed\s*\|\s*M109/'
220220
],
221-
'Minor change is detected.'
221+
'Major change is detected.'
222222
]
223223
];
224224
}

0 commit comments

Comments
 (0)