Skip to content

Commit 4a8e192

Browse files
author
Sergii Kovalenko
committed
MAGETWO-85326: Tool for generating schema
--add b2b schema
1 parent 9c4aa72 commit 4a8e192

File tree

1 file changed

+12
-14
lines changed

1 file changed

+12
-14
lines changed

setup/src/Magento/Setup/Model/SchemaPersistor.php

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -193,19 +193,17 @@ private function processConstraints(array $tableData, \SimpleXMLElement $table)
193193
*/
194194
private function persistModule(\SimpleXMLElement $simpleXmlElementDom, $path)
195195
{
196-
if (strpos($path, 'magento2ee') !== false) {
197-
$dom = new \DOMDocument('1.0');
198-
$dom->preserveWhiteSpace = false;
199-
$dom->formatOutput = true;
200-
$dom->loadXML($simpleXmlElementDom->asXML());
201-
file_put_contents(
202-
$path,
203-
str_replace(
204-
' xmlns:xsi="xsi"', //reokace xmlns, as we do not need it for xsi namespace
205-
'',
206-
$dom->saveXML()
207-
)
208-
);
209-
}
196+
$dom = new \DOMDocument('1.0');
197+
$dom->preserveWhiteSpace = false;
198+
$dom->formatOutput = true;
199+
$dom->loadXML($simpleXmlElementDom->asXML());
200+
file_put_contents(
201+
$path,
202+
str_replace(
203+
' xmlns:xsi="xsi"', //reokace xmlns, as we do not need it for xsi namespace
204+
'',
205+
$dom->saveXML()
206+
)
207+
);
210208
}
211209
}

0 commit comments

Comments
 (0)