From 515f27c918639ab3cd1428000eb7f24bc44de6fc Mon Sep 17 00:00:00 2001 From: Cristian Partica Date: Fri, 27 Jul 2018 17:25:51 -0500 Subject: [PATCH 01/27] MAGETWO-90531: WYSIWYG shows special character button in toolbar on product page - when test module is enabled - modifying integration test to customize toolbar --- .../TestModuleWysiwygConfig/Model/Config.php | 49 ++++++++++++++++++- .../etc/adminhtml/di.xml | 16 ++++++ .../Magento/Cms/Model/Wysiwyg/ConfigTest.php | 9 +++- 3 files changed, 72 insertions(+), 2 deletions(-) diff --git a/dev/tests/integration/_files/Magento/TestModuleWysiwygConfig/Model/Config.php b/dev/tests/integration/_files/Magento/TestModuleWysiwygConfig/Model/Config.php index 7726782c49f08..b80caeed6beed 100644 --- a/dev/tests/integration/_files/Magento/TestModuleWysiwygConfig/Model/Config.php +++ b/dev/tests/integration/_files/Magento/TestModuleWysiwygConfig/Model/Config.php @@ -19,17 +19,64 @@ class Config implements \Magento\Framework\Data\Wysiwyg\ConfigProviderInterface */ const CONFIG_CONTENT_CSS = 'something_else.css'; + /** @var \Magento\Cms\Model\Wysiwyg\DefaultConfigProvider */ + private $cmsConfigProvider; + + /** + * @param \Magento\Cms\Model\Wysiwyg\DefaultConfigProvider $cmsConfigProvider + */ + public function __construct(\Magento\Cms\Model\Wysiwyg\DefaultConfigProvider $cmsConfigProvider) + { + $this->cmsConfigProvider = $cmsConfigProvider; + } + /** * @inheritdoc */ public function getConfig(\Magento\Framework\DataObject $config): \Magento\Framework\DataObject { - $config->addData( + //get default config + $config = $this->cmsConfigProvider->getConfig($config); + + $config = $this->removeSpecialCharacterFromToolbar($config); + + $config = $this->modifyHeightAndContentCss($config); + return $config; + } + + /** + * Modify height and content_css in the config + * + * @param \Magento\Framework\DataObject $config + * @return \Magento\Framework\DataObject + */ + private function modifyHeightAndContentCss(\Magento\Framework\DataObject $config) : \Magento\Framework\DataObject + { + return $config->addData( [ 'height' => self::CONFIG_HEIGHT, 'content_css' => self::CONFIG_CONTENT_CSS ] ); + } + + /** + * Modify height and content_css in the config + * + * @param \Magento\Framework\DataObject $config + * @return \Magento\Framework\DataObject + */ + private function removeSpecialCharacterFromToolbar( + \Magento\Framework\DataObject $config + ) : \Magento\Framework\DataObject { + $tinymce4 = $config->getData('tinymce4'); + if (isset($tinymce4['toolbar']) && isset($tinymce4['plugins'])) { + $toolbar = $tinymce4['toolbar']; + $plugins = $tinymce4['plugins']; + $tinymce4['toolbar'] = str_replace('charmap', '', $toolbar); + $tinymce4['plugins'] = str_replace('charmap', '', $plugins); + $config->setData('tinymce4', $tinymce4); + } return $config; } } diff --git a/dev/tests/integration/_files/Magento/TestModuleWysiwygConfig/etc/adminhtml/di.xml b/dev/tests/integration/_files/Magento/TestModuleWysiwygConfig/etc/adminhtml/di.xml index 3366e5fc9685e..1001b40d3bbd4 100644 --- a/dev/tests/integration/_files/Magento/TestModuleWysiwygConfig/etc/adminhtml/di.xml +++ b/dev/tests/integration/_files/Magento/TestModuleWysiwygConfig/etc/adminhtml/di.xml @@ -11,6 +11,12 @@ Magento\TestModuleWysiwygConfig\Model\Config + + Magento\TestModuleWysiwygConfig\Model\Config + + + Magento\TestModuleWysiwygConfig\Model\Config + Magento\Variable\Model\Variable\ConfigProvider @@ -22,4 +28,14 @@ + + + + + mage/adminhtml/wysiwyg/tiny_mce/tinymce4Adapter + Test Adapter + + + + diff --git a/dev/tests/integration/testsuite/Magento/Cms/Model/Wysiwyg/ConfigTest.php b/dev/tests/integration/testsuite/Magento/Cms/Model/Wysiwyg/ConfigTest.php index b79ccd255f26a..df33afa214bc3 100644 --- a/dev/tests/integration/testsuite/Magento/Cms/Model/Wysiwyg/ConfigTest.php +++ b/dev/tests/integration/testsuite/Magento/Cms/Model/Wysiwyg/ConfigTest.php @@ -57,7 +57,7 @@ public function testGetConfigCssUrls() * * @magentoConfigFixture default/cms/wysiwyg/editor testAdapter */ - public function testEnabledModuleIsAbleToModifyConfig() + public function testTestModuleEnabledModuleIsAbleToModifyConfig() { $objectManager = Bootstrap::getObjectManager(); $compositeConfigProvider = $objectManager->create(\Magento\Cms\Model\Wysiwyg\CompositeConfigProvider::class); @@ -68,5 +68,12 @@ public function testEnabledModuleIsAbleToModifyConfig() $config = $model->getConfig(); $this->assertEquals(TestModuleWysiwygConfig::CONFIG_HEIGHT, $config['height']); $this->assertEquals(TestModuleWysiwygConfig::CONFIG_CONTENT_CSS, $config['content_css']); + $this->assertArrayHasKey('tinymce4', $config); + $this->assertArrayHasKey('toolbar', $config['tinymce4']); + $this->assertNotContains( + 'charmap', + $config['tinymce4']['toolbar'], + 'Failed to address that the custom test module removes "charmap" button from the toolbar' + ); } } From 95e671d3b29bb932f8255990d1701a50fbb02ab6 Mon Sep 17 00:00:00 2001 From: Max Lesechko Date: Thu, 2 Aug 2018 18:21:22 -0500 Subject: [PATCH 02/27] MAGETWO-90863: Error handling responses from MBI --- .../Model/Connector/Http/ResponseResolver.php | 10 +- .../Analytics/Model/Connector/OTPRequest.php | 5 +- .../Model/Connector/SignUpCommand.php | 6 +- .../Model/Connector/UpdateCommand.php | 5 +- .../Connector/Http/ResponseResolverTest.php | 122 ++++++++++++++---- 5 files changed, 113 insertions(+), 35 deletions(-) diff --git a/app/code/Magento/Analytics/Model/Connector/Http/ResponseResolver.php b/app/code/Magento/Analytics/Model/Connector/Http/ResponseResolver.php index ec198e4a3c40b..4cba11123873f 100644 --- a/app/code/Magento/Analytics/Model/Connector/Http/ResponseResolver.php +++ b/app/code/Magento/Analytics/Model/Connector/Http/ResponseResolver.php @@ -38,7 +38,15 @@ public function __construct(ConverterInterface $converter, array $responseHandle public function getResult(\Zend_Http_Response $response) { $result = false; - $responseBody = $this->converter->fromBody($response->getBody()); + preg_match('#(?:Content-Type:\s*)(\w\S+)#i', $this->converter->getContentTypeHeader(), $contentType); + $converterContentType = $contentType[1]; + + if ($response->getBody() && is_int(strripos($response->getHeader('Content-Type'), $converterContentType))) { + $responseBody = $this->converter->fromBody($response->getBody()); + } else { + $responseBody = []; + } + if (array_key_exists($response->getStatus(), $this->responseHandlers)) { $result = $this->responseHandlers[$response->getStatus()]->handleResponse($responseBody); } diff --git a/app/code/Magento/Analytics/Model/Connector/OTPRequest.php b/app/code/Magento/Analytics/Model/Connector/OTPRequest.php index dfa283e10d070..c05357400d075 100644 --- a/app/code/Magento/Analytics/Model/Connector/OTPRequest.php +++ b/app/code/Magento/Analytics/Model/Connector/OTPRequest.php @@ -103,8 +103,9 @@ public function call() if (!$result) { $this->logger->warning( sprintf( - 'Obtaining of an OTP from the MBI service has been failed: %s', - !empty($response->getBody()) ? $response->getBody() : 'Response body is empty.' + 'Obtaining of an OTP from the MBI service has been failed: %s. Content-Type: %s', + !empty($response->getBody()) ? $response->getBody() : 'Response body is empty', + $response->getHeader('Content-Type') ) ); } diff --git a/app/code/Magento/Analytics/Model/Connector/SignUpCommand.php b/app/code/Magento/Analytics/Model/Connector/SignUpCommand.php index c1f8152f3134e..e35c9bb42bc43 100644 --- a/app/code/Magento/Analytics/Model/Connector/SignUpCommand.php +++ b/app/code/Magento/Analytics/Model/Connector/SignUpCommand.php @@ -110,8 +110,10 @@ public function execute() if (!$result) { $this->logger->warning( sprintf( - 'Subscription for MBI service has been failed. An error occurred during token exchange: %s', - !empty($response->getBody()) ? $response->getBody() : 'Response body is empty.' + 'Subscription for MBI service has been failed. An error occurred during token exchange: %s.' + . ' Content-Type: %s', + !empty($response->getBody()) ? $response->getBody() : 'Response body is empty', + $response->getHeader('Content-Type') ) ); } diff --git a/app/code/Magento/Analytics/Model/Connector/UpdateCommand.php b/app/code/Magento/Analytics/Model/Connector/UpdateCommand.php index 7b4e452a7b451..59878ff9c0814 100644 --- a/app/code/Magento/Analytics/Model/Connector/UpdateCommand.php +++ b/app/code/Magento/Analytics/Model/Connector/UpdateCommand.php @@ -101,8 +101,9 @@ public function execute() if (!$result) { $this->logger->warning( sprintf( - 'Update of the subscription for MBI service has been failed: %s', - !empty($response->getBody()) ? $response->getBody() : 'Response body is empty.' + 'Update of the subscription for MBI service has been failed: %s. Content-Type: %s', + !empty($response->getBody()) ? $response->getBody() : 'Response body is empty', + $response->getHeader('Content-Type') ) ); } diff --git a/app/code/Magento/Analytics/Test/Unit/Model/Connector/Http/ResponseResolverTest.php b/app/code/Magento/Analytics/Test/Unit/Model/Connector/Http/ResponseResolverTest.php index 3d4c90bcd07f7..f9fce447ca381 100644 --- a/app/code/Magento/Analytics/Test/Unit/Model/Connector/Http/ResponseResolverTest.php +++ b/app/code/Magento/Analytics/Test/Unit/Model/Connector/Http/ResponseResolverTest.php @@ -3,49 +3,115 @@ * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ +declare(strict_types=1); + namespace Magento\Analytics\Test\Unit\Model\Connector\Http; -use Magento\Analytics\Model\Connector\Http\JsonConverter; +use Magento\Analytics\Model\Connector\Http\ConverterInterface; use Magento\Analytics\Model\Connector\Http\ResponseHandlerInterface; use Magento\Analytics\Model\Connector\Http\ResponseResolver; -use Magento\Framework\Serialize\Serializer\Json; -use Magento\Framework\TestFramework\Unit\Helper\ObjectManager; +use Magento\Framework\TestFramework\Unit\Helper\ObjectManager as ObjectManagerHelper; class ResponseResolverTest extends \PHPUnit\Framework\TestCase { - public function testGetResultHandleResponseSuccess() + /** + * @var ObjectManagerHelper + */ + private $objectManagerHelper; + + /** + * @var ConverterInterface|\PHPUnit_Framework_MockObject_MockObject + */ + private $converterMock; + + /** + * @var ResponseHandlerInterface|\PHPUnit_Framework_MockObject_MockObject + */ + private $successResponseHandlerMock; + + /** + * @var ResponseHandlerInterface|\PHPUnit_Framework_MockObject_MockObject + */ + private $notFoundResponseHandlerMock; + + /** + * @var ResponseResolver + */ + private $responseResolver; + + /** + * @return void + */ + protected function setUp() { - $expectedBody = ['test' => 'testValue']; - $response = new \Zend_Http_Response(201, [], json_encode($expectedBody)); - $responseHandlerMock = $this->getMockBuilder(ResponseHandlerInterface::class) - ->getMockForAbstractClass(); - $responseHandlerMock->expects($this->once()) - ->method('handleResponse') - ->with($expectedBody) - ->willReturn(true); - $notFoundResponseHandlerMock = $this->getMockBuilder(ResponseHandlerInterface::class) - ->getMockForAbstractClass(); - $notFoundResponseHandlerMock->expects($this->never())->method('handleResponse'); - $serializerMock = $this->getMockBuilder(Json::class) + $this->objectManagerHelper = new ObjectManagerHelper($this); + $this->converterMock = $this->getMockBuilder(ConverterInterface::class) ->disableOriginalConstructor() ->getMock(); - $serializerMock->expects($this->once()) - ->method('unserialize') - ->willReturn($expectedBody); - $objectManager = new ObjectManager($this); - $responseResolver = $objectManager->getObject( + $this->successResponseHandlerMock = $this->getMockBuilder(ResponseHandlerInterface::class) + ->getMockForAbstractClass(); + $this->notFoundResponseHandlerMock = $this->getMockBuilder(ResponseHandlerInterface::class) + ->getMockForAbstractClass(); + $this->responseResolver = $this->objectManagerHelper->getObject( ResponseResolver::class, [ - 'converter' => $objectManager->getObject( - JsonConverter::class, - ['serializer' => $serializerMock] - ), + 'converter' => $this->converterMock, 'responseHandlers' => [ - 201 => $responseHandlerMock, - 404 => $notFoundResponseHandlerMock, + 201 => $this->successResponseHandlerMock, + 404 => $this->notFoundResponseHandlerMock, ] ] ); - $this->assertTrue($responseResolver->getResult($response)); + } + + /** + * @return void + * @throws \Zend_Http_Exception + */ + public function testGetResultHandleResponseSuccess() + { + $expectedBody = ['test' => 'testValue']; + $response = new \Zend_Http_Response(201, ['Content-Type' => 'application/json'], json_encode($expectedBody)); + $this->converterMock + ->method('getContentTypeHeader') + ->willReturn('Content-Type: application/json'); + + $this->successResponseHandlerMock + ->expects($this->once()) + ->method('handleResponse') + ->with($expectedBody) + ->willReturn(true); + $this->notFoundResponseHandlerMock + ->expects($this->never()) + ->method('handleResponse'); + $this->converterMock + ->method('fromBody') + ->willReturn($expectedBody); + $this->assertTrue($this->responseResolver->getResult($response)); + } + + /** + * @return void + * @throws \Zend_Http_Exception + */ + public function testGetResultHandleResponseUnexpectedContentType() + { + $expectedBody = 'testString'; + $response = new \Zend_Http_Response(201, ['Content-Type' => 'plain/text'], $expectedBody); + $this->converterMock + ->method('getContentTypeHeader') + ->willReturn('Content-Type: application/json'); + $this->converterMock + ->expects($this->never()) + ->method('fromBody'); + $this->successResponseHandlerMock + ->expects($this->once()) + ->method('handleResponse') + ->with([]) + ->willReturn(false); + $this->notFoundResponseHandlerMock + ->expects($this->never()) + ->method('handleResponse'); + $this->assertFalse($this->responseResolver->getResult($response)); } } From c101726cd7a49367d7d9def678753fab8a292536 Mon Sep 17 00:00:00 2001 From: serhii balko Date: Wed, 8 Aug 2018 14:31:58 +0300 Subject: [PATCH 03/27] MAGETWO-93961: [2.3] Product URL rewrites get deleted in multi store views --- .../Observer/UrlRewriteHandler.php | 240 +++++++++++------- .../Fixtures/product_custom_url_key.php | 30 +++ .../product_custom_url_key_rollback.php | 21 ++ .../Observer/UrlRewriteHandlerTest.php | 111 ++++++++ .../_files/product_with_category.php | 2 +- 5 files changed, 314 insertions(+), 90 deletions(-) create mode 100644 dev/tests/integration/testsuite/Magento/CatalogUrlRewrite/Fixtures/product_custom_url_key.php create mode 100644 dev/tests/integration/testsuite/Magento/CatalogUrlRewrite/Fixtures/product_custom_url_key_rollback.php create mode 100644 dev/tests/integration/testsuite/Magento/CatalogUrlRewrite/Observer/UrlRewriteHandlerTest.php diff --git a/app/code/Magento/CatalogUrlRewrite/Observer/UrlRewriteHandler.php b/app/code/Magento/CatalogUrlRewrite/Observer/UrlRewriteHandler.php index 9892465d1538a..18360dedf0693 100644 --- a/app/code/Magento/CatalogUrlRewrite/Observer/UrlRewriteHandler.php +++ b/app/code/Magento/CatalogUrlRewrite/Observer/UrlRewriteHandler.php @@ -3,27 +3,48 @@ * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ +declare(strict_types=1); + namespace Magento\CatalogUrlRewrite\Observer; +use Magento\Catalog\Model\Product; +use Magento\Catalog\Model\Category; +use Magento\Catalog\Model\ResourceModel\Product\Collection; +use Magento\Catalog\Model\ResourceModel\Product\CollectionFactory; +use Magento\CatalogUrlRewrite\Model\Category\ChildrenCategoriesProvider; +use Magento\CatalogUrlRewrite\Model\CategoryProductUrlPathGenerator; +use Magento\CatalogUrlRewrite\Model\CategoryUrlRewriteGenerator; +use Magento\CatalogUrlRewrite\Model\ProductScopeRewriteGenerator; +use Magento\CatalogUrlRewrite\Model\ProductUrlRewriteGenerator; +use Magento\Framework\App\ObjectManager; +use Magento\Framework\Serialize\Serializer\Json; +use Magento\UrlRewrite\Model\MergeDataProvider; +use Magento\UrlRewrite\Model\MergeDataProviderFactory; +use Magento\UrlRewrite\Model\UrlPersistInterface; +use Magento\UrlRewrite\Service\V1\Data\UrlRewrite; + +/** + * @SuppressWarnings(PHPMD.CouplingBetweenObjects) + */ class UrlRewriteHandler { /** - * @var \Magento\CatalogUrlRewrite\Model\Category\ChildrenCategoriesProvider + * @var ChildrenCategoriesProvider */ protected $childrenCategoriesProvider; /** - * @var \Magento\CatalogUrlRewrite\Model\CategoryUrlRewriteGenerator + * @var CategoryUrlRewriteGenerator */ protected $categoryUrlRewriteGenerator; /** - * @var \Magento\CatalogUrlRewrite\Model\ProductUrlRewriteGenerator + * @var ProductUrlRewriteGenerator */ protected $productUrlRewriteGenerator; /** - * @var \Magento\UrlRewrite\Model\UrlPersistInterface + * @var UrlPersistInterface */ protected $urlPersist; @@ -33,44 +54,51 @@ class UrlRewriteHandler protected $isSkippedProduct; /** - * @var \Magento\Catalog\Model\ResourceModel\Product\CollectionFactory + * @var CollectionFactory */ protected $productCollectionFactory; /** - * @var \Magento\CatalogUrlRewrite\Model\CategoryProductUrlPathGenerator + * @var CategoryProductUrlPathGenerator */ private $categoryBasedProductRewriteGenerator; /** - * @var \Magento\UrlRewrite\Model\MergeDataProvider + * @var MergeDataProvider */ private $mergeDataProviderPrototype; /** - * @var \Magento\Framework\Serialize\Serializer\Json + * @var Json */ private $serializer; /** - * @param \Magento\CatalogUrlRewrite\Model\Category\ChildrenCategoriesProvider $childrenCategoriesProvider - * @param \Magento\CatalogUrlRewrite\Model\CategoryUrlRewriteGenerator $categoryUrlRewriteGenerator - * @param \Magento\CatalogUrlRewrite\Model\ProductUrlRewriteGenerator $productUrlRewriteGenerator - * @param \Magento\UrlRewrite\Model\UrlPersistInterface $urlPersist - * @param \Magento\Catalog\Model\ResourceModel\Product\CollectionFactory $productCollectionFactory - * @param \Magento\CatalogUrlRewrite\Model\CategoryProductUrlPathGenerator $categoryBasedProductRewriteGenerator - * @param \Magento\UrlRewrite\Model\MergeDataProviderFactory|null $mergeDataProviderFactory - * @param \Magento\Framework\Serialize\Serializer\Json|null $serializer + * @var ProductScopeRewriteGenerator + */ + private $productScopeRewriteGenerator; + + /** + * @param ChildrenCategoriesProvider $childrenCategoriesProvider + * @param CategoryUrlRewriteGenerator $categoryUrlRewriteGenerator + * @param ProductUrlRewriteGenerator $productUrlRewriteGenerator + * @param UrlPersistInterface $urlPersist + * @param CollectionFactory $productCollectionFactory + * @param CategoryProductUrlPathGenerator $categoryBasedProductRewriteGenerator + * @param MergeDataProviderFactory|null $mergeDataProviderFactory + * @param Json|null $serializer + * @param ProductScopeRewriteGenerator|null $productScopeRewriteGenerator */ public function __construct( - \Magento\CatalogUrlRewrite\Model\Category\ChildrenCategoriesProvider $childrenCategoriesProvider, - \Magento\CatalogUrlRewrite\Model\CategoryUrlRewriteGenerator $categoryUrlRewriteGenerator, - \Magento\CatalogUrlRewrite\Model\ProductUrlRewriteGenerator $productUrlRewriteGenerator, - \Magento\UrlRewrite\Model\UrlPersistInterface $urlPersist, - \Magento\Catalog\Model\ResourceModel\Product\CollectionFactory $productCollectionFactory, - \Magento\CatalogUrlRewrite\Model\CategoryProductUrlPathGenerator $categoryBasedProductRewriteGenerator, - \Magento\UrlRewrite\Model\MergeDataProviderFactory $mergeDataProviderFactory = null, - \Magento\Framework\Serialize\Serializer\Json $serializer = null + ChildrenCategoriesProvider $childrenCategoriesProvider, + CategoryUrlRewriteGenerator $categoryUrlRewriteGenerator, + ProductUrlRewriteGenerator $productUrlRewriteGenerator, + UrlPersistInterface $urlPersist, + CollectionFactory $productCollectionFactory, + CategoryProductUrlPathGenerator $categoryBasedProductRewriteGenerator, + MergeDataProviderFactory $mergeDataProviderFactory = null, + Json $serializer = null, + ProductScopeRewriteGenerator $productScopeRewriteGenerator = null ) { $this->childrenCategoriesProvider = $childrenCategoriesProvider; $this->categoryUrlRewriteGenerator = $categoryUrlRewriteGenerator; @@ -79,58 +107,29 @@ public function __construct( $this->productCollectionFactory = $productCollectionFactory; $this->categoryBasedProductRewriteGenerator = $categoryBasedProductRewriteGenerator; - if (!isset($mergeDataProviderFactory)) { - $mergeDataProviderFactory = \Magento\Framework\App\ObjectManager::getInstance()->get( - \Magento\UrlRewrite\Model\MergeDataProviderFactory::class - ); - } - + $objectManager = ObjectManager::getInstance(); + $mergeDataProviderFactory = $mergeDataProviderFactory ?: $objectManager->get(MergeDataProviderFactory::class); $this->mergeDataProviderPrototype = $mergeDataProviderFactory->create(); - - $this->serializer = $serializer ?: \Magento\Framework\App\ObjectManager::getInstance()->get( - \Magento\Framework\Serialize\Serializer\Json::class - ); + $this->serializer = $serializer ?: $objectManager->get(Json::class); + $this->productScopeRewriteGenerator = $productScopeRewriteGenerator + ?: $objectManager->get(ProductScopeRewriteGenerator::class); } /** - * Generate url rewrites for products assigned to category + * Generates URL rewrites for products assigned to category. * - * @param \Magento\Catalog\Model\Category $category + * @param Category $category * @return array */ - public function generateProductUrlRewrites(\Magento\Catalog\Model\Category $category) + public function generateProductUrlRewrites(Category $category): array { $mergeDataProvider = clone $this->mergeDataProviderPrototype; $this->isSkippedProduct[$category->getEntityId()] = []; $saveRewriteHistory = $category->getData('save_rewrites_history'); - $storeId = $category->getStoreId(); + $storeId = (int)$category->getStoreId(); if ($category->getChangedProductIds()) { - $this->isSkippedProduct[$category->getEntityId()] = $category->getAffectedProductIds(); - /* @var \Magento\Catalog\Model\ResourceModel\Product\Collection $collection */ - $collection = $this->productCollectionFactory->create() - ->setStoreId($storeId) - ->addIdFilter($category->getAffectedProductIds()) - ->addAttributeToSelect('visibility') - ->addAttributeToSelect('name') - ->addAttributeToSelect('url_key') - ->addAttributeToSelect('url_path'); - - $collection->setPageSize(1000); - $pageCount = $collection->getLastPageNumber(); - $currentPage = 1; - while ($currentPage <= $pageCount) { - $collection->setCurPage($currentPage); - foreach ($collection as $product) { - $product->setStoreId($storeId); - $product->setData('save_rewrites_history', $saveRewriteHistory); - $mergeDataProvider->merge( - $this->productUrlRewriteGenerator->generate($product, $category->getEntityId()) - ); - } - $collection->clear(); - $currentPage++; - } + $this->generateChangedProductUrls($mergeDataProvider, $category, $storeId, $saveRewriteHistory); } else { $mergeDataProvider->merge( $this->getCategoryProductsUrlRewrites( @@ -157,21 +156,49 @@ public function generateProductUrlRewrites(\Magento\Catalog\Model\Category $cate } /** - * @param \Magento\Catalog\Model\Category $category + * @param Category $category + * @return void + */ + public function deleteCategoryRewritesForChildren(Category $category) + { + $categoryIds = $this->childrenCategoriesProvider->getChildrenIds($category, true); + $categoryIds[] = $category->getId(); + foreach ($categoryIds as $categoryId) { + $this->urlPersist->deleteByData( + [ + UrlRewrite::ENTITY_ID => + $categoryId, + UrlRewrite::ENTITY_TYPE => + CategoryUrlRewriteGenerator::ENTITY_TYPE, + ] + ); + $this->urlPersist->deleteByData( + [ + UrlRewrite::METADATA => + $this->serializer->serialize(['category_id' => $categoryId]), + UrlRewrite::ENTITY_TYPE => + ProductUrlRewriteGenerator::ENTITY_TYPE, + ] + ); + } + } + + /** + * @param Category $category * @param int $storeId * @param bool $saveRewriteHistory * @param int|null $rootCategoryId * @return array */ private function getCategoryProductsUrlRewrites( - \Magento\Catalog\Model\Category $category, + Category $category, $storeId, $saveRewriteHistory, $rootCategoryId = null ) { $mergeDataProvider = clone $this->mergeDataProviderPrototype; - /** @var \Magento\Catalog\Model\ResourceModel\Product\Collection $productCollection */ + /** @var Collection $productCollection */ $productCollection = $this->productCollectionFactory->create(); $productCollection->addCategoriesFilter(['eq' => [$category->getEntityId()]]) @@ -199,30 +226,65 @@ private function getCategoryProductsUrlRewrites( } /** - * @param \Magento\Catalog\Model\Category $category - * @return void + * Generates product URL rewrites. + * + * @param MergeDataProvider $mergeDataProvider + * @param Category $category + * @param Product $product + * @param int $storeId + * @param $saveRewriteHistory */ - public function deleteCategoryRewritesForChildren(\Magento\Catalog\Model\Category $category) - { - $categoryIds = $this->childrenCategoriesProvider->getChildrenIds($category, true); - $categoryIds[] = $category->getId(); - foreach ($categoryIds as $categoryId) { - $this->urlPersist->deleteByData( - [ - \Magento\UrlRewrite\Service\V1\Data\UrlRewrite::ENTITY_ID => - $categoryId, - \Magento\UrlRewrite\Service\V1\Data\UrlRewrite::ENTITY_TYPE => - \Magento\CatalogUrlRewrite\Model\CategoryUrlRewriteGenerator::ENTITY_TYPE, - ] - ); - $this->urlPersist->deleteByData( - [ - \Magento\UrlRewrite\Service\V1\Data\UrlRewrite::METADATA => - $this->serializer->serialize(['category_id' => $categoryId]), - \Magento\UrlRewrite\Service\V1\Data\UrlRewrite::ENTITY_TYPE => - \Magento\CatalogUrlRewrite\Model\ProductUrlRewriteGenerator::ENTITY_TYPE, - ] - ); + private function generateChangedProductUrls( + MergeDataProvider $mergeDataProvider, + Category $category, + int $storeId, + $saveRewriteHistory + ) { + $this->isSkippedProduct[$category->getEntityId()] = $category->getAffectedProductIds(); + + $categoryStoreIds = [$storeId]; + // If category is changed in the Global scope when need to regenerate product URL rewrites for all other scopes. + if ($this->productScopeRewriteGenerator->isGlobalScope($storeId)) { + $categoryStoreIds = $this->getCategoryStoreIds($category); + } + + foreach ($categoryStoreIds as $categoryStoreId) { + /* @var Collection $collection */ + $collection = $this->productCollectionFactory->create() + ->setStoreId($categoryStoreId) + ->addIdFilter($category->getAffectedProductIds()) + ->addAttributeToSelect('visibility') + ->addAttributeToSelect('name') + ->addAttributeToSelect('url_key') + ->addAttributeToSelect('url_path'); + + $collection->setPageSize(1000); + $pageCount = $collection->getLastPageNumber(); + $currentPage = 1; + while ($currentPage <= $pageCount) { + $collection->setCurPage($currentPage); + foreach ($collection as $product) { + $product->setData('save_rewrites_history', $saveRewriteHistory); + $product->setStoreId($categoryStoreId); + $mergeDataProvider->merge( + $this->productUrlRewriteGenerator->generate($product, $category->getEntityId()) + ); + } + $collection->clear(); + $currentPage++; + } } } + + /** + * Gets category store IDs without Global Store. + * + * @param Category $category + * @return array + */ + private function getCategoryStoreIds(Category $category): array + { + $ids = $category->getStoreIds(); + return array_filter($ids); + } } diff --git a/dev/tests/integration/testsuite/Magento/CatalogUrlRewrite/Fixtures/product_custom_url_key.php b/dev/tests/integration/testsuite/Magento/CatalogUrlRewrite/Fixtures/product_custom_url_key.php new file mode 100644 index 0000000000000..cae23dcc9c674 --- /dev/null +++ b/dev/tests/integration/testsuite/Magento/CatalogUrlRewrite/Fixtures/product_custom_url_key.php @@ -0,0 +1,30 @@ +get(Registry::class); +$registry->unregister('isSecureArea'); +$registry->register('isSecureArea', true); + +require __DIR__ . '/../_files/product_with_category.php'; + +/** @var ProductRepositoryInterface $productRepository */ +$productRepository = $objectManager->get(ProductRepositoryInterface::class); +$product->setStoreId(1); +$product->setUrlKey('store-1-key'); +$product = $productRepository->save($product); +$linkManagement->assignProductToCategories($product->getSku(), [Category::TREE_ROOT_ID, $category->getEntityId()]); + +$registry->unregister('isSecureArea'); +$registry->register('isSecureArea', false); diff --git a/dev/tests/integration/testsuite/Magento/CatalogUrlRewrite/Fixtures/product_custom_url_key_rollback.php b/dev/tests/integration/testsuite/Magento/CatalogUrlRewrite/Fixtures/product_custom_url_key_rollback.php new file mode 100644 index 0000000000000..517e9121a6d1e --- /dev/null +++ b/dev/tests/integration/testsuite/Magento/CatalogUrlRewrite/Fixtures/product_custom_url_key_rollback.php @@ -0,0 +1,21 @@ +get(Registry::class); +$registry->unregister('isSecureArea'); +$registry->register('isSecureArea', true); + +require __DIR__ . '/../_files/product_with_category_rollback.php'; + +$registry->unregister('isSecureArea'); +$registry->register('isSecureArea', false); diff --git a/dev/tests/integration/testsuite/Magento/CatalogUrlRewrite/Observer/UrlRewriteHandlerTest.php b/dev/tests/integration/testsuite/Magento/CatalogUrlRewrite/Observer/UrlRewriteHandlerTest.php new file mode 100644 index 0000000000000..402db06a0bbc9 --- /dev/null +++ b/dev/tests/integration/testsuite/Magento/CatalogUrlRewrite/Observer/UrlRewriteHandlerTest.php @@ -0,0 +1,111 @@ +objectManager = Bootstrap::getObjectManager(); + $this->handler = $this->objectManager->get(UrlRewriteHandler::class); + } + + /** + * Checks category URLs rewrites generation with enabled `Use Categories Path for Product URLs` option and + * store's specific product URL key. + * + * @magentoDbIsolation disabled + * @magentoDataFixture Magento/CatalogUrlRewrite/Fixtures/product_custom_url_key.php + * @magentoConfigFixture admin_store catalog/seo/product_use_categories 1 + */ + public function testGenerateProductUrlRewrites() + { + $product = $this->getProduct('p002'); + $category = $this->getCategory('category 1'); + // change the category scope to the global + $category->setStoreId(0) + ->setChangedProductIds([$product->getId()]) + ->setAffectedProductIds([$product->getId()]) + ->setAnchorsAbove(false); + + $generatedUrls = $this->handler->generateProductUrlRewrites($category); + $actual = array_values(array_map(function (UrlRewrite $urlRewrite) { + return $urlRewrite->getRequestPath(); + }, $generatedUrls)); + + $expected = [ + 'store-1-key.html', // the Default store + 'cat-1/store-1-key.html', // the Default store with Category URL key + '/store-1-key.html', // an anchor URL the Default store + 'p002.html', // the Secondary store + 'cat-1-2/p002.html', // the Secondary store with Category URL key + '/p002.html', // an anchor URL the Secondary store + ]; + self::assertEquals($expected, $actual, 'Generated URLs rewrites do not match.'); + } + + /** + * Gets category by name. + * + * @param string $name + * @return CategoryInterface + */ + private function getCategory(string $name): CategoryInterface + { + /** @var SearchCriteriaBuilder $searchCriteriaBuilder */ + $searchCriteriaBuilder = $this->objectManager->get(SearchCriteriaBuilder::class); + $searchCriteria = $searchCriteriaBuilder->addFilter('name', $name) + ->create(); + /** @var CategoryListInterface $repository */ + $repository = $this->objectManager->get(CategoryListInterface::class); + $items = $repository->getList($searchCriteria) + ->getItems(); + + return array_pop($items); + } + + /** + * Gets product by SKU. + * + * @param string $sku + * @return ProductInterface + * @throws \Magento\Framework\Exception\NoSuchEntityException + */ + private function getProduct(string $sku): ProductInterface + { + /** @var ProductRepositoryInterface $productRepository */ + $productRepository = $this->objectManager->get(ProductRepositoryInterface::class); + return $productRepository->get($sku); + } +} diff --git a/dev/tests/integration/testsuite/Magento/CatalogUrlRewrite/_files/product_with_category.php b/dev/tests/integration/testsuite/Magento/CatalogUrlRewrite/_files/product_with_category.php index aa753a3509987..2f3d4ea4c3e7f 100644 --- a/dev/tests/integration/testsuite/Magento/CatalogUrlRewrite/_files/product_with_category.php +++ b/dev/tests/integration/testsuite/Magento/CatalogUrlRewrite/_files/product_with_category.php @@ -75,7 +75,7 @@ /** @var ProductRepositoryInterface $productRepository */ $productRepository = $objectManager->get(ProductRepositoryInterface::class); -$productRepository->save($product); +$product = $productRepository->save($product); /** @var CategoryLinkManagementInterface $linkManagement */ $linkManagement = $objectManager->get(CategoryLinkManagementInterface::class); From 4c2d6f5c61fc42c15880f243f9a28a94459d676a Mon Sep 17 00:00:00 2001 From: Max Lesechko Date: Wed, 8 Aug 2018 11:41:17 -0500 Subject: [PATCH 04/27] MAGETWO-90863: Error handling responses from MBI --- .../Connector/Http/ConverterInterface.php | 5 +++++ .../Model/Connector/Http/JsonConverter.php | 19 ++++++++++++++++++- .../Model/Connector/Http/ResponseResolver.php | 6 +++--- .../Model/Connector/Http/Client/CurlTest.php | 18 ++++++++---------- .../Connector/Http/JsonConverterTest.php | 5 ++++- .../Connector/Http/ResponseResolverTest.php | 8 ++++---- .../Model/Connector/SignUpCommandTest.php | 1 - 7 files changed, 42 insertions(+), 20 deletions(-) diff --git a/app/code/Magento/Analytics/Model/Connector/Http/ConverterInterface.php b/app/code/Magento/Analytics/Model/Connector/Http/ConverterInterface.php index 474398fd34e26..5f92e1104b313 100644 --- a/app/code/Magento/Analytics/Model/Connector/Http/ConverterInterface.php +++ b/app/code/Magento/Analytics/Model/Connector/Http/ConverterInterface.php @@ -30,4 +30,9 @@ public function toBody(array $data); * @return string */ public function getContentTypeHeader(); + + /** + * @return string + */ + public function getContentMediaType(): string ; } diff --git a/app/code/Magento/Analytics/Model/Connector/Http/JsonConverter.php b/app/code/Magento/Analytics/Model/Connector/Http/JsonConverter.php index 44c54f67da759..059dab554bd92 100644 --- a/app/code/Magento/Analytics/Model/Connector/Http/JsonConverter.php +++ b/app/code/Magento/Analytics/Model/Connector/Http/JsonConverter.php @@ -3,6 +3,8 @@ * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ +declare(strict_types=1); + namespace Magento\Analytics\Model\Connector\Http; use Magento\Framework\Serialize\Serializer\Json; @@ -14,9 +16,16 @@ class JsonConverter implements ConverterInterface { /** * Content-Type HTTP header for json. + * @deprecated + * @see CONTENT_MEDIA_TYPE */ const CONTENT_TYPE_HEADER = 'Content-Type: application/json'; + /** + * Media-Type corresponding to this converter. + */ + const CONTENT_MEDIA_TYPE = 'application/json'; + /** * @var Json */ @@ -56,6 +65,14 @@ public function toBody(array $data) */ public function getContentTypeHeader() { - return self::CONTENT_TYPE_HEADER; + return sprintf('Content-Type: %s', self::CONTENT_MEDIA_TYPE); + } + + /** + * @inheritdoc + */ + public function getContentMediaType(): string + { + return self::CONTENT_MEDIA_TYPE; } } diff --git a/app/code/Magento/Analytics/Model/Connector/Http/ResponseResolver.php b/app/code/Magento/Analytics/Model/Connector/Http/ResponseResolver.php index 4cba11123873f..57b61c1b5562a 100644 --- a/app/code/Magento/Analytics/Model/Connector/Http/ResponseResolver.php +++ b/app/code/Magento/Analytics/Model/Connector/Http/ResponseResolver.php @@ -38,10 +38,10 @@ public function __construct(ConverterInterface $converter, array $responseHandle public function getResult(\Zend_Http_Response $response) { $result = false; - preg_match('#(?:Content-Type:\s*)(\w\S+)#i', $this->converter->getContentTypeHeader(), $contentType); - $converterContentType = $contentType[1]; + $converterMediaType = $this->converter->getContentMediaType(); - if ($response->getBody() && is_int(strripos($response->getHeader('Content-Type'), $converterContentType))) { + /** Content-Type header may not only contain media-type declaration */ + if ($response->getBody() && is_int(strripos($response->getHeader('Content-Type'), $converterMediaType))) { $responseBody = $this->converter->fromBody($response->getBody()); } else { $responseBody = []; diff --git a/app/code/Magento/Analytics/Test/Unit/Model/Connector/Http/Client/CurlTest.php b/app/code/Magento/Analytics/Test/Unit/Model/Connector/Http/Client/CurlTest.php index 5ee59a7913a61..cc432e338741b 100644 --- a/app/code/Magento/Analytics/Test/Unit/Model/Connector/Http/Client/CurlTest.php +++ b/app/code/Magento/Analytics/Test/Unit/Model/Connector/Http/Client/CurlTest.php @@ -97,7 +97,6 @@ public function getTestData() 'version' => '1.1', 'body'=> ['name' => 'value'], 'url' => 'http://www.mystore.com', - 'headers' => [JsonConverter::CONTENT_TYPE_HEADER], 'method' => \Magento\Framework\HTTP\ZendClient::POST, ] ] @@ -118,7 +117,7 @@ public function testRequestSuccess(array $data) $data['method'], $data['url'], $data['version'], - $data['headers'], + [$this->converterMock->getContentTypeHeader()], json_encode($data['body']) ); $this->curlAdapterMock->expects($this->once()) @@ -139,7 +138,7 @@ public function testRequestSuccess(array $data) $data['method'], $data['url'], $data['body'], - $data['headers'], + [$this->converterMock->getContentTypeHeader()], $data['version'] ) ); @@ -158,7 +157,7 @@ public function testRequestError(array $data) $data['method'], $data['url'], $data['version'], - $data['headers'], + [$this->converterMock->getContentTypeHeader()], json_encode($data['body']) ); $this->curlAdapterMock->expects($this->once()) @@ -184,7 +183,7 @@ public function testRequestError(array $data) $data['method'], $data['url'], $data['body'], - $data['headers'], + [$this->converterMock->getContentTypeHeader()], $data['version'] ) ); @@ -195,14 +194,13 @@ public function testRequestError(array $data) */ private function createJsonConverter() { - $converterMock = $this->getMockBuilder(ConverterInterface::class) - ->getMockForAbstractClass(); + $converterMock = $this->getMockBuilder(JsonConverter::class) + ->setMethodsExcept(['getContentTypeHeader']) + ->disableOriginalConstructor() + ->getMock(); $converterMock->expects($this->any())->method('toBody')->willReturnCallback(function ($value) { return json_encode($value); }); - $converterMock->expects($this->any()) - ->method('getContentTypeHeader') - ->willReturn(JsonConverter::CONTENT_TYPE_HEADER); return $converterMock; } } diff --git a/app/code/Magento/Analytics/Test/Unit/Model/Connector/Http/JsonConverterTest.php b/app/code/Magento/Analytics/Test/Unit/Model/Connector/Http/JsonConverterTest.php index 251f0d1474083..dad016a92d2f2 100644 --- a/app/code/Magento/Analytics/Test/Unit/Model/Connector/Http/JsonConverterTest.php +++ b/app/code/Magento/Analytics/Test/Unit/Model/Connector/Http/JsonConverterTest.php @@ -39,7 +39,10 @@ protected function setUp() public function testConverterContainsHeader() { - $this->assertEquals(JsonConverter::CONTENT_TYPE_HEADER, $this->converter->getContentTypeHeader()); + $this->assertEquals( + 'Content-Type: ' . JsonConverter::CONTENT_MEDIA_TYPE, + $this->converter->getContentTypeHeader() + ); } /** diff --git a/app/code/Magento/Analytics/Test/Unit/Model/Connector/Http/ResponseResolverTest.php b/app/code/Magento/Analytics/Test/Unit/Model/Connector/Http/ResponseResolverTest.php index f9fce447ca381..2564240c4fa11 100644 --- a/app/code/Magento/Analytics/Test/Unit/Model/Connector/Http/ResponseResolverTest.php +++ b/app/code/Magento/Analytics/Test/Unit/Model/Connector/Http/ResponseResolverTest.php @@ -73,8 +73,8 @@ public function testGetResultHandleResponseSuccess() $expectedBody = ['test' => 'testValue']; $response = new \Zend_Http_Response(201, ['Content-Type' => 'application/json'], json_encode($expectedBody)); $this->converterMock - ->method('getContentTypeHeader') - ->willReturn('Content-Type: application/json'); + ->method('getContentMediaType') + ->willReturn('application/json'); $this->successResponseHandlerMock ->expects($this->once()) @@ -99,8 +99,8 @@ public function testGetResultHandleResponseUnexpectedContentType() $expectedBody = 'testString'; $response = new \Zend_Http_Response(201, ['Content-Type' => 'plain/text'], $expectedBody); $this->converterMock - ->method('getContentTypeHeader') - ->willReturn('Content-Type: application/json'); + ->method('getContentMediaType') + ->willReturn('application/json'); $this->converterMock ->expects($this->never()) ->method('fromBody'); diff --git a/app/code/Magento/Analytics/Test/Unit/Model/Connector/SignUpCommandTest.php b/app/code/Magento/Analytics/Test/Unit/Model/Connector/SignUpCommandTest.php index db6cda7153c1a..ab79453a34048 100644 --- a/app/code/Magento/Analytics/Test/Unit/Model/Connector/SignUpCommandTest.php +++ b/app/code/Magento/Analytics/Test/Unit/Model/Connector/SignUpCommandTest.php @@ -163,7 +163,6 @@ private function getTestData() 'url' => 'http://www.mystore.com', 'access-token' => 'thisisaccesstoken', 'integration-token' => 'thisisintegrationtoken', - 'headers' => [JsonConverter::CONTENT_TYPE_HEADER], 'method' => \Magento\Framework\HTTP\ZendClient::POST, 'body'=> ['token' => 'thisisintegrationtoken','url' => 'http://www.mystore.com'], ]; From 7918eb45b47f9e006e576aa77343483b89a2d529 Mon Sep 17 00:00:00 2001 From: Max Lesechko Date: Wed, 8 Aug 2018 11:47:08 -0500 Subject: [PATCH 05/27] MAGETWO-90863: Error handling responses from MBI --- .../Analytics/Model/Connector/Http/ConverterInterface.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/code/Magento/Analytics/Model/Connector/Http/ConverterInterface.php b/app/code/Magento/Analytics/Model/Connector/Http/ConverterInterface.php index 5f92e1104b313..ddd9fcba21109 100644 --- a/app/code/Magento/Analytics/Model/Connector/Http/ConverterInterface.php +++ b/app/code/Magento/Analytics/Model/Connector/Http/ConverterInterface.php @@ -34,5 +34,5 @@ public function getContentTypeHeader(); /** * @return string */ - public function getContentMediaType(): string ; + public function getContentMediaType(): string; } From 9c8b2e21047446bde902bd3da91425a0241a83db Mon Sep 17 00:00:00 2001 From: Max Lesechko Date: Wed, 8 Aug 2018 15:31:08 -0500 Subject: [PATCH 06/27] MAGETWO-90863: Error handling responses from MBI --- .../Unit/Model/Connector/Http/Client/CurlTest.php | 4 ++++ .../Model/Connector/Http/JsonConverterTest.php | 9 +++++++++ .../Unit/Model/Connector/SignUpCommandTest.php | 14 ++++++++++++++ .../Unit/Model/Paypal/Helper/QuoteUpdaterTest.php | 2 +- .../Product/Listing/Collector/MsrpPriceTest.php | 2 +- .../Adminhtml/Order/Create/ReorderTest.php | 4 +++- .../Sales/Test/Unit/Model/Order/ConfigTest.php | 1 + .../Product/Listing/Collector/TaxTest.php | 2 ++ .../Product/Listing/Collector/WeeeTest.php | 4 +++- 9 files changed, 38 insertions(+), 4 deletions(-) diff --git a/app/code/Magento/Analytics/Test/Unit/Model/Connector/Http/Client/CurlTest.php b/app/code/Magento/Analytics/Test/Unit/Model/Connector/Http/Client/CurlTest.php index cc432e338741b..b84ce53247f98 100644 --- a/app/code/Magento/Analytics/Test/Unit/Model/Connector/Http/Client/CurlTest.php +++ b/app/code/Magento/Analytics/Test/Unit/Model/Connector/Http/Client/CurlTest.php @@ -104,7 +104,9 @@ public function getTestData() } /** + * @param array $data * @return void + * @throws \Zend_Http_Exception * @dataProvider getTestData */ public function testRequestSuccess(array $data) @@ -145,7 +147,9 @@ public function testRequestSuccess(array $data) } /** + * @param array $data * @return void + * @throws \Zend_Http_Exception * @dataProvider getTestData */ public function testRequestError(array $data) diff --git a/app/code/Magento/Analytics/Test/Unit/Model/Connector/Http/JsonConverterTest.php b/app/code/Magento/Analytics/Test/Unit/Model/Connector/Http/JsonConverterTest.php index dad016a92d2f2..d3258c8ae9caa 100644 --- a/app/code/Magento/Analytics/Test/Unit/Model/Connector/Http/JsonConverterTest.php +++ b/app/code/Magento/Analytics/Test/Unit/Model/Connector/Http/JsonConverterTest.php @@ -25,6 +25,9 @@ class JsonConverterTest extends \PHPUnit\Framework\TestCase */ private $converter; + /** + * @return void + */ protected function setUp() { $this->objectManagerHelper = new \Magento\Framework\TestFramework\Unit\Helper\ObjectManager($this); @@ -37,6 +40,9 @@ protected function setUp() ); } + /** + * @return void + */ public function testConverterContainsHeader() { $this->assertEquals( @@ -69,6 +75,9 @@ public function convertBodyDataProvider() ]; } + /** + * return void + */ public function testConvertData() { $this->serializerMock->expects($this->once()) diff --git a/app/code/Magento/Analytics/Test/Unit/Model/Connector/SignUpCommandTest.php b/app/code/Magento/Analytics/Test/Unit/Model/Connector/SignUpCommandTest.php index ab79453a34048..c113b2dc275dd 100644 --- a/app/code/Magento/Analytics/Test/Unit/Model/Connector/SignUpCommandTest.php +++ b/app/code/Magento/Analytics/Test/Unit/Model/Connector/SignUpCommandTest.php @@ -57,6 +57,9 @@ class SignUpCommandTest extends \PHPUnit\Framework\TestCase */ private $responseResolverMock; + /** + * @return void + */ protected function setUp() { $this->analyticsTokenMock = $this->getMockBuilder(AnalyticsToken::class) @@ -91,6 +94,10 @@ protected function setUp() ); } + /** + * @throws \Zend_Http_Exception + * @return void + */ public function testExecuteSuccess() { $this->integrationManagerMock->expects($this->once()) @@ -124,6 +131,9 @@ public function testExecuteSuccess() $this->assertTrue($this->signUpCommand->execute()); } + /** + * @return void + */ public function testExecuteFailureCannotGenerateToken() { $this->integrationManagerMock->expects($this->once()) @@ -134,6 +144,10 @@ public function testExecuteFailureCannotGenerateToken() $this->assertFalse($this->signUpCommand->execute()); } + /** + * @throws \Zend_Http_Exception + * @return void + */ public function testExecuteFailureResponseIsEmpty() { $this->integrationManagerMock->expects($this->once()) diff --git a/app/code/Magento/Braintree/Test/Unit/Model/Paypal/Helper/QuoteUpdaterTest.php b/app/code/Magento/Braintree/Test/Unit/Model/Paypal/Helper/QuoteUpdaterTest.php index 76bf5b659bda3..50dd371ac3ad8 100644 --- a/app/code/Magento/Braintree/Test/Unit/Model/Paypal/Helper/QuoteUpdaterTest.php +++ b/app/code/Magento/Braintree/Test/Unit/Model/Paypal/Helper/QuoteUpdaterTest.php @@ -300,7 +300,7 @@ private function getQuoteMock() $cartExtensionMock = $this->getMockBuilder(CartExtensionInterface::class) ->setMethods(['setShippingAssignments']) ->disableOriginalConstructor() - ->getMock(); + ->getMockForAbstractClass(); $quoteMock->expects(self::any()) ->method('getExtensionAttributes') diff --git a/app/code/Magento/Msrp/Test/Unit/Ui/DataProvider/Product/Listing/Collector/MsrpPriceTest.php b/app/code/Magento/Msrp/Test/Unit/Ui/DataProvider/Product/Listing/Collector/MsrpPriceTest.php index 90b060f51073f..f99d48285d7af 100644 --- a/app/code/Magento/Msrp/Test/Unit/Ui/DataProvider/Product/Listing/Collector/MsrpPriceTest.php +++ b/app/code/Magento/Msrp/Test/Unit/Ui/DataProvider/Product/Listing/Collector/MsrpPriceTest.php @@ -101,7 +101,7 @@ public function testCollect() \Magento\Catalog\Api\Data\ProductRender\PriceInfoExtensionInterface::class ) ->setMethods(['setMsrp']) - ->getMock(); + ->getMockForAbstractClass(); $priceInfo = $this->getMockBuilder(MsrpPriceInfoInterface::class) ->setMethods(['getPrice', 'getExtensionAttributes']) diff --git a/app/code/Magento/Sales/Test/Unit/Controller/Adminhtml/Order/Create/ReorderTest.php b/app/code/Magento/Sales/Test/Unit/Controller/Adminhtml/Order/Create/ReorderTest.php index 1fdd9759f5045..8203b4486d193 100644 --- a/app/code/Magento/Sales/Test/Unit/Controller/Adminhtml/Order/Create/ReorderTest.php +++ b/app/code/Magento/Sales/Test/Unit/Controller/Adminhtml/Order/Create/ReorderTest.php @@ -118,7 +118,9 @@ protected function setUp() ->getMock(); $this->requestMock = $this->getMockBuilder(RequestInterface::class)->getMockForAbstractClass(); $this->objectManagerMock = $this->getMockBuilder(ObjectManagerInterface::class)->getMockForAbstractClass(); - $this->resultForwardFactoryMock = $this->getMockBuilder(ForwardFactory::class)->getMock(); + $this->resultForwardFactoryMock = $this->getMockBuilder(ForwardFactory::class) + ->disableOriginalConstructor() + ->getMock(); $this->resultRedirectFactoryMock = $this->getMockBuilder(RedirectFactory::class) ->disableOriginalConstructor() ->getMock(); diff --git a/app/code/Magento/Sales/Test/Unit/Model/Order/ConfigTest.php b/app/code/Magento/Sales/Test/Unit/Model/Order/ConfigTest.php index 86419c0c905b6..decce409b3331 100644 --- a/app/code/Magento/Sales/Test/Unit/Model/Order/ConfigTest.php +++ b/app/code/Magento/Sales/Test/Unit/Model/Order/ConfigTest.php @@ -47,6 +47,7 @@ protected function setUp() 'storeManager' => $this->storeManagerMock, ]); $this->statusFactoryMock = $this->getMockBuilder(\Magento\Sales\Model\Order\StatusFactory::class) + ->disableOriginalConstructor() ->setMethods(['load', 'create']) ->getMock(); $this->orderStatusCollectionFactoryMock = $this->createPartialMock( diff --git a/app/code/Magento/Tax/Test/Unit/Ui/DataProvider/Product/Listing/Collector/TaxTest.php b/app/code/Magento/Tax/Test/Unit/Ui/DataProvider/Product/Listing/Collector/TaxTest.php index 4cf3f4d339e18..908aeb5e3f405 100644 --- a/app/code/Magento/Tax/Test/Unit/Ui/DataProvider/Product/Listing/Collector/TaxTest.php +++ b/app/code/Magento/Tax/Test/Unit/Ui/DataProvider/Product/Listing/Collector/TaxTest.php @@ -68,10 +68,12 @@ protected function setUp() ->getMockForAbstractClass(); $this->priceInfoFactory = $this->getMockBuilder(PriceInfoInterfaceFactory::class) + ->disableOriginalConstructor() ->setMethods(['create']) ->getMock(); $this->priceInfoExtensionFactory = $this->getMockBuilder(PriceInfoExtensionInterfaceFactory::class) + ->disableOriginalConstructor() ->setMethods(['create']) ->getMock(); $this->formattedPriceInfoBuilder = $this->getMockBuilder(FormattedPriceInfoBuilder::class) diff --git a/app/code/Magento/Weee/Test/Unit/Ui/DataProvider/Product/Listing/Collector/WeeeTest.php b/app/code/Magento/Weee/Test/Unit/Ui/DataProvider/Product/Listing/Collector/WeeeTest.php index 6be1713c99004..e6353a2b4b76a 100644 --- a/app/code/Magento/Weee/Test/Unit/Ui/DataProvider/Product/Listing/Collector/WeeeTest.php +++ b/app/code/Magento/Weee/Test/Unit/Ui/DataProvider/Product/Listing/Collector/WeeeTest.php @@ -50,14 +50,16 @@ protected function setUp() ->getMockForAbstractClass(); $this->weeeAdjustmentAttributeFactory = $this->getMockBuilder(WeeeAdjustmentAttributeInterfaceFactory::class) + ->disableOriginalConstructor() ->setMethods(['create']) ->getMock(); $this->extensionAttributes = $this->getMockBuilder(PriceInfoExtensionInterface::class) ->setMethods(['setWeeeAttributes', 'setWeeeAdjustment']) - ->getMock(); + ->getMockForAbstractClass(); $this->priceInfoExtensionFactory = $this->getMockBuilder(PriceInfoExtensionInterfaceFactory::class) + ->disableOriginalConstructor() ->setMethods(['create']) ->getMock(); From 586737e804d09ea779697ddc1afef030b7c173c6 Mon Sep 17 00:00:00 2001 From: Max Lesechko Date: Wed, 8 Aug 2018 15:55:36 -0500 Subject: [PATCH 07/27] MAGETWO-90863: Error handling responses from MBI --- .../Model/Connector/Http/Client/CurlTest.php | 1 + .../Model/Paypal/Helper/QuoteUpdaterTest.php | 10 ++++++ .../Listing/Collector/MsrpPriceTest.php | 6 ++++ .../Adminhtml/Order/Create/ReorderTest.php | 36 +++++++++++++++++-- .../Test/Unit/Model/Order/ConfigTest.php | 9 +++++ .../Product/Listing/Collector/TaxTest.php | 6 ++++ .../Product/Listing/Collector/WeeeTest.php | 6 ++++ 7 files changed, 71 insertions(+), 3 deletions(-) diff --git a/app/code/Magento/Analytics/Test/Unit/Model/Connector/Http/Client/CurlTest.php b/app/code/Magento/Analytics/Test/Unit/Model/Connector/Http/Client/CurlTest.php index b84ce53247f98..92f79c2bf6dee 100644 --- a/app/code/Magento/Analytics/Test/Unit/Model/Connector/Http/Client/CurlTest.php +++ b/app/code/Magento/Analytics/Test/Unit/Model/Connector/Http/Client/CurlTest.php @@ -12,6 +12,7 @@ /** * A unit test for testing of the CURL HTTP client. + * @SuppressWarnings(PHPMD.CouplingBetweenObjects) */ class CurlTest extends \PHPUnit\Framework\TestCase { diff --git a/app/code/Magento/Braintree/Test/Unit/Model/Paypal/Helper/QuoteUpdaterTest.php b/app/code/Magento/Braintree/Test/Unit/Model/Paypal/Helper/QuoteUpdaterTest.php index 50dd371ac3ad8..62452228b6186 100644 --- a/app/code/Magento/Braintree/Test/Unit/Model/Paypal/Helper/QuoteUpdaterTest.php +++ b/app/code/Magento/Braintree/Test/Unit/Model/Paypal/Helper/QuoteUpdaterTest.php @@ -51,6 +51,9 @@ class QuoteUpdaterTest extends \PHPUnit\Framework\TestCase */ private $quoteUpdater; + /** + * @return void + */ protected function setUp() { $this->configMock = $this->getMockBuilder(Config::class) @@ -99,6 +102,10 @@ protected function setUp() ); } + /** + * @return void + * @throws \Magento\Framework\Exception\LocalizedException + */ public function testExecute() { $details = $this->getDetails(); @@ -121,6 +128,9 @@ public function testExecute() $this->quoteUpdater->execute(self::TEST_NONCE, $details, $quoteMock); } + /** + * @return void + */ private function disabledQuoteAddressValidationStep() { $this->billingAddressMock->expects(self::once()) diff --git a/app/code/Magento/Msrp/Test/Unit/Ui/DataProvider/Product/Listing/Collector/MsrpPriceTest.php b/app/code/Magento/Msrp/Test/Unit/Ui/DataProvider/Product/Listing/Collector/MsrpPriceTest.php index f99d48285d7af..adf2a5b4a0e9e 100644 --- a/app/code/Magento/Msrp/Test/Unit/Ui/DataProvider/Product/Listing/Collector/MsrpPriceTest.php +++ b/app/code/Magento/Msrp/Test/Unit/Ui/DataProvider/Product/Listing/Collector/MsrpPriceTest.php @@ -50,6 +50,9 @@ class MsrpPriceTest extends \PHPUnit\Framework\TestCase */ private $priceInfoExtensionFactory; + /** + * @return void + */ protected function setUp() { $this->priceCurrencyMock = $this->getMockBuilder(\Magento\Framework\Pricing\PriceCurrencyInterface::class) @@ -86,6 +89,9 @@ protected function setUp() ); } + /** + * @return void + */ public function testCollect() { $product = $this->getMockBuilder(Product::class) diff --git a/app/code/Magento/Sales/Test/Unit/Controller/Adminhtml/Order/Create/ReorderTest.php b/app/code/Magento/Sales/Test/Unit/Controller/Adminhtml/Order/Create/ReorderTest.php index 8203b4486d193..b11d73de736d4 100644 --- a/app/code/Magento/Sales/Test/Unit/Controller/Adminhtml/Order/Create/ReorderTest.php +++ b/app/code/Magento/Sales/Test/Unit/Controller/Adminhtml/Order/Create/ReorderTest.php @@ -108,6 +108,9 @@ class ReorderTest extends \PHPUnit\Framework\TestCase */ private $orderId; + /** + * @return void + */ protected function setUp() { $this->orderId = 111; @@ -161,6 +164,9 @@ protected function setUp() ); } + /** + * @return void + */ public function testExecuteForward() { $this->clearStorage(); @@ -171,6 +177,9 @@ public function testExecuteForward() $this->assertInstanceOf(Forward::class, $this->reorder->execute()); } + /** + * @return void + */ public function testExecuteRedirectOrderGrid() { $this->clearStorage(); @@ -183,6 +192,9 @@ public function testExecuteRedirectOrderGrid() $this->assertInstanceOf(Redirect::class, $this->reorder->execute()); } + /** + * @return void + */ public function testExecuteRedirectBack() { $this->clearStorage(); @@ -197,6 +209,9 @@ public function testExecuteRedirectBack() $this->assertInstanceOf(Redirect::class, $this->reorder->execute()); } + /** + * @return void + */ public function testExecuteRedirectNewOrder() { $this->clearStorage(); @@ -211,6 +226,9 @@ public function testExecuteRedirectNewOrder() $this->assertInstanceOf(Redirect::class, $this->reorder->execute()); } + /** + * @return void + */ private function clearStorage() { $this->objectManagerMock->expects($this->at(0)) @@ -220,6 +238,9 @@ private function clearStorage() $this->quoteSessionMock->expects($this->once())->method('clearStorage')->will($this->returnSelf()); } + /** + * @return void + */ private function getOrder() { $this->requestMock->expects($this->once()) @@ -237,20 +258,26 @@ private function getOrder() */ private function canReorder($result) { - $entity_id = 1; - $this->orderMock->expects($this->once())->method('getEntityId')->willReturn($entity_id); + $entityId = 1; + $this->orderMock->expects($this->once())->method('getEntityId')->willReturn($entityId); $this->reorderHelperMock->expects($this->once()) ->method('canReorder') - ->with($entity_id) + ->with($entityId) ->willReturn($result); } + /** + * @return void + */ private function prepareForward() { $this->resultForwardFactoryMock->expects($this->once())->method('create')->willReturn($this->resultForwardMock); $this->resultForwardMock->expects($this->once())->method('forward')->with('noroute')->willReturnSelf(); } + /** + * @return void + */ private function createRedirect() { $this->resultRedirectFactoryMock->expects($this->once()) @@ -286,6 +313,9 @@ private function getUnavailableProducts(array $unavailableProducts) ->willReturn($unavailableProducts); } + /** + * @return void + */ private function initFromOrder() { $this->orderMock->expects($this->once())->method('setReordered')->with(true)->willReturnSelf(); diff --git a/app/code/Magento/Sales/Test/Unit/Model/Order/ConfigTest.php b/app/code/Magento/Sales/Test/Unit/Model/Order/ConfigTest.php index decce409b3331..feee2816b2cd4 100644 --- a/app/code/Magento/Sales/Test/Unit/Model/Order/ConfigTest.php +++ b/app/code/Magento/Sales/Test/Unit/Model/Order/ConfigTest.php @@ -38,6 +38,9 @@ class ConfigTest extends \PHPUnit\Framework\TestCase */ protected $storeManagerMock; + /** + * @return void + */ protected function setUp() { $objectManager = new \Magento\Framework\TestFramework\Unit\Helper\ObjectManager($this); @@ -64,6 +67,9 @@ protected function setUp() ); } + /** + * @return void + */ public function testGetInvisibleOnFrontStatuses() { $statuses = [ @@ -110,6 +116,9 @@ public function testGetInvisibleOnFrontStatuses() $this->assertSame($expectedResult, $result); } + /** + * @return void + */ public function testGetStateLabelByStateAndStatus() { $statuses = [ diff --git a/app/code/Magento/Tax/Test/Unit/Ui/DataProvider/Product/Listing/Collector/TaxTest.php b/app/code/Magento/Tax/Test/Unit/Ui/DataProvider/Product/Listing/Collector/TaxTest.php index 908aeb5e3f405..3f80d97ea921b 100644 --- a/app/code/Magento/Tax/Test/Unit/Ui/DataProvider/Product/Listing/Collector/TaxTest.php +++ b/app/code/Magento/Tax/Test/Unit/Ui/DataProvider/Product/Listing/Collector/TaxTest.php @@ -54,6 +54,9 @@ class TaxTest extends \PHPUnit\Framework\TestCase */ private $formattedPriceInfoBuilder; + /** + * @return void + */ protected function setUp() { $this->priceCurrencyMock = $this->getMockBuilder(PriceCurrencyInterface::class) @@ -88,6 +91,9 @@ protected function setUp() ); } + /** + * @return void + */ public function testCollect() { $amountValue = 10; diff --git a/app/code/Magento/Weee/Test/Unit/Ui/DataProvider/Product/Listing/Collector/WeeeTest.php b/app/code/Magento/Weee/Test/Unit/Ui/DataProvider/Product/Listing/Collector/WeeeTest.php index e6353a2b4b76a..266737089cd21 100644 --- a/app/code/Magento/Weee/Test/Unit/Ui/DataProvider/Product/Listing/Collector/WeeeTest.php +++ b/app/code/Magento/Weee/Test/Unit/Ui/DataProvider/Product/Listing/Collector/WeeeTest.php @@ -41,6 +41,9 @@ class WeeeTest extends \PHPUnit\Framework\TestCase /** @var FormattedPriceInfoBuilder|\PHPUnit_Framework_MockObject_MockObject */ private $formattedPriceInfoBuilder; + /** + * @return void + */ protected function setUp() { $this->weeeHelperMock = $this->getMockBuilder(\Magento\Weee\Helper\Data::class) @@ -76,6 +79,9 @@ protected function setUp() ); } + /** + * @return void + */ public function testCollect() { $productMock = $this->getMockBuilder(Product::class) From 1632ba906185ccce346ddb6367adb6649f3aad7b Mon Sep 17 00:00:00 2001 From: Max Lesechko Date: Thu, 9 Aug 2018 19:46:54 -0500 Subject: [PATCH 08/27] MAGETWO-90539: Fixed Tax doesn't show in any total or tax field of cart during checkout. --- .../view/frontend/web/js/model/new-customer-address.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/app/code/Magento/Checkout/view/frontend/web/js/model/new-customer-address.js b/app/code/Magento/Checkout/view/frontend/web/js/model/new-customer-address.js index 3bc5911946fda..a880bd423ab2e 100644 --- a/app/code/Magento/Checkout/view/frontend/web/js/model/new-customer-address.js +++ b/app/code/Magento/Checkout/view/frontend/web/js/model/new-customer-address.js @@ -17,17 +17,23 @@ define([ */ return function (addressData) { var identifier = Date.now(), + countryId = addressData['country_id'] || addressData.countryId || window.checkoutConfig.defaultCountryId, regionId; if (addressData.region && addressData.region['region_id']) { regionId = addressData.region['region_id']; - } else if (addressData['country_id'] && addressData['country_id'] == window.checkoutConfig.defaultCountryId) { //eslint-disable-line + } else if ( + /* eslint-disable */ + addressData['country_id'] && addressData['country_id'] == window.checkoutConfig.defaultCountryId || + !addressData['country_id'] && countryId == window.checkoutConfig.defaultCountryId + /* eslint-enable */ + ) { regionId = window.checkoutConfig.defaultRegionId || undefined; } return { email: addressData.email, - countryId: addressData['country_id'] || addressData.countryId || window.checkoutConfig.defaultCountryId, + countryId: countryId, regionId: regionId || addressData.regionId, regionCode: addressData.region ? addressData.region['region_code'] : null, region: addressData.region ? addressData.region.region : null, From 2d9b35a0480d23fee669aa88a8630ba5eca4a44b Mon Sep 17 00:00:00 2001 From: serhii balko Date: Fri, 10 Aug 2018 09:31:59 +0300 Subject: [PATCH 09/27] MAGETWO-93961: [2.3] Product URL rewrites get deleted in multi store views --- .../Magento/CatalogUrlRewrite/Observer/UrlRewriteHandler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/code/Magento/CatalogUrlRewrite/Observer/UrlRewriteHandler.php b/app/code/Magento/CatalogUrlRewrite/Observer/UrlRewriteHandler.php index 18360dedf0693..1268e864194bd 100644 --- a/app/code/Magento/CatalogUrlRewrite/Observer/UrlRewriteHandler.php +++ b/app/code/Magento/CatalogUrlRewrite/Observer/UrlRewriteHandler.php @@ -230,9 +230,9 @@ private function getCategoryProductsUrlRewrites( * * @param MergeDataProvider $mergeDataProvider * @param Category $category - * @param Product $product * @param int $storeId * @param $saveRewriteHistory + * @return void */ private function generateChangedProductUrls( MergeDataProvider $mergeDataProvider, From 1ebe5f18472421aaec7d18ad53ae0e732ac4e18c Mon Sep 17 00:00:00 2001 From: serhii balko Date: Fri, 10 Aug 2018 13:58:41 +0300 Subject: [PATCH 10/27] MAGETWO-93057: [2.3] salesShipmentRepositoryV1 throws error when adding tracking --- .../Magento/Sales/Model/Order/Shipment.php | 48 ++++--- .../Test/Unit/Model/Order/ShipmentTest.php | 44 ++---- .../Sales/Model/Order/ShipmentTest.php | 130 +++++++++++++----- 3 files changed, 140 insertions(+), 82 deletions(-) diff --git a/app/code/Magento/Sales/Model/Order/Shipment.php b/app/code/Magento/Sales/Model/Order/Shipment.php index e23d7eaef2f0a..7be7a79dcf004 100644 --- a/app/code/Magento/Sales/Model/Order/Shipment.php +++ b/app/code/Magento/Sales/Model/Order/Shipment.php @@ -9,6 +9,7 @@ use Magento\Sales\Api\Data\ShipmentInterface; use Magento\Sales\Model\AbstractModel; use Magento\Sales\Model\EntityInterface; +use Magento\Sales\Model\ResourceModel\Order\Shipment\Comment\Collection as CommentsCollection; /** * Sales order shipment model @@ -94,9 +95,14 @@ class Shipment extends AbstractModel implements EntityInterface, ShipmentInterfa protected $orderRepository; /** - * @var \Magento\Sales\Model\ResourceModel\Order\Shipment\Track\Collection|null + * @var \Magento\Sales\Model\ResourceModel\Order\Shipment\Track\Collection */ - private $tracksCollection = null; + private $tracksCollection; + + /** + * @var CommentsCollection + */ + private $commentsCollection; /** * @param \Magento\Framework\Model\Context $context @@ -414,43 +420,45 @@ public function addTrack(\Magento\Sales\Model\Order\Shipment\Track $track) public function addComment($comment, $notify = false, $visibleOnFront = false) { if (!$comment instanceof \Magento\Sales\Model\Order\Shipment\Comment) { - $comment = $this->_commentFactory->create()->setComment( - $comment - )->setIsCustomerNotified( - $notify - )->setIsVisibleOnFront( - $visibleOnFront - ); + $comment = $this->_commentFactory->create() + ->setComment($comment) + ->setIsCustomerNotified($notify) + ->setIsVisibleOnFront($visibleOnFront); } - $comment->setShipment($this)->setParentId($this->getId())->setStoreId($this->getStoreId()); + $comment->setShipment($this) + ->setParentId($this->getId()) + ->setStoreId($this->getStoreId()); if (!$comment->getId()) { $this->getCommentsCollection()->addItem($comment); } + $comments = $this->getComments(); + $comments[] = $comment; + $this->setComments($comments); $this->_hasDataChanges = true; return $this; } /** - * Retrieve comments collection. + * Retrieves comments collection. * * @param bool $reload - * @return \Magento\Sales\Model\ResourceModel\Order\Shipment\Comment\Collection + * @return CommentsCollection */ public function getCommentsCollection($reload = false) { - if (!$this->hasData(ShipmentInterface::COMMENTS) || $reload) { - $comments = $this->_commentCollectionFactory->create() - ->setShipmentFilter($this->getId()) - ->setCreatedAtOrder(); - $this->setComments($comments); - + if ($this->commentsCollection === null || $reload) { + $this->commentsCollection = $this->_commentCollectionFactory->create(); if ($this->getId()) { - foreach ($this->getComments() as $comment) { + $this->commentsCollection->setShipmentFilter($this->getId()) + ->setCreatedAtOrder(); + + foreach ($this->commentsCollection as $comment) { $comment->setShipment($this); } } } - return $this->getComments(); + + return $this->commentsCollection; } /** diff --git a/app/code/Magento/Sales/Test/Unit/Model/Order/ShipmentTest.php b/app/code/Magento/Sales/Test/Unit/Model/Order/ShipmentTest.php index 5204073454345..f1724899f22f5 100644 --- a/app/code/Magento/Sales/Test/Unit/Model/Order/ShipmentTest.php +++ b/app/code/Magento/Sales/Test/Unit/Model/Order/ShipmentTest.php @@ -25,7 +25,7 @@ class ShipmentTest extends \PHPUnit\Framework\TestCase private $commentCollection; /** - * @var \Magento\Sales\Model\Order\shipment + * @var Shipment */ private $shipmentModel; @@ -46,9 +46,6 @@ public function testGetIncrementId() $this->assertEquals('test_increment_id', $this->shipmentModel->getIncrementId()); } - /** - * @covers \Magento\Sales\Model\Order\Shipment::getCommentsCollection - */ public function testGetCommentsCollection() { $shipmentId = 1; @@ -58,36 +55,29 @@ public function testGetCommentsCollection() ->disableOriginalConstructor() ->setMethods(['setShipment']) ->getMock(); - $shipmentItem->expects(static::once()) - ->method('setShipment') + $shipmentItem->method('setShipment') ->with($this->shipmentModel); $collection = [$shipmentItem]; - $this->commentCollection->expects(static::once()) + $this->commentCollection->expects(self::once()) ->method('setShipmentFilter') ->with($shipmentId) ->willReturnSelf(); - $this->commentCollection->expects(static::once()) + $this->commentCollection->expects(self::once()) ->method('setCreatedAtOrder') ->willReturnSelf(); - $this->commentCollection->expects(static::once()) - ->method('load') - ->willReturnSelf(); - $reflection = new \ReflectionClass(Collection::class); $reflectionProperty = $reflection->getProperty('_items'); $reflectionProperty->setAccessible(true); $reflectionProperty->setValue($this->commentCollection, $collection); - $expected = $this->shipmentModel->getCommentsCollection(); + $actual = $this->shipmentModel->getCommentsCollection(); - static::assertEquals($expected, $this->commentCollection); + self::assertTrue(is_object($actual)); + self::assertEquals($this->commentCollection, $actual); } - /** - * @covers \Magento\Sales\Model\Order\Shipment::getComments - */ public function testGetComments() { $shipmentId = 1; @@ -97,30 +87,27 @@ public function testGetComments() ->disableOriginalConstructor() ->setMethods(['setShipment']) ->getMock(); - $shipmentItem->expects(static::once()) + $shipmentItem->expects(self::once()) ->method('setShipment') ->with($this->shipmentModel); $collection = [$shipmentItem]; - $this->commentCollection->expects(static::once()) - ->method('setShipmentFilter') + $this->commentCollection->method('setShipmentFilter') ->with($shipmentId) ->willReturnSelf(); - $this->commentCollection->expects(static::once()) - ->method('load') - ->willReturnSelf(); - $reflection = new \ReflectionClass(Collection::class); $reflectionProperty = $reflection->getProperty('_items'); $reflectionProperty->setAccessible(true); $reflectionProperty->setValue($this->commentCollection, $collection); - $this->commentCollection->expects(static::once()) + $this->commentCollection->expects(self::once()) ->method('getItems') ->willReturn($collection); - static::assertEquals($this->shipmentModel->getComments(), $collection); + $actual = $this->shipmentModel->getComments(); + self::assertTrue(is_array($actual)); + self::assertEquals($collection, $actual); } /** @@ -131,7 +118,7 @@ private function initCommentsCollectionFactoryMock() { $this->commentCollection = $this->getMockBuilder(Collection::class) ->disableOriginalConstructor() - ->setMethods(['setShipmentFilter', 'setCreatedAtOrder', 'getItems', 'load', '__wakeup']) + ->setMethods(['setShipmentFilter', 'setCreatedAtOrder', 'getItems', 'load']) ->getMock(); $this->commentCollectionFactory = $this->getMockBuilder(CollectionFactory::class) @@ -139,8 +126,7 @@ private function initCommentsCollectionFactoryMock() ->setMethods(['create']) ->getMock(); - $this->commentCollectionFactory->expects(static::any()) - ->method('create') + $this->commentCollectionFactory->method('create') ->willReturn($this->commentCollection); } } diff --git a/dev/tests/integration/testsuite/Magento/Sales/Model/Order/ShipmentTest.php b/dev/tests/integration/testsuite/Magento/Sales/Model/Order/ShipmentTest.php index 18097cf12def4..0a12ffa81139e 100644 --- a/dev/tests/integration/testsuite/Magento/Sales/Model/Order/ShipmentTest.php +++ b/dev/tests/integration/testsuite/Magento/Sales/Model/Order/ShipmentTest.php @@ -3,35 +3,59 @@ * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ +declare(strict_types=1); namespace Magento\Sales\Model\Order; +use Magento\Framework\Api\SearchCriteriaBuilder; +use Magento\Payment\Helper\Data; +use Magento\Sales\Api\Data\CommentInterface; +use Magento\Sales\Api\Data\OrderInterface; +use Magento\Sales\Api\Data\ShipmentInterface; +use Magento\Sales\Api\Data\ShipmentItemInterface; +use Magento\Sales\Api\Data\ShipmentTrackInterface; +use Magento\Sales\Api\OrderRepositoryInterface; +use Magento\Sales\Api\ShipmentRepositoryInterface; +use Magento\TestFramework\Helper\Bootstrap; +use Magento\TestFramework\ObjectManager; + /** - * Class ShipmentTest * @magentoAppIsolation enabled - * @package Magento\Sales\Model\Order + * @magentoDataFixture Magento/Sales/_files/order.php */ class ShipmentTest extends \PHPUnit\Framework\TestCase { + /** + * @var ObjectManager + */ + private $objectManager; + + /** + * @var ShipmentRepositoryInterface + */ + private $shipmentRepository; + + /** + * @inheritdoc + */ + protected function setUp() + { + $this->objectManager = Bootstrap::getObjectManager(); + $this->shipmentRepository = $this->objectManager->get(ShipmentRepositoryInterface::class); + } + /** * Check the correctness and stability of set/get packages of shipment * - * @magentoDataFixture Magento/Sales/_files/order.php + * @magentoAppArea frontend */ public function testPackages() { - $objectManager = \Magento\TestFramework\Helper\Bootstrap::getObjectManager(); - $objectManager->get(\Magento\Framework\App\State::class)->setAreaCode('frontend'); - $order = $objectManager->create(\Magento\Sales\Model\Order::class); - $order->loadByIncrementId('100000001'); - $order->setCustomerEmail('customer@example.com'); + $order = $this->getOrder('100000001'); $payment = $order->getPayment(); - $paymentInfoBlock = \Magento\TestFramework\Helper\Bootstrap::getObjectManager()->get( - \Magento\Payment\Helper\Data::class - )->getInfoBlock( - $payment - ); + $paymentInfoBlock = $this->objectManager->get(Data::class) + ->getInfoBlock($payment); $payment->setBlockMock($paymentInfoBlock); $items = []; @@ -39,47 +63,87 @@ public function testPackages() $items[$item->getId()] = $item->getQtyOrdered(); } /** @var \Magento\Sales\Model\Order\Shipment $shipment */ - $shipment = $objectManager->get(ShipmentFactory::class)->create($order, $items); + $shipment = $this->objectManager->get(ShipmentFactory::class)->create($order, $items); $packages = [['1'], ['2']]; $shipment->setPackages($packages); - $this->assertEquals($packages, $shipment->getPackages()); - $shipment->save(); - $shipment->save(); - $shipment->load($shipment->getId()); - $this->assertEquals($packages, $shipment->getPackages()); + $saved = $this->shipmentRepository->save($shipment); + self::assertEquals($packages, $saved->getPackages()); } /** * Check that getTracksCollection() always return collection instance. - * - * @magentoDataFixture Magento/Sales/_files/order.php */ public function testAddTrack() { - $objectManager = \Magento\TestFramework\Helper\Bootstrap::getObjectManager(); + $order = $this->getOrder('100000001'); - $order = $objectManager->create(\Magento\Sales\Model\Order::class); - $order->loadByIncrementId('100000001'); + /** @var ShipmentInterface $shipment */ + $shipment = $this->objectManager->create(ShipmentInterface::class); + + /** @var ShipmentTrackInterface $track */ + $track = $this->objectManager->create(ShipmentTrackInterface::class); + $track->setNumber('Test Number') + ->setTitle('Test Title') + ->setCarrierCode('Test CODE'); $items = []; foreach ($order->getItems() as $item) { $items[$item->getId()] = $item->getQtyOrdered(); } /** @var \Magento\Sales\Model\Order\Shipment $shipment */ - $shipment = $objectManager->get(ShipmentFactory::class)->create($order, $items); + $shipment = $this->objectManager->get(ShipmentFactory::class)->create($order, $items); + $shipment->addTrack($track); $shipment->save(); + $saved = $this->shipmentRepository->save($shipment); + self::assertNotEmpty($saved->getTracks()); + } + + /** + * Checks adding comment to the shipment entity. + */ + public function testAddComment() + { + $message1 = 'Test Comment 1'; + $message2 = 'Test Comment 2'; + $order = $this->getOrder('100000001'); + + /** @var ShipmentInterface $shipment */ + $shipment = $this->objectManager->create(ShipmentInterface::class); + $shipment->setOrder($order) + ->addItem($this->objectManager->create(ShipmentItemInterface::class)) + ->addComment($message1) + ->addComment($message2); - /** @var $track \Magento\Sales\Model\Order\Shipment\Track */ - $track = $objectManager->get(\Magento\Sales\Model\Order\Shipment\Track::class); - $track->setNumber('Test Number')->setTitle('Test Title')->setCarrierCode('Test CODE'); + $saved = $this->shipmentRepository->save($shipment); + + $comments = $saved->getComments(); + $actual = array_map(function (CommentInterface $comment) { + return $comment->getComment(); + }, $comments); + self::assertEquals(2, count($actual)); + self::assertEquals([$message1, $message2], $actual); + } + + /** + * Gets order entity by increment id. + * + * @param string $incrementId + * @return OrderInterface + */ + private function getOrder(string $incrementId): OrderInterface + { + /** @var SearchCriteriaBuilder $searchCriteriaBuilder */ + $searchCriteriaBuilder = $this->objectManager->get(SearchCriteriaBuilder::class); + $searchCriteria = $searchCriteriaBuilder->addFilter('increment_id', $incrementId) + ->create(); - $this->assertEmpty($shipment->getTracks()); - $shipment->addTrack($track)->save(); + /** @var OrderRepositoryInterface $repository */ + $repository = $this->objectManager->get(OrderRepositoryInterface::class); + $items = $repository->getList($searchCriteria) + ->getItems(); - //to empty cache - $shipment->setTracks(null); - $this->assertNotEmpty($shipment->getTracks()); + return array_pop($items); } } From 80933e036d971ad6cfb9cd3cb29a77c0bf4f9a61 Mon Sep 17 00:00:00 2001 From: serhii balko Date: Fri, 10 Aug 2018 14:56:23 +0300 Subject: [PATCH 11/27] MAGETWO-93057: [2.3] salesShipmentRepositoryV1 throws error when adding tracking --- .../Magento/Sales/Model/Order/Shipment.php | 30 +++++++++---------- .../Test/Unit/Model/Order/ShipmentTest.php | 20 +++++++++++++ .../Sales/Model/Order/ShipmentTest.php | 3 -- 3 files changed, 35 insertions(+), 18 deletions(-) diff --git a/app/code/Magento/Sales/Model/Order/Shipment.php b/app/code/Magento/Sales/Model/Order/Shipment.php index 7be7a79dcf004..8be12ec6ad57f 100644 --- a/app/code/Magento/Sales/Model/Order/Shipment.php +++ b/app/code/Magento/Sales/Model/Order/Shipment.php @@ -522,7 +522,7 @@ public function getPackages() } /** - * {@inheritdoc} + * @inheritdoc * @codeCoverageIgnore */ public function setPackages(array $packages = null) @@ -619,7 +619,7 @@ public function getCreatedAt() } /** - * {@inheritdoc} + * @inheritdoc */ public function setCreatedAt($createdAt) { @@ -751,7 +751,7 @@ public function setComments($comments = null) } /** - * {@inheritdoc} + * @inheritdoc */ public function setStoreId($id) { @@ -759,7 +759,7 @@ public function setStoreId($id) } /** - * {@inheritdoc} + * @inheritdoc */ public function setTotalWeight($totalWeight) { @@ -767,7 +767,7 @@ public function setTotalWeight($totalWeight) } /** - * {@inheritdoc} + * @inheritdoc */ public function setTotalQty($qty) { @@ -775,7 +775,7 @@ public function setTotalQty($qty) } /** - * {@inheritdoc} + * @inheritdoc */ public function setEmailSent($emailSent) { @@ -783,7 +783,7 @@ public function setEmailSent($emailSent) } /** - * {@inheritdoc} + * @inheritdoc */ public function setOrderId($id) { @@ -791,7 +791,7 @@ public function setOrderId($id) } /** - * {@inheritdoc} + * @inheritdoc */ public function setCustomerId($id) { @@ -799,7 +799,7 @@ public function setCustomerId($id) } /** - * {@inheritdoc} + * @inheritdoc */ public function setShippingAddressId($id) { @@ -807,7 +807,7 @@ public function setShippingAddressId($id) } /** - * {@inheritdoc} + * @inheritdoc */ public function setBillingAddressId($id) { @@ -815,7 +815,7 @@ public function setBillingAddressId($id) } /** - * {@inheritdoc} + * @inheritdoc */ public function setShipmentStatus($shipmentStatus) { @@ -823,7 +823,7 @@ public function setShipmentStatus($shipmentStatus) } /** - * {@inheritdoc} + * @inheritdoc */ public function setIncrementId($id) { @@ -831,7 +831,7 @@ public function setIncrementId($id) } /** - * {@inheritdoc} + * @inheritdoc */ public function setUpdatedAt($timestamp) { @@ -839,7 +839,7 @@ public function setUpdatedAt($timestamp) } /** - * {@inheritdoc} + * @inheritdoc * * @return \Magento\Sales\Api\Data\ShipmentExtensionInterface|null */ @@ -849,7 +849,7 @@ public function getExtensionAttributes() } /** - * {@inheritdoc} + * @inheritdoc * * @param \Magento\Sales\Api\Data\ShipmentExtensionInterface $extensionAttributes * @return $this diff --git a/app/code/Magento/Sales/Test/Unit/Model/Order/ShipmentTest.php b/app/code/Magento/Sales/Test/Unit/Model/Order/ShipmentTest.php index f1724899f22f5..a7649b5387cbe 100644 --- a/app/code/Magento/Sales/Test/Unit/Model/Order/ShipmentTest.php +++ b/app/code/Magento/Sales/Test/Unit/Model/Order/ShipmentTest.php @@ -29,6 +29,9 @@ class ShipmentTest extends \PHPUnit\Framework\TestCase */ private $shipmentModel; + /** + * @return void + */ protected function setUp() { $helperManager = new ObjectManager($this); @@ -40,12 +43,23 @@ protected function setUp() ]); } + /** + * Test to Returns increment id + * + * @return void + */ public function testGetIncrementId() { $this->shipmentModel->setIncrementId('test_increment_id'); $this->assertEquals('test_increment_id', $this->shipmentModel->getIncrementId()); } + /** + * Test to Retrieves comments collection + * + * @return void + * @throws \ReflectionException + */ public function testGetCommentsCollection() { $shipmentId = 1; @@ -78,6 +92,12 @@ public function testGetCommentsCollection() self::assertEquals($this->commentCollection, $actual); } + /** + * Test to Returns comments + * + * @return void + * @throws \ReflectionException + */ public function testGetComments() { $shipmentId = 1; diff --git a/dev/tests/integration/testsuite/Magento/Sales/Model/Order/ShipmentTest.php b/dev/tests/integration/testsuite/Magento/Sales/Model/Order/ShipmentTest.php index 0a12ffa81139e..0679fc6ffe6cb 100644 --- a/dev/tests/integration/testsuite/Magento/Sales/Model/Order/ShipmentTest.php +++ b/dev/tests/integration/testsuite/Magento/Sales/Model/Order/ShipmentTest.php @@ -79,9 +79,6 @@ public function testAddTrack() { $order = $this->getOrder('100000001'); - /** @var ShipmentInterface $shipment */ - $shipment = $this->objectManager->create(ShipmentInterface::class); - /** @var ShipmentTrackInterface $track */ $track = $this->objectManager->create(ShipmentTrackInterface::class); $track->setNumber('Test Number') From e1365484041cadc39028b1a01d3a06731b42c2ab Mon Sep 17 00:00:00 2001 From: serhii balko Date: Fri, 10 Aug 2018 17:11:13 +0300 Subject: [PATCH 12/27] MAGETWO-93961: [2.3] Product URL rewrites get deleted in multi store views --- .../CatalogUrlRewrite/Observer/UrlRewriteHandler.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/code/Magento/CatalogUrlRewrite/Observer/UrlRewriteHandler.php b/app/code/Magento/CatalogUrlRewrite/Observer/UrlRewriteHandler.php index 1268e864194bd..c4ec0bb3a74b2 100644 --- a/app/code/Magento/CatalogUrlRewrite/Observer/UrlRewriteHandler.php +++ b/app/code/Magento/CatalogUrlRewrite/Observer/UrlRewriteHandler.php @@ -125,7 +125,7 @@ public function generateProductUrlRewrites(Category $category): array { $mergeDataProvider = clone $this->mergeDataProviderPrototype; $this->isSkippedProduct[$category->getEntityId()] = []; - $saveRewriteHistory = $category->getData('save_rewrites_history'); + $saveRewriteHistory = (bool)$category->getData('save_rewrites_history'); $storeId = (int)$category->getStoreId(); if ($category->getChangedProductIds()) { @@ -231,14 +231,14 @@ private function getCategoryProductsUrlRewrites( * @param MergeDataProvider $mergeDataProvider * @param Category $category * @param int $storeId - * @param $saveRewriteHistory + * @param bool $saveRewriteHistory * @return void */ private function generateChangedProductUrls( MergeDataProvider $mergeDataProvider, Category $category, int $storeId, - $saveRewriteHistory + bool $saveRewriteHistory ) { $this->isSkippedProduct[$category->getEntityId()] = $category->getAffectedProductIds(); From b133f312a4e0265f1985197032917128d9bbb5b3 Mon Sep 17 00:00:00 2001 From: Max Lesechko Date: Fri, 10 Aug 2018 10:11:03 -0500 Subject: [PATCH 13/27] MAGETWO-90539: Fixed Tax doesn't show in any total or tax field of cart during checkout. --- .../Mftf/ActionGroup/StorefrontProductCartActionGroup.xml | 2 +- .../Tax/Test/Mftf/Test/StorefrontTaxQuoteCartTest.xml | 6 ------ 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/app/code/Magento/Checkout/Test/Mftf/ActionGroup/StorefrontProductCartActionGroup.xml b/app/code/Magento/Checkout/Test/Mftf/ActionGroup/StorefrontProductCartActionGroup.xml index 33b83fe63fdc1..3842b3962c12d 100644 --- a/app/code/Magento/Checkout/Test/Mftf/ActionGroup/StorefrontProductCartActionGroup.xml +++ b/app/code/Magento/Checkout/Test/Mftf/ActionGroup/StorefrontProductCartActionGroup.xml @@ -102,7 +102,7 @@ - + diff --git a/app/code/Magento/Tax/Test/Mftf/Test/StorefrontTaxQuoteCartTest.xml b/app/code/Magento/Tax/Test/Mftf/Test/StorefrontTaxQuoteCartTest.xml index c0b32e4bc71e7..362af79d8de2d 100644 --- a/app/code/Magento/Tax/Test/Mftf/Test/StorefrontTaxQuoteCartTest.xml +++ b/app/code/Magento/Tax/Test/Mftf/Test/StorefrontTaxQuoteCartTest.xml @@ -248,9 +248,6 @@ - - - @@ -357,9 +354,6 @@ - - - From 4094173f7645cac49731de7870402da046a01844 Mon Sep 17 00:00:00 2001 From: Cristian Partica Date: Fri, 10 Aug 2018 11:24:58 -0500 Subject: [PATCH 14/27] MAGETWO-90531: WYSIWYG shows special character button in toolbar on product page - when test module is enabled - corecting docbloc - removing un-necesary Di entry --- .../_files/Magento/TestModuleWysiwygConfig/Model/Config.php | 2 +- .../Magento/TestModuleWysiwygConfig/etc/adminhtml/di.xml | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/dev/tests/integration/_files/Magento/TestModuleWysiwygConfig/Model/Config.php b/dev/tests/integration/_files/Magento/TestModuleWysiwygConfig/Model/Config.php index b80caeed6beed..aceac618f48b9 100644 --- a/dev/tests/integration/_files/Magento/TestModuleWysiwygConfig/Model/Config.php +++ b/dev/tests/integration/_files/Magento/TestModuleWysiwygConfig/Model/Config.php @@ -61,7 +61,7 @@ private function modifyHeightAndContentCss(\Magento\Framework\DataObject $config } /** - * Modify height and content_css in the config + * Remove the special character from the toolbar configuration * * @param \Magento\Framework\DataObject $config * @return \Magento\Framework\DataObject diff --git a/dev/tests/integration/_files/Magento/TestModuleWysiwygConfig/etc/adminhtml/di.xml b/dev/tests/integration/_files/Magento/TestModuleWysiwygConfig/etc/adminhtml/di.xml index 1001b40d3bbd4..afbc603caa8b5 100644 --- a/dev/tests/integration/_files/Magento/TestModuleWysiwygConfig/etc/adminhtml/di.xml +++ b/dev/tests/integration/_files/Magento/TestModuleWysiwygConfig/etc/adminhtml/di.xml @@ -14,9 +14,6 @@ Magento\TestModuleWysiwygConfig\Model\Config - - Magento\TestModuleWysiwygConfig\Model\Config - Magento\Variable\Model\Variable\ConfigProvider From 39c18483b630e1aa5ca4afbf6938ec2b2a416a89 Mon Sep 17 00:00:00 2001 From: Cristian Partica Date: Fri, 10 Aug 2018 16:29:49 -0500 Subject: [PATCH 15/27] MAGETWO-90531: WYSIWYG shows special character button in toolbar on product page - when test module is enabled - fix php static --- .../testsuite/Magento/Cms/Model/Wysiwyg/ConfigTest.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/dev/tests/integration/testsuite/Magento/Cms/Model/Wysiwyg/ConfigTest.php b/dev/tests/integration/testsuite/Magento/Cms/Model/Wysiwyg/ConfigTest.php index df33afa214bc3..498fc044faacf 100644 --- a/dev/tests/integration/testsuite/Magento/Cms/Model/Wysiwyg/ConfigTest.php +++ b/dev/tests/integration/testsuite/Magento/Cms/Model/Wysiwyg/ConfigTest.php @@ -18,6 +18,9 @@ class ConfigTest extends \PHPUnit\Framework\TestCase */ private $model; + /** + * {@inheritdoc} + */ protected function setUp() { $objectManager = Bootstrap::getObjectManager(); @@ -26,6 +29,8 @@ protected function setUp() /** * Tests that config returns valid config array in it + * + * @return void */ public function testGetConfig() { @@ -35,6 +40,8 @@ public function testGetConfig() /** * Tests that config returns right urls going to the published library path + * + * @return void */ public function testGetConfigCssUrls() { @@ -53,6 +60,7 @@ public function testGetConfigCssUrls() /** * Test enabled module is able to modify WYSIWYG config + * * @return void * * @magentoConfigFixture default/cms/wysiwyg/editor testAdapter From 1511c7585322f6749f5319b2673de1b20b2dc434 Mon Sep 17 00:00:00 2001 From: Serhiy Yelahin Date: Mon, 13 Aug 2018 16:22:28 +0300 Subject: [PATCH 16/27] MAGETWO-93167: [2.3] Order Summary does not show free shipping after applying coupon during checkout --- .../Model/Quote/Address/Total/Shipping.php | 228 ++++++++++-------- .../Quote/Address/Total/ShippingTest.php | 39 +-- .../Usps/Api/GuestCouponManagementTest.php | 163 +++++++++++++ .../cart_rule_coupon_free_shipping.php | 36 +++ ...art_rule_coupon_free_shipping_rollback.php | 8 + .../Magento/Usps/Fixtures/rates_response.xml | 98 ++++++++ 6 files changed, 458 insertions(+), 114 deletions(-) create mode 100644 dev/tests/integration/testsuite/Magento/Usps/Api/GuestCouponManagementTest.php create mode 100644 dev/tests/integration/testsuite/Magento/Usps/Fixtures/cart_rule_coupon_free_shipping.php create mode 100644 dev/tests/integration/testsuite/Magento/Usps/Fixtures/cart_rule_coupon_free_shipping_rollback.php create mode 100644 dev/tests/integration/testsuite/Magento/Usps/Fixtures/rates_response.xml diff --git a/app/code/Magento/Quote/Model/Quote/Address/Total/Shipping.php b/app/code/Magento/Quote/Model/Quote/Address/Total/Shipping.php index 6e6aa27ec5f30..84f1fc1c35adf 100644 --- a/app/code/Magento/Quote/Model/Quote/Address/Total/Shipping.php +++ b/app/code/Magento/Quote/Model/Quote/Address/Total/Shipping.php @@ -6,6 +6,7 @@ namespace Magento\Quote\Model\Quote\Address\Total; use Magento\Framework\Pricing\PriceCurrencyInterface; +use Magento\Quote\Api\Data\AddressInterface; use Magento\Quote\Model\Quote\Address\FreeShippingInterface; class Shipping extends \Magento\Quote\Model\Quote\Address\Total\AbstractTotal @@ -40,7 +41,6 @@ public function __construct( * @param \Magento\Quote\Api\Data\ShippingAssignmentInterface $shippingAssignment * @param \Magento\Quote\Model\Quote\Address\Total $total * @return $this - * @SuppressWarnings(PHPMD.CyclomaticComplexity) * @SuppressWarnings(PHPMD.NPathComplexity) * @SuppressWarnings(PHPMD.ExcessiveMethodLength) */ @@ -54,13 +54,6 @@ public function collect( $address = $shippingAssignment->getShipping()->getAddress(); $method = $shippingAssignment->getShipping()->getMethod(); - $address->setWeight(0); - $address->setFreeMethodWeight(0); - - $addressWeight = $address->getWeight(); - $freeMethodWeight = $address->getFreeMethodWeight(); - $addressFreeShipping = $address->getFreeShipping(); - $total->setTotalAmount($this->getCode(), 0); $total->setBaseTotalAmount($this->getCode(), 0); @@ -68,97 +61,20 @@ public function collect( return $this; } - $addressQty = 0; - foreach ($shippingAssignment->getItems() as $item) { - /** - * Skip if this item is virtual - */ - if ($item->getProduct()->isVirtual()) { - continue; - } - - /** - * Children weight we calculate for parent - */ - if ($item->getParentItem()) { - continue; - } - - if ($item->getHasChildren() && $item->isShipSeparately()) { - foreach ($item->getChildren() as $child) { - if ($child->getProduct()->isVirtual()) { - continue; - } - $addressQty += $child->getTotalQty(); - - if (!$item->getProduct()->getWeightType()) { - $itemWeight = $child->getWeight(); - $itemQty = $child->getTotalQty(); - $rowWeight = $itemWeight * $itemQty; - $addressWeight += $rowWeight; - if ($addressFreeShipping || $child->getFreeShipping() === true) { - $rowWeight = 0; - } elseif (is_numeric($child->getFreeShipping())) { - $freeQty = $child->getFreeShipping(); - if ($itemQty > $freeQty) { - $rowWeight = $itemWeight * ($itemQty - $freeQty); - } else { - $rowWeight = 0; - } - } - $freeMethodWeight += $rowWeight; - $item->setRowWeight($rowWeight); - } - } - if ($item->getProduct()->getWeightType()) { - $itemWeight = $item->getWeight(); - $rowWeight = $itemWeight * $item->getQty(); - $addressWeight += $rowWeight; - if ($addressFreeShipping || $item->getFreeShipping() === true) { - $rowWeight = 0; - } elseif (is_numeric($item->getFreeShipping())) { - $freeQty = $item->getFreeShipping(); - if ($item->getQty() > $freeQty) { - $rowWeight = $itemWeight * ($item->getQty() - $freeQty); - } else { - $rowWeight = 0; - } - } - $freeMethodWeight += $rowWeight; - $item->setRowWeight($rowWeight); - } - } else { - if (!$item->getProduct()->isVirtual()) { - $addressQty += $item->getQty(); - } - $itemWeight = $item->getWeight(); - $rowWeight = $itemWeight * $item->getQty(); - $addressWeight += $rowWeight; - if ($addressFreeShipping || $item->getFreeShipping() === true) { - $rowWeight = 0; - } elseif (is_numeric($item->getFreeShipping())) { - $freeQty = $item->getFreeShipping(); - if ($item->getQty() > $freeQty) { - $rowWeight = $itemWeight * ($item->getQty() - $freeQty); - } else { - $rowWeight = 0; - } - } - $freeMethodWeight += $rowWeight; - $item->setRowWeight($rowWeight); - } + $data = $this->getAssignmentWeightData($address, $shippingAssignment->getItems()); + $address->setItemQty($data['addressQty']); + $address->setWeight($data['addressWeight']); + $address->setFreeMethodWeight($data['freeMethodWeight']); + $addressFreeShipping = (bool)$address->getFreeShipping(); + $isFreeShipping = $this->freeShipping->isFreeShipping($quote, $shippingAssignment->getItems()); + $address->setFreeShipping($isFreeShipping); + if (!$addressFreeShipping && $isFreeShipping) { + $data = $this->getAssignmentWeightData($address, $shippingAssignment->getItems()); + $address->setItemQty($data['addressQty']); + $address->setWeight($data['addressWeight']); + $address->setFreeMethodWeight($data['freeMethodWeight']); } - if (isset($addressQty)) { - $address->setItemQty($addressQty); - } - - $address->setWeight($addressWeight); - $address->setFreeMethodWeight($freeMethodWeight); - $address->setFreeShipping( - $this->freeShipping->isFreeShipping($quote, $shippingAssignment->getItems()) - ); - $address->collectShippingRates(); if ($method) { @@ -215,4 +131,122 @@ public function getLabel() { return __('Shipping'); } + + /** + * Gets shipping assignments data like items weight, address weight, items quantity. + * + * @param AddressInterface $address + * @param array $items + * @return array + * @SuppressWarnings(PHPMD.CyclomaticComplexity) + */ + private function getAssignmentWeightData(AddressInterface $address, array $items): array + { + $address->setWeight(0); + $address->setFreeMethodWeight(0); + $addressWeight = $address->getWeight(); + $freeMethodWeight = $address->getFreeMethodWeight(); + $addressFreeShipping = (bool)$address->getFreeShipping(); + $addressQty = 0; + foreach ($items as $item) { + /** + * Skip if this item is virtual + */ + if ($item->getProduct()->isVirtual()) { + continue; + } + + /** + * Children weight we calculate for parent + */ + if ($item->getParentItem()) { + continue; + } + + $itemQty = (float)$item->getQty(); + $itemWeight = (float)$item->getWeight(); + + if ($item->getHasChildren() && $item->isShipSeparately()) { + foreach ($item->getChildren() as $child) { + if ($child->getProduct()->isVirtual()) { + continue; + } + $addressQty += $child->getTotalQty(); + + if (!$item->getProduct()->getWeightType()) { + $itemWeight = (float)$child->getWeight(); + $itemQty = (float)$child->getTotalQty(); + $addressWeight += ($itemWeight * $itemQty); + $rowWeight = $this->getItemRowWeight( + $addressFreeShipping, + $itemWeight, + $itemQty, + $child->getFreeShipping() + ); + $freeMethodWeight += $rowWeight; + $item->setRowWeight($rowWeight); + } + } + if ($item->getProduct()->getWeightType()) { + $addressWeight += ($itemWeight * $itemQty); + $rowWeight = $this->getItemRowWeight( + $addressFreeShipping, + $itemWeight, + $itemQty, + $item->getFreeShipping() + ); + $freeMethodWeight += $rowWeight; + $item->setRowWeight($rowWeight); + } + } else { + if (!$item->getProduct()->isVirtual()) { + $addressQty += $itemQty; + } + $addressWeight += ($itemWeight * $itemQty); + $rowWeight = $this->getItemRowWeight( + $addressFreeShipping, + $itemWeight, + $itemQty, + $item->getFreeShipping() + ); + $freeMethodWeight += $rowWeight; + $item->setRowWeight($rowWeight); + } + } + + return [ + 'addressQty' => $addressQty, + 'addressWeight' => $addressWeight, + 'freeMethodWeight' => $freeMethodWeight + ]; + } + + /** + * Calculates item row weight. + * + * @param bool $addressFreeShipping + * @param float $itemWeight + * @param float $itemQty + * @param $freeShipping + * @return float + */ + private function getItemRowWeight( + bool $addressFreeShipping, + float $itemWeight, + float $itemQty, + $freeShipping + ): float { + $rowWeight = $itemWeight * $itemQty; + if ($addressFreeShipping || $freeShipping === true) { + $rowWeight = 0; + } elseif (is_numeric($freeShipping)) { + $freeQty = $freeShipping; + if ($itemQty > $freeQty) { + $rowWeight = $itemWeight * ($itemQty - $freeQty); + } else { + $rowWeight = 0; + } + } + return (float)$rowWeight; + } } diff --git a/app/code/Magento/Quote/Test/Unit/Model/Quote/Address/Total/ShippingTest.php b/app/code/Magento/Quote/Test/Unit/Model/Quote/Address/Total/ShippingTest.php index 6c572b1e86d08..0a06236111042 100644 --- a/app/code/Magento/Quote/Test/Unit/Model/Quote/Address/Total/ShippingTest.php +++ b/app/code/Magento/Quote/Test/Unit/Model/Quote/Address/Total/ShippingTest.php @@ -42,6 +42,9 @@ class ShippingTest extends \PHPUnit\Framework\TestCase /** @var \Magento\Framework\Pricing\PriceCurrencyInterface|\PHPUnit_Framework_MockObject_MockObject */ protected $priceCurrency; + /** + * @inheritdoc + */ protected function setUp() { $this->freeShipping = $this->getMockForAbstractClass( @@ -123,7 +126,10 @@ protected function setUp() $this->store = $this->createMock(\Magento\Store\Model\Store::class); } - public function testFetch() + /** + * @return void + */ + public function testFetch(): void { $shippingAmount = 100; $shippingDescription = 100; @@ -144,7 +150,10 @@ public function testFetch() $this->assertEquals($expectedResult, $this->shippingModel->fetch($quoteMock, $totalMock)); } - public function testCollect() + /** + * @return void + */ + public function testCollect(): void { $this->shippingAssignment->expects($this->exactly(3)) ->method('getShipping') @@ -158,12 +167,10 @@ public function testCollect() $this->shippingAssignment->expects($this->atLeastOnce()) ->method('getItems') ->willReturn([$this->cartItem]); - $this->freeShipping->expects($this->once()) - ->method('isFreeShipping') + $this->freeShipping->method('isFreeShipping') ->with($this->quote, [$this->cartItem]) ->willReturn(true); - $this->address->expects($this->once()) - ->method('setFreeShipping') + $this->address->method('setFreeShipping') ->with(true); $this->total->expects($this->atLeastOnce()) ->method('setTotalAmount'); @@ -175,24 +182,19 @@ public function testCollect() $this->cartItem->expects($this->atLeastOnce()) ->method('isVirtual') ->willReturn(false); - $this->cartItem->expects($this->once()) - ->method('getParentItem') + $this->cartItem->method('getParentItem') ->willReturn(false); - $this->cartItem->expects($this->once()) - ->method('getHasChildren') + $this->cartItem->method('getHasChildren') ->willReturn(false); - $this->cartItem->expects($this->once()) - ->method('getWeight') + $this->cartItem->method('getWeight') ->willReturn(2); $this->cartItem->expects($this->atLeastOnce()) ->method('getQty') ->willReturn(2); $this->freeShippingAssertions(); - $this->cartItem->expects($this->once()) - ->method('setRowWeight') + $this->cartItem->method('setRowWeight') ->with(0); - $this->address->expects($this->once()) - ->method('setItemQty') + $this->address->method('setItemQty') ->with(2); $this->address->expects($this->atLeastOnce()) ->method('setWeight'); @@ -241,7 +243,10 @@ public function testCollect() $this->shippingModel->collect($this->quote, $this->shippingAssignment, $this->total); } - protected function freeShippingAssertions() + /** + * @return void + */ + protected function freeShippingAssertions(): void { $this->address->expects($this->at(0)) ->method('getFreeShipping') diff --git a/dev/tests/integration/testsuite/Magento/Usps/Api/GuestCouponManagementTest.php b/dev/tests/integration/testsuite/Magento/Usps/Api/GuestCouponManagementTest.php new file mode 100644 index 0000000000000..aeaa174ee54df --- /dev/null +++ b/dev/tests/integration/testsuite/Magento/Usps/Api/GuestCouponManagementTest.php @@ -0,0 +1,163 @@ +objectManager = Bootstrap::getObjectManager(); + $this->management = $this->objectManager->get(GuestCouponManagementInterface::class); + $clientFactory = $this->getMockBuilder(ZendClientFactory::class) + ->disableOriginalConstructor() + ->getMock(); + + $this->httpClient = $this->getMockBuilder(ZendClient::class) + ->disableOriginalConstructor() + ->getMock(); + $clientFactory->method('create') + ->willReturn($this->httpClient); + + $this->objectManager->addSharedInstance($clientFactory, ZendClientFactory::class); + } + + /** + * @inheritdoc + */ + protected function tearDown() + { + $this->objectManager->removeSharedInstance(ZendClientFactory::class); + } + + /** + * Checks a case when coupon is applied for a guest cart and USPS Priority Mail 1-Day configured as free method. + * + * @magentoConfigFixture default_store carriers/usps/active 1 + * @magentoConfigFixture default_store carriers/usps/free_method 1 + * @magentoDataFixture Magento/Usps/Fixtures/cart_rule_coupon_free_shipping.php + * @magentoDataFixture Magento/Quote/_files/is_salable_product.php + * @return void + */ + public function testFreeShippingWithCoupon(): void + { + $couponCode = 'IMPHBR852R61'; + $cartId = $this->createGuestCart(); + + $request = new DataObject(['body' => file_get_contents(__DIR__ . '/../Fixtures/rates_response.xml')]); + $this->httpClient->method('request') + ->willReturn($request); + + self::assertTrue($this->management->set($cartId, $couponCode)); + + $methods = $this->estimateShipping($cartId); + $methods = $this->filterFreeShippingMethods($methods); + self::assertEquals(['Fixed', 'Priority Mail 1-Day'], $methods); + } + + /** + * Creates guest shopping cart. + * + * @return string + */ + private function createGuestCart(): string + { + /** @var GuestCartManagementInterface $cartManagement */ + $cartManagement = $this->objectManager->get(GuestCartManagementInterface::class); + $cartId = $cartManagement->createEmptyCart(); + + /** @var CartItemInterfaceFactory $cartItemFactory */ + $cartItemFactory = $this->objectManager->get(CartItemInterfaceFactory::class); + + /** @var CartItemInterface $cartItem */ + $cartItem = $cartItemFactory->create(); + $cartItem->setQuoteId($cartId); + $cartItem->setQty(1); + $cartItem->setSku('simple-99'); + $cartItem->setProductType(Type::TYPE_SIMPLE); + + /** @var GuestCartItemRepositoryInterface $itemRepository */ + $itemRepository = $this->objectManager->get(GuestCartItemRepositoryInterface::class); + $itemRepository->save($cartItem); + + return $cartId; + } + + /** + * Estimates shipment for guest cart. + * + * @param string $cartId + * @return array ShippingMethodInterface[] + */ + private function estimateShipping(string $cartId): array + { + $addressFactory = $this->objectManager->get(AddressInterfaceFactory::class); + /** @var AddressInterface $address */ + $address = $addressFactory->create(); + $address->setCountryId('US'); + $address->setRegionId(12); + $address->setPostcode(90230); + + /** @var GuestShipmentEstimationInterface $estimation */ + $estimation = $this->objectManager->get(GuestShipmentEstimationInterface::class); + return $estimation->estimateByExtendedAddress($cartId, $address); + } + + /** + * Filters free shipping methods. + * + * @param array $methods + * @return array + */ + private function filterFreeShippingMethods(array $methods): array + { + $result = []; + /** @var ShippingMethodInterface $method */ + foreach ($methods as $method) { + if ($method->getAmount() == 0) { + $result[] = $method->getMethodTitle(); + } + } + return $result; + } +} diff --git a/dev/tests/integration/testsuite/Magento/Usps/Fixtures/cart_rule_coupon_free_shipping.php b/dev/tests/integration/testsuite/Magento/Usps/Fixtures/cart_rule_coupon_free_shipping.php new file mode 100644 index 0000000000000..8d140593677ec --- /dev/null +++ b/dev/tests/integration/testsuite/Magento/Usps/Fixtures/cart_rule_coupon_free_shipping.php @@ -0,0 +1,36 @@ +setCouponType(Rule::COUPON_TYPE_SPECIFIC)->setUseAutoGeneration(0); +$salesRule->save(); + +$couponCode = 'IMPHBR852R61'; +$coupon = $objectManager->create(Coupon::class); +$coupon->setRuleId($salesRule->getId()) + ->setCode($couponCode) + ->setType(0); +$objectManager->get(CouponRepositoryInterface::class) + ->save($coupon); + +$registry->unregister('cart_rule_free_shipping'); +$registry->register('cart_rule_free_shipping', $salesRule); diff --git a/dev/tests/integration/testsuite/Magento/Usps/Fixtures/cart_rule_coupon_free_shipping_rollback.php b/dev/tests/integration/testsuite/Magento/Usps/Fixtures/cart_rule_coupon_free_shipping_rollback.php new file mode 100644 index 0000000000000..17b37e3d024fd --- /dev/null +++ b/dev/tests/integration/testsuite/Magento/Usps/Fixtures/cart_rule_coupon_free_shipping_rollback.php @@ -0,0 +1,8 @@ + + + + + 90034 + 90230 + 1 + 0.00000000 + REGULAR + TRUE + 1 + + Priority Mail Express 1-Day&lt;sup&gt;&#8482;&lt;/sup&gt; + 24.70 + + + Priority Mail Express 1-Day&lt;sup&gt;&#8482;&lt;/sup&gt; Hold For Pickup + 24.70 + + + Priority Mail Express 1-Day&lt;sup&gt;&#8482;&lt;/sup&gt; Flat Rate Envelope + 24.70 + + + Priority Mail Express 1-Day&lt;sup&gt;&#8482;&lt;/sup&gt; Flat Rate Envelope Hold For Pickup + 24.70 + + + Priority Mail Express 1-Day&lt;sup&gt;&#8482;&lt;/sup&gt; Legal Flat Rate Envelope + 24.90 + + + Priority Mail Express 1-Day&lt;sup&gt;&#8482;&lt;/sup&gt; Legal Flat Rate Envelope Hold For Pickup + 24.90 + + + Priority Mail Express 1-Day&lt;sup&gt;&#8482;&lt;/sup&gt; Padded Flat Rate Envelope + 25.40 + + + Priority Mail Express 1-Day&lt;sup&gt;&#8482;&lt;/sup&gt; Padded Flat Rate Envelope Hold For Pickup + 25.40 + + + Priority Mail 1-Day&lt;sup&gt;&#8482;&lt;/sup&gt; + 6.70 + + + Priority Mail 1-Day&lt;sup&gt;&#8482;&lt;/sup&gt; Large Flat Rate Box + 18.90 + + + Priority Mail 1-Day&lt;sup&gt;&#8482;&lt;/sup&gt; Medium Flat Rate Box + 13.65 + + + Priority Mail 1-Day&lt;sup&gt;&#8482;&lt;/sup&gt; Small Flat Rate Box + 7.20 + + + Priority Mail 1-Day&lt;sup&gt;&#8482;&lt;/sup&gt; Flat Rate Envelope + 6.70 + + + Priority Mail 1-Day&lt;sup&gt;&#8482;&lt;/sup&gt; Legal Flat Rate Envelope + 7.00 + + + Priority Mail 1-Day&lt;sup&gt;&#8482;&lt;/sup&gt; Padded Flat Rate Envelope + 7.25 + + + Priority Mail 1-Day&lt;sup&gt;&#8482;&lt;/sup&gt; Gift Card Flat Rate Envelope + 6.70 + + + Priority Mail 1-Day&lt;sup&gt;&#8482;&lt;/sup&gt; Small Flat Rate Envelope + 6.70 + + + Priority Mail 1-Day&lt;sup&gt;&#8482;&lt;/sup&gt; Window Flat Rate Envelope + 6.70 + + + Media Mail Parcel + 2.66 + + + Library Mail Parcel + 2.53 + + + \ No newline at end of file From 5194e232d17ac36ace4d1862c729057ef27b3d48 Mon Sep 17 00:00:00 2001 From: Serhiy Yelahin Date: Mon, 13 Aug 2018 17:35:35 +0300 Subject: [PATCH 17/27] MAGETWO-93167: [2.3] Order Summary does not show free shipping after applying coupon during checkout --- .../Quote/Test/Unit/Model/Quote/Address/Total/ShippingTest.php | 3 +++ .../testsuite/Magento/Usps/Api/GuestCouponManagementTest.php | 3 +++ 2 files changed, 6 insertions(+) diff --git a/app/code/Magento/Quote/Test/Unit/Model/Quote/Address/Total/ShippingTest.php b/app/code/Magento/Quote/Test/Unit/Model/Quote/Address/Total/ShippingTest.php index 0a06236111042..999595357c05a 100644 --- a/app/code/Magento/Quote/Test/Unit/Model/Quote/Address/Total/ShippingTest.php +++ b/app/code/Magento/Quote/Test/Unit/Model/Quote/Address/Total/ShippingTest.php @@ -5,6 +5,9 @@ */ namespace Magento\Quote\Test\Unit\Model\Quote\Address\Total; +/** + * @SuppressWarnings(PHPMD.CouplingBetweenObjects) + */ class ShippingTest extends \PHPUnit\Framework\TestCase { /** diff --git a/dev/tests/integration/testsuite/Magento/Usps/Api/GuestCouponManagementTest.php b/dev/tests/integration/testsuite/Magento/Usps/Api/GuestCouponManagementTest.php index aeaa174ee54df..c4656a4801eaa 100644 --- a/dev/tests/integration/testsuite/Magento/Usps/Api/GuestCouponManagementTest.php +++ b/dev/tests/integration/testsuite/Magento/Usps/Api/GuestCouponManagementTest.php @@ -25,6 +25,9 @@ use PHPUnit\Framework\TestCase; use PHPUnit_Framework_MockObject_MockObject as MockObject; +/** + * @SuppressWarnings(PHPMD.CouplingBetweenObjects) + */ class GuestCouponManagementTest extends TestCase { /** From 6d2f92bec5219a2162a5410d2d752dbfc6dded55 Mon Sep 17 00:00:00 2001 From: serhii balko Date: Tue, 14 Aug 2018 09:21:29 +0300 Subject: [PATCH 18/27] MAGETWO-91682: [2.3] Incorrect amount is sent to PayPal when discount is applied to an order --- .../Magento/Paypal/Model/Api/AbstractApi.php | 3 + app/code/Magento/Paypal/Model/Cart.php | 4 +- .../Magento/Paypal/Model/Express/Checkout.php | 5 +- .../Paypal/Test/Unit/Model/CartTest.php | 12 +- .../Tax/Model/Sales/Total/Quote/Shipping.php | 15 +- .../Tax/Model/Sales/Total/Quote/SetupUtil.php | 1 + ...including_tax_apply_tax_after_discount.php | 132 ++++++++++++++++++ .../tax_calculation_data_aggregated.php | 1 + 8 files changed, 163 insertions(+), 10 deletions(-) create mode 100644 dev/tests/integration/testsuite/Magento/Tax/_files/scenarios/including_tax_apply_tax_after_discount.php diff --git a/app/code/Magento/Paypal/Model/Api/AbstractApi.php b/app/code/Magento/Paypal/Model/Api/AbstractApi.php index 0d1cd44639e93..6f578e44eae4f 100644 --- a/app/code/Magento/Paypal/Model/Api/AbstractApi.php +++ b/app/code/Magento/Paypal/Model/Api/AbstractApi.php @@ -3,6 +3,8 @@ * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ +declare(strict_types=1); + namespace Magento\Paypal\Model\Api; use Magento\Payment\Helper\Formatter; @@ -427,6 +429,7 @@ protected function _exportLineItems(array &$request, $i = 0) if (isset($this->_lineItemTotalExportMap[$key])) { // !empty($total) $privateKey = $this->_lineItemTotalExportMap[$key]; + $total = round($total, 2); $request[$privateKey] = $this->formatPrice($total); } } diff --git a/app/code/Magento/Paypal/Model/Cart.php b/app/code/Magento/Paypal/Model/Cart.php index c8e4a6acf4649..cef17fab8d916 100644 --- a/app/code/Magento/Paypal/Model/Cart.php +++ b/app/code/Magento/Paypal/Model/Cart.php @@ -3,6 +3,8 @@ * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ +declare(strict_types=1); + namespace Magento\Paypal\Model; /** @@ -177,7 +179,7 @@ protected function _applyDiscountTaxCompensationWorkaround( ) { $dataContainer = $salesEntity->getTaxContainer(); $this->addTax((double)$dataContainer->getBaseDiscountTaxCompensationAmount()); - $this->addTax((double)$dataContainer->getBaseShippingDiscountTaxCompensationAmnt()); + $this->addTax((double)$dataContainer->getBaseShippingDiscountTaxCompensationAmount()); } /** diff --git a/app/code/Magento/Paypal/Model/Express/Checkout.php b/app/code/Magento/Paypal/Model/Express/Checkout.php index 9c9b4dc3e87a7..0388d58910d0a 100644 --- a/app/code/Magento/Paypal/Model/Express/Checkout.php +++ b/app/code/Magento/Paypal/Model/Express/Checkout.php @@ -3,6 +3,8 @@ * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ +declare(strict_types=1); + namespace Magento\Paypal\Model\Express; use Magento\Customer\Api\Data\CustomerInterface as CustomerDataObject; @@ -498,7 +500,8 @@ public function start($returnUrl, $cancelUrl, $button = null) $solutionType = $this->_config->getMerchantCountry() == 'DE' ? \Magento\Paypal\Model\Config::EC_SOLUTION_TYPE_MARK : $this->_config->getValue('solutionType'); - $this->_getApi()->setAmount($this->_quote->getBaseGrandTotal()) + $totalAmount = round($this->_quote->getBaseGrandTotal(), 2); + $this->_getApi()->setAmount($totalAmount) ->setCurrencyCode($this->_quote->getBaseCurrencyCode()) ->setInvNum($this->_quote->getReservedOrderId()) ->setReturnUrl($returnUrl) diff --git a/app/code/Magento/Paypal/Test/Unit/Model/CartTest.php b/app/code/Magento/Paypal/Test/Unit/Model/CartTest.php index 0f787f0f513a1..28837727533d2 100644 --- a/app/code/Magento/Paypal/Test/Unit/Model/CartTest.php +++ b/app/code/Magento/Paypal/Test/Unit/Model/CartTest.php @@ -70,7 +70,7 @@ protected function setUp() public function testInvalidGetAllItems($items) { $taxContainer = new \Magento\Framework\DataObject( - ['base_discount_tax_compensation_amount' => 0.2, 'base_shipping_discount_tax_compensation_amnt' => 0.1] + ['base_discount_tax_compensation_amount' => 0.2, 'base_shipping_discount_tax_compensation_amount' => 0.1] ); $this->_salesModel->expects($this->once())->method('getTaxContainer')->will($this->returnValue($taxContainer)); $this->_salesModel->expects($this->once())->method('getAllItems')->will($this->returnValue($items)); @@ -146,7 +146,7 @@ public function testInvalidTotalsGetAllItems($values, $transferDiscount) $this->assertEquals( $values['base_tax_amount'] + $values['base_discount_tax_compensation_amount'] + - $values['base_shipping_discount_tax_compensation_amnt'], + $values['base_shipping_discount_tax_compensation_amount'], $this->_model->getTax() ); $this->assertEquals($values['base_shipping_amount'], $this->_model->getShipping()); @@ -162,7 +162,7 @@ public function invalidTotalsGetAllItemsDataProvider() [ [ 'base_discount_tax_compensation_amount' => 0, - 'base_shipping_discount_tax_compensation_amnt' => 0, + 'base_shipping_discount_tax_compensation_amount' => 0, 'base_subtotal' => 0, 'base_tax_amount' => 0, 'base_shipping_amount' => 0, @@ -174,7 +174,7 @@ public function invalidTotalsGetAllItemsDataProvider() [ [ 'base_discount_tax_compensation_amount' => 1, - 'base_shipping_discount_tax_compensation_amnt' => 2, + 'base_shipping_discount_tax_compensation_amount' => 2, 'base_subtotal' => 3, 'base_tax_amount' => 4, 'base_shipping_amount' => 5, @@ -255,8 +255,8 @@ protected function _prepareInvalidModelData($values, $transferDiscount) [ 'base_discount_tax_compensation_amount' => $values['base_discount_tax_compensation_amount'], - 'base_shipping_discount_tax_compensation_amnt' => - $values['base_shipping_discount_tax_compensation_amnt'], + 'base_shipping_discount_tax_compensation_amount' => + $values['base_shipping_discount_tax_compensation_amount'], ] ); $expectedSubtotal = $values['base_subtotal']; diff --git a/app/code/Magento/Tax/Model/Sales/Total/Quote/Shipping.php b/app/code/Magento/Tax/Model/Sales/Total/Quote/Shipping.php index 16a55dbfac3e2..ddfb6f9fd5073 100644 --- a/app/code/Magento/Tax/Model/Sales/Total/Quote/Shipping.php +++ b/app/code/Magento/Tax/Model/Sales/Total/Quote/Shipping.php @@ -3,6 +3,8 @@ * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ +declare(strict_types=1); + namespace Magento\Tax\Model\Sales\Total\Quote; use Magento\Quote\Model\Quote\Address; @@ -39,16 +41,23 @@ public function collect( $quoteDetails = $this->prepareQuoteDetails($shippingAssignment, [$shippingDataObject]); $taxDetails = $this->taxCalculationService ->calculateTax($quoteDetails, $storeId); + $taxDetailsItems = $taxDetails->getItems()[self::ITEM_CODE_SHIPPING]; $baseQuoteDetails = $this->prepareQuoteDetails($shippingAssignment, [$baseShippingDataObject]); $baseTaxDetails = $this->taxCalculationService ->calculateTax($baseQuoteDetails, $storeId); + $baseTaxDetailsItems = $baseTaxDetails->getItems()[self::ITEM_CODE_SHIPPING]; + + $quote->getShippingAddress() + ->setShippingAmount($taxDetailsItems->getRowTotal()); + $quote->getShippingAddress() + ->setBaseShippingAmount($baseTaxDetailsItems->getRowTotal()); $this->processShippingTaxInfo( $shippingAssignment, $total, - $taxDetails->getItems()[self::ITEM_CODE_SHIPPING], - $baseTaxDetails->getItems()[self::ITEM_CODE_SHIPPING] + $taxDetailsItems, + $baseTaxDetailsItems ); return $this; @@ -58,6 +67,8 @@ public function collect( * @param \Magento\Quote\Model\Quote $quote * @param Address\Total $total * @return array|null + * + * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ public function fetch(\Magento\Quote\Model\Quote $quote, \Magento\Quote\Model\Quote\Address\Total $total) { diff --git a/dev/tests/integration/testsuite/Magento/Tax/Model/Sales/Total/Quote/SetupUtil.php b/dev/tests/integration/testsuite/Magento/Tax/Model/Sales/Total/Quote/SetupUtil.php index a9a5c922c3d25..bd505fd4db035 100644 --- a/dev/tests/integration/testsuite/Magento/Tax/Model/Sales/Total/Quote/SetupUtil.php +++ b/dev/tests/integration/testsuite/Magento/Tax/Model/Sales/Total/Quote/SetupUtil.php @@ -141,6 +141,7 @@ class SetupUtil 'discount_amount' => 40, 'discount_step' => 0, 'stop_rules_processing' => 1, + 'apply_to_shipping' => 0, 'website_ids' => [1], ]; diff --git a/dev/tests/integration/testsuite/Magento/Tax/_files/scenarios/including_tax_apply_tax_after_discount.php b/dev/tests/integration/testsuite/Magento/Tax/_files/scenarios/including_tax_apply_tax_after_discount.php new file mode 100644 index 0000000000000..41b1aec5a67f3 --- /dev/null +++ b/dev/tests/integration/testsuite/Magento/Tax/_files/scenarios/including_tax_apply_tax_after_discount.php @@ -0,0 +1,132 @@ + [ + SetupUtil::CONFIG_OVERRIDES => [ + Config::CONFIG_XML_PATH_APPLY_AFTER_DISCOUNT => 1, + Config::CONFIG_XML_PATH_PRICE_INCLUDES_TAX => 1, + Config::CONFIG_XML_PATH_SHIPPING_INCLUDES_TAX => 1, + Config::CONFIG_XML_PATH_SHIPPING_TAX_CLASS => SetupUtil::SHIPPING_TAX_CLASS, + Config::XML_PATH_ALGORITHM => Calculation::CALC_ROW_BASE, + ], + SetupUtil::TAX_RATE_OVERRIDES => [ + SetupUtil::TAX_RATE_TX => 10, + SetupUtil::TAX_STORE_RATE => 10, + SetupUtil::TAX_RATE_SHIPPING => 10 + ], + SetupUtil::TAX_RULE_OVERRIDES => [ + [ + //tax rule for product + 'code' => 'Product Tax Rule', + 'product_tax_class_ids' => [SetupUtil::PRODUCT_TAX_CLASS_1], + ], + [ + //tax rule for shipping + 'code' => 'Shipping Tax Rule', + 'product_tax_class_ids' => [SetupUtil::SHIPPING_TAX_CLASS], + 'tax_rate_ids' => [SetupUtil::TAX_RATE_SHIPPING], + ], + ], + ], + 'quote_data' => [ + 'billing_address' => [ + 'region_id' => SetupUtil::REGION_TX, + ], + 'shipping_address' => [ + 'region_id' => SetupUtil::REGION_TX, + ], + 'items' => [ + [ + 'sku' => 'simple1', + 'price' => 29, + 'qty' => 1, + ], + ], + 'shipping_method' => 'flatrate_flatrate', + 'shopping_cart_rules' => [ + [ + 'discount_amount' => 50, + 'apply_to_shipping' => 1, + ], + ], + ], + 'expected_results' => [ + 'address_data' => [ + 'subtotal' => 26.36, + 'base_subtotal' => 26.36, + 'subtotal_incl_tax' => 29, + 'base_subtotal_incl_tax' => 29, + 'tax_amount' => 1.69, + 'base_tax_amount' => 1.69, + 'shipping_amount' => 4.55, + 'base_shipping_amount' => 4.55, + 'shipping_incl_tax' => 5, + 'base_shipping_incl_tax' => 5, + 'shipping_tax_amount' => 0.25, + 'base_shipping_tax_amount' => 0.25, + 'discount_amount' => -15.455, + 'base_discount_amount' => -15.455, + 'discount_tax_compensation_amount' => 1.2, + 'base_discount_tax_compensation_amount' => 1.2, + 'shipping_discount_tax_compensation_amount' => 0.2, + 'base_shipping_discount_tax_compensation_amount' => 0.2, + 'grand_total' => 18.545, + 'base_grand_total' => 18.545, + 'applied_taxes' => [ + SetupUtil::TAX_RATE_TX => [ + 'percent' => 10, + 'amount' => 1.44, + 'base_amount' => 1.44, + 'rates' => [ + [ + 'code' => SetupUtil::TAX_RATE_TX, + 'title' => SetupUtil::TAX_RATE_TX, + 'percent' => 10, + ], + ], + ], + SetupUtil::TAX_RATE_SHIPPING => [ + 'percent' => 10, + 'amount' => 0.25, + 'base_amount' => 0.25, + 'rates' => [ + [ + 'code' => SetupUtil::TAX_RATE_SHIPPING, + 'title' => SetupUtil::TAX_RATE_SHIPPING, + 'percent' => 10, + ], + ], + ], + ], + ], + 'items_data' => [ + 'simple1' => [ + 'row_total' => 26.36, + 'base_row_total' => 26.36, + 'tax_percent' => 10, + 'price' => 26.36, + 'base_price' => 26.36, + 'price_incl_tax' => 29, + 'base_price_incl_tax' => 29, + 'row_total_incl_tax' => 29, + 'base_row_total_incl_tax' => 29, + 'tax_amount' => 1.44, + 'base_tax_amount' => 1.44, + 'discount_amount' => 13.18, + 'base_discount_amount' => 13.18, + 'discount_percent' => 50, + 'discount_tax_compensation_amount' => 1.2, + 'base_discount_tax_compensation_amount' => 1.2, + ], + ], + ], +]; diff --git a/dev/tests/integration/testsuite/Magento/Tax/_files/tax_calculation_data_aggregated.php b/dev/tests/integration/testsuite/Magento/Tax/_files/tax_calculation_data_aggregated.php index c47d348cedda5..f22b48a259685 100644 --- a/dev/tests/integration/testsuite/Magento/Tax/_files/tax_calculation_data_aggregated.php +++ b/dev/tests/integration/testsuite/Magento/Tax/_files/tax_calculation_data_aggregated.php @@ -30,3 +30,4 @@ require_once __DIR__ . '/scenarios/multi_tax_rule_total_calculate_subtotal_yes.php'; require_once __DIR__ . '/scenarios/multi_tax_rule_two_row_calculate_subtotal_yes_row.php'; require_once __DIR__ . '/scenarios/multi_tax_rule_two_row_calculate_subtotal_yes_total.php'; +require_once __DIR__ . '/scenarios/including_tax_apply_tax_after_discount.php'; From 3b299196260c46127961487f0f8dc9c29506e13d Mon Sep 17 00:00:00 2001 From: serhii balko Date: Tue, 14 Aug 2018 13:02:41 +0300 Subject: [PATCH 19/27] MAGETWO-91682: [2.3] Incorrect amount is sent to PayPal when discount is applied to an order --- .../_files/scenarios/including_tax_apply_tax_after_discount.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev/tests/integration/testsuite/Magento/Tax/_files/scenarios/including_tax_apply_tax_after_discount.php b/dev/tests/integration/testsuite/Magento/Tax/_files/scenarios/including_tax_apply_tax_after_discount.php index 41b1aec5a67f3..e0cb82e50cbd4 100644 --- a/dev/tests/integration/testsuite/Magento/Tax/_files/scenarios/including_tax_apply_tax_after_discount.php +++ b/dev/tests/integration/testsuite/Magento/Tax/_files/scenarios/including_tax_apply_tax_after_discount.php @@ -21,7 +21,7 @@ SetupUtil::TAX_RATE_OVERRIDES => [ SetupUtil::TAX_RATE_TX => 10, SetupUtil::TAX_STORE_RATE => 10, - SetupUtil::TAX_RATE_SHIPPING => 10 + SetupUtil::TAX_RATE_SHIPPING => 10, ], SetupUtil::TAX_RULE_OVERRIDES => [ [ From d621327756d3f9cc37275194410673fb84a006f9 Mon Sep 17 00:00:00 2001 From: Cristian Partica Date: Tue, 14 Aug 2018 15:44:33 -0500 Subject: [PATCH 20/27] MAGETWO-90531: WYSIWYG shows special character button in toolbar on product page - when test module is enabled - add dummy js module --- .../TestModuleWysiwygConfig/etc/adminhtml/di.xml | 4 ++-- .../Magento/TestModuleWysiwygConfig/etc/di.xml | 2 +- .../web/wysiwyg/tiny_mce/tinymce4TestAdapter.js | 14 ++++++++++++++ .../Magento/Cms/Model/Wysiwyg/ConfigTest.php | 2 +- 4 files changed, 18 insertions(+), 4 deletions(-) create mode 100644 dev/tests/integration/_files/Magento/TestModuleWysiwygConfig/view/adminhtml/web/wysiwyg/tiny_mce/tinymce4TestAdapter.js diff --git a/dev/tests/integration/_files/Magento/TestModuleWysiwygConfig/etc/adminhtml/di.xml b/dev/tests/integration/_files/Magento/TestModuleWysiwygConfig/etc/adminhtml/di.xml index afbc603caa8b5..cd5b0e4df7fe9 100644 --- a/dev/tests/integration/_files/Magento/TestModuleWysiwygConfig/etc/adminhtml/di.xml +++ b/dev/tests/integration/_files/Magento/TestModuleWysiwygConfig/etc/adminhtml/di.xml @@ -12,7 +12,7 @@ Magento\TestModuleWysiwygConfig\Model\Config - Magento\TestModuleWysiwygConfig\Model\Config + Magento\TestModuleWysiwygConfig\Model\Config Magento\Variable\Model\Variable\ConfigProvider @@ -29,7 +29,7 @@ - mage/adminhtml/wysiwyg/tiny_mce/tinymce4Adapter + Magento_TestModuleWysiwygConfig/wysiwyg/tiny_mce/tinymce4TestAdapter Test Adapter diff --git a/dev/tests/integration/_files/Magento/TestModuleWysiwygConfig/etc/di.xml b/dev/tests/integration/_files/Magento/TestModuleWysiwygConfig/etc/di.xml index cd9710db45b45..db21145491d83 100644 --- a/dev/tests/integration/_files/Magento/TestModuleWysiwygConfig/etc/di.xml +++ b/dev/tests/integration/_files/Magento/TestModuleWysiwygConfig/etc/di.xml @@ -9,7 +9,7 @@ - + diff --git a/dev/tests/integration/_files/Magento/TestModuleWysiwygConfig/view/adminhtml/web/wysiwyg/tiny_mce/tinymce4TestAdapter.js b/dev/tests/integration/_files/Magento/TestModuleWysiwygConfig/view/adminhtml/web/wysiwyg/tiny_mce/tinymce4TestAdapter.js new file mode 100644 index 0000000000000..005e6437c2d78 --- /dev/null +++ b/dev/tests/integration/_files/Magento/TestModuleWysiwygConfig/view/adminhtml/web/wysiwyg/tiny_mce/tinymce4TestAdapter.js @@ -0,0 +1,14 @@ +/** + * Copyright © Magento, Inc. All rights reserved. + * See COPYING.txt for license details. + */ + +/* global popups, tinyMceEditors, MediabrowserUtility, Base64 */ +/* eslint-disable strict */ +define([ + 'mage/adminhtml/wysiwyg/tiny_mce/tinymce4Adapter' +], function (tinyMCE4) { + 'use strict'; + + return tinyMCE4; +}); diff --git a/dev/tests/integration/testsuite/Magento/Cms/Model/Wysiwyg/ConfigTest.php b/dev/tests/integration/testsuite/Magento/Cms/Model/Wysiwyg/ConfigTest.php index 498fc044faacf..431c9383a8c74 100644 --- a/dev/tests/integration/testsuite/Magento/Cms/Model/Wysiwyg/ConfigTest.php +++ b/dev/tests/integration/testsuite/Magento/Cms/Model/Wysiwyg/ConfigTest.php @@ -63,7 +63,7 @@ public function testGetConfigCssUrls() * * @return void * - * @magentoConfigFixture default/cms/wysiwyg/editor testAdapter + * @magentoConfigFixture default/cms/wysiwyg/editor Magento_TestModuleWysiwygConfig/wysiwyg/tiny_mce/tinymce4TestAdapter */ public function testTestModuleEnabledModuleIsAbleToModifyConfig() { From fcbf4b7cc9d1778b376c8c0a8aba3ac08f829041 Mon Sep 17 00:00:00 2001 From: Cristian Partica Date: Thu, 16 Aug 2018 15:19:16 -0500 Subject: [PATCH 21/27] MAGETWO-92279: An incorrect result of declaration:generate:whitelist execution - make generator exclude tables from app/etc/db_schema.xml - fix unit tests - create setup integration test for declaration:generate:whitelist --- .../TablesWhitelistGenerateCommand.php | 55 ++++- .../TablesWhitelistGenerateCommandTest.php | 101 ++++++++- .../TablesWhitelistGenerateCommandTest.php | 202 ++++++++++++++++++ .../Magento/Framework/Setup/JsonPersistor.php | 2 +- 4 files changed, 346 insertions(+), 14 deletions(-) create mode 100644 dev/tests/setup-integration/testsuite/Magento/Developer/Console/Command/TablesWhitelistGenerateCommandTest.php diff --git a/app/code/Magento/Developer/Console/Command/TablesWhitelistGenerateCommand.php b/app/code/Magento/Developer/Console/Command/TablesWhitelistGenerateCommand.php index 776bef99e7960..b8ef557735db0 100644 --- a/app/code/Magento/Developer/Console/Command/TablesWhitelistGenerateCommand.php +++ b/app/code/Magento/Developer/Console/Command/TablesWhitelistGenerateCommand.php @@ -42,11 +42,16 @@ class TablesWhitelistGenerateCommand extends Command */ private $jsonPersistor; + /** + * @var array + */ + private $primaryDbSchema; + /** * @param ComponentRegistrar $componentRegistrar * @param ReaderComposite $readerComposite * @param JsonPersistor $jsonPersistor - * @param null $name + * @param string|null $name */ public function __construct( ComponentRegistrar $componentRegistrar, @@ -104,18 +109,21 @@ private function persistModule($moduleName) if (file_exists($whiteListFileName)) { $content = json_decode(file_get_contents($whiteListFileName), true); } - $newContent = $this->readerComposite->read($moduleName); - //Do merge between what we have before, and what we have now. + $newContent = $this->filterPrimaryTables($this->readerComposite->read($moduleName)); + + //Do merge between what we have before, and what we have now and filter to only certain attributes. $content = array_replace_recursive( $content, - $this->selectNamesFromContent($newContent) + $this->filterAttributeNames($newContent) ); - $this->jsonPersistor->persist($content, $whiteListFileName); + if (!empty($content)) { + $this->jsonPersistor->persist($content, $whiteListFileName); + } } /** - * {@inheritdoc} + * @inheritdoc */ protected function execute(InputInterface $input, OutputInterface $output) { @@ -144,7 +152,7 @@ protected function execute(InputInterface $input, OutputInterface $output) * @param array $content * @return array */ - private function selectNamesFromContent(array $content) + private function filterAttributeNames(array $content) { $names = []; $types = ['column', 'index', 'constraint']; @@ -163,4 +171,37 @@ private function selectNamesFromContent(array $content) return $names; } + + /** + * Load db_schema content from the primary scope app/etc/db_schema.xml. + * + * @return array + */ + private function getPrimaryDbSchema() + { + if (!$this->primaryDbSchema) { + $this->primaryDbSchema = $this->readerComposite->read('primary'); + } + return $this->primaryDbSchema; + } + + /** + * Filter tables from module db_schema.xml as they should not contain the primary system tables. + * + * @param array $moduleDbSchema + * @return array + * @SuppressWarnings(PHPMD.UnusedLocalVariable) + */ + private function filterPrimaryTables(array $moduleDbSchema) + { + $primaryDbSchema = $this->getPrimaryDbSchema(); + if (isset($moduleDbSchema['table']) && isset($primaryDbSchema['table'])) { + foreach ($primaryDbSchema['table'] as $tableNameKey => $tableContents) { + if (isset($moduleDbSchema['table'][$tableNameKey])) { + unset($moduleDbSchema['table'][$tableNameKey]); + } + } + } + return $moduleDbSchema; + } } diff --git a/app/code/Magento/Developer/Test/Unit/Console/Command/TablesWhitelistGenerateCommandTest.php b/app/code/Magento/Developer/Test/Unit/Console/Command/TablesWhitelistGenerateCommandTest.php index 66fd7e3eec638..5bfc5686b05fb 100644 --- a/app/code/Magento/Developer/Test/Unit/Console/Command/TablesWhitelistGenerateCommandTest.php +++ b/app/code/Magento/Developer/Test/Unit/Console/Command/TablesWhitelistGenerateCommandTest.php @@ -45,6 +45,9 @@ class TablesWhitelistGenerateCommandTest extends \PHPUnit\Framework\TestCase */ private $jsonPersistorMock; + /** + * {@inheritdoc} + */ protected function setUp() { $this->componentRegistrarMock = $this->getMockBuilder(ComponentRegistrar::class) @@ -76,6 +79,47 @@ public function whitelistTableProvider() [ 'moduleName' => 'SomeModule', 'whitelist' => [ + 'primary' => [ + 'table' => + [ + 'patch_list' => + [ + 'column' => + [ + 'patch_id' => + [ + 'type' => 'int', + 'name' => 'patch_id', + 'identity' => 'true', + 'comment' => 'Patch Auto Increment', + ], + 'patch_name' => + [ + 'type' => 'varchar', + 'name' => 'patch_name', + 'length' => '1024', + 'nullable' => 'false', + 'comment' => 'Patch Class Name', + ], + ], + 'constraint' => + [ + 'PRIMARY' => + [ + 'column' => + [ + 'patch_id' => 'patch_id', + ], + 'type' => 'primary', + 'name' => 'PRIMARY', + ], + ], + 'name' => 'patch_list', + 'resource' => 'default', + 'comment' => 'List of data/schema patches', + ], + ], + ], 'SomeModule' => [ 'table' => [ 'first_table' => [ @@ -149,6 +193,47 @@ public function whitelistTableProvider() [ 'moduleName' => false, 'whitelist' => [ + 'primary' => [ + 'table' => + [ + 'patch_list' => + [ + 'column' => + [ + 'patch_id' => + [ + 'type' => 'int', + 'name' => 'patch_id', + 'identity' => 'true', + 'comment' => 'Patch Auto Increment', + ], + 'patch_name' => + [ + 'type' => 'varchar', + 'name' => 'patch_name', + 'length' => '1024', + 'nullable' => 'false', + 'comment' => 'Patch Class Name', + ], + ], + 'constraint' => + [ + 'PRIMARY' => + [ + 'column' => + [ + 'patch_id' => 'patch_id', + ], + 'type' => 'primary', + 'name' => 'PRIMARY', + ], + ], + 'name' => 'patch_list', + 'resource' => 'default', + 'comment' => 'List of data/schema patches', + ], + ], + ], 'SomeModule' => [ 'table' => [ 'first_table' => [ @@ -303,10 +388,14 @@ public function testCommand($moduleName, array $whiteListTables, array $expected $this->componentRegistrarMock->expects(self::once()) ->method('getPaths') ->willReturn(['SomeModule' => 1, 'Module2' => 2]); - $this->readerCompositeMock->expects(self::exactly(2)) + $this->readerCompositeMock->expects(self::exactly(3)) ->method('read') - ->withConsecutive(['SomeModule'], ['Module2']) - ->willReturnOnConsecutiveCalls($whiteListTables['SomeModule'], $whiteListTables['Module2']); + ->withConsecutive(['SomeModule'], ['primary'], ['Module2']) + ->willReturnOnConsecutiveCalls( + $whiteListTables['SomeModule'], + $whiteListTables['primary'], + $whiteListTables['Module2'] + ); $this->jsonPersistorMock->expects(self::exactly(2)) ->method('persist') ->withConsecutive( @@ -320,10 +409,10 @@ public function testCommand($moduleName, array $whiteListTables, array $expected ] ); } else { - $this->readerCompositeMock->expects(self::once()) + $this->readerCompositeMock->expects(self::exactly(2)) ->method('read') - ->with($moduleName) - ->willReturn($whiteListTables['SomeModule']); + ->withConsecutive([$moduleName], ['primary']) + ->willReturnOnConsecutiveCalls($whiteListTables['SomeModule'], $whiteListTables['primary']); $this->jsonPersistorMock->expects(self::once()) ->method('persist') ->with( diff --git a/dev/tests/setup-integration/testsuite/Magento/Developer/Console/Command/TablesWhitelistGenerateCommandTest.php b/dev/tests/setup-integration/testsuite/Magento/Developer/Console/Command/TablesWhitelistGenerateCommandTest.php new file mode 100644 index 0000000000000..81ad56b793224 --- /dev/null +++ b/dev/tests/setup-integration/testsuite/Magento/Developer/Console/Command/TablesWhitelistGenerateCommandTest.php @@ -0,0 +1,202 @@ +objectManager = \Magento\TestFramework\Helper\Bootstrap::getObjectManager(); + $this->command = $this->objectManager->create( + \Magento\Developer\Console\Command\TablesWhitelistGenerateCommand::class + ); + $this->componentRegistrar = $this->objectManager->create( + \Magento\Framework\Component\ComponentRegistrar::class + ); + $this->cliCommand = $this->objectManager->get(CliCommand::class); + $this->tester = new CommandTester($this->command); + } + + /** + * Execute generate command for whitelist on module Magento_TestSetupDeclarationModule1. + * + * @param array $expectedWhitelistContent + * + * @moduleName Magento_TestSetupDeclarationModule1 + * @dataProvider contentsDataProvider + */ + public function testExecute(array $expectedWhitelistContent) + { + $this->cliCommand->install(['Magento_TestSetupDeclarationModule1']); + + $moduleName = 'Magento_TestSetupDeclarationModule1'; + $modulePath = $this->componentRegistrar->getPath('module', $moduleName); + $whiteListFileName = $modulePath + . DIRECTORY_SEPARATOR + . \Magento\Framework\Module\Dir::MODULE_ETC_DIR + . DIRECTORY_SEPARATOR + . \Magento\Framework\Setup\Declaration\Schema\Diff\Diff::GENERATED_WHITELIST_FILE_NAME; + + //run bin/magento declaration:generate:whitelist Magento_TestSetupDeclarationModule1 command. + $this->tester->execute(['--module-name' => $moduleName], ['interactive' => false]); + + $this->assertSame(Cli::RETURN_SUCCESS, $this->tester->getStatusCode()); + + $this->assertFileExists($whiteListFileName); + $this->assertContains('', $this->tester->getDisplay()); + + $whitelistContent = json_decode(file_get_contents($whiteListFileName), true); + $this->assertEquals($expectedWhitelistContent, $whitelistContent); + } + + /** + * Data provider for whitelist contents. + * + * @return array + * @SuppressWarnings(PHPMD.ExcessiveMethodLength) + */ + public function contentsDataProvider() + { + return [ + [ + 'content' => [ + 'reference_table' => + [ + 'column' => + [ + 'tinyint_ref' => true, + 'tinyint_without_padding' => true, + 'bigint_without_padding' => true, + 'integer_without_padding' => true, + 'smallint_with_big_padding' => true, + 'smallint_without_default' => true, + 'int_without_unsigned' => true, + 'int_unsigned' => true, + 'bigint_default_nullable' => true, + 'bigint_not_default_not_nullable' => true, + 'smallint_without_padding' => true, + ], + 'constraint' => + [ + 'tinyint_primary' => true, + ], + ], + 'auto_increment_test' => + [ + 'column' => + [ + 'int_auto_increment_with_nullable' => true, + 'int_disabled_auto_increment' => true, + ], + 'constraint' => + [ + 'AUTO_INCREMENT_TEST_INT_AUTO_INCREMENT_WITH_NULLABLE' => true, + ], + ], + 'test_table' => + [ + 'column' => + [ + 'smallint' => true, + 'tinyint' => true, + 'bigint' => true, + 'float' => true, + 'double' => true, + 'decimal' => true, + 'date' => true, + 'timestamp' => true, + 'datetime' => true, + 'longtext' => true, + 'mediumtext' => true, + 'varchar' => true, + 'mediumblob' => true, + 'blob' => true, + 'boolean' => true, + 'varbinary_rename' => true, + ], + 'index' => + [ + 'TEST_TABLE_TINYINT_BIGINT' => true, + ], + 'constraint' => + [ + 'TEST_TABLE_SMALLINT_BIGINT' => true, + 'TEST_TABLE_TINYINT_REFERENCE_TABLE_TINYINT_REF' => true, + ], + ], + 'store' => + [ + 'column' => + [ + 'store_owner_id' => true, + 'store_owner' => true, + ], + 'constraint' => + [ + 'STORE_STORE_OWNER_ID_STORE_OWNER_OWNER_ID' => true, + ], + ], + 'store_owner' => + [ + 'column' => + [ + 'owner_id' => true, + 'label' => true, + ], + 'constraint' => + [ + '' => true, + ], + ], + 'some_table' => + [ + 'column' => + [ + 'some_column' => true, + ], + ], + ], + ], + ]; + } +} diff --git a/lib/internal/Magento/Framework/Setup/JsonPersistor.php b/lib/internal/Magento/Framework/Setup/JsonPersistor.php index 4094f9e0d090d..b479ffe20e460 100644 --- a/lib/internal/Magento/Framework/Setup/JsonPersistor.php +++ b/lib/internal/Magento/Framework/Setup/JsonPersistor.php @@ -19,6 +19,6 @@ class JsonPersistor */ public function persist(array $data, $path) { - return file_put_contents($path, json_encode($data)); + return file_put_contents($path, json_encode($data, JSON_PRETTY_PRINT)); } } From 1b9325247c7b202844f781e026fbba47982a0346 Mon Sep 17 00:00:00 2001 From: Cristian Partica Date: Thu, 16 Aug 2018 15:26:18 -0500 Subject: [PATCH 22/27] MAGETWO-92279: An incorrect result of declaration:generate:whitelist execution - modifying db_schema_whitelist.json for ce --- .../etc/db_schema_whitelist.json | 56 +- .../etc/db_schema_whitelist.json | 22 +- .../etc/db_schema_whitelist.json | 84 +- .../etc/db_schema_whitelist.json | 68 +- .../Bundle/etc/db_schema_whitelist.json | 418 +-- .../Captcha/etc/db_schema_whitelist.json | 20 +- .../Catalog/etc/db_schema_whitelist.json | 2243 +++++++-------- .../etc/db_schema_whitelist.json | 236 +- .../CatalogRule/etc/db_schema_whitelist.json | 386 +-- .../etc/db_schema_whitelist.json | 8 +- .../etc/db_schema_whitelist.json | 32 +- .../etc/db_schema_whitelist.json | 48 +- .../Magento/Cms/etc/db_schema_whitelist.json | 142 +- .../Config/etc/db_schema_whitelist.json | 24 +- .../etc/db_schema_whitelist.json | 90 +- .../Magento/Cron/etc/db_schema_whitelist.json | 36 +- .../Customer/etc/db_schema_whitelist.json | 692 ++--- .../Directory/etc/db_schema_whitelist.json | 116 +- .../Downloadable/etc/db_schema_whitelist.json | 334 +-- .../Magento/Eav/etc/db_schema_whitelist.json | 776 ++--- .../Email/etc/db_schema_whitelist.json | 46 +- .../GiftMessage/etc/db_schema_whitelist.json | 82 +- .../etc/db_schema_whitelist.json | 26 +- .../ImportExport/etc/db_schema_whitelist.json | 46 +- .../Indexer/etc/db_schema_whitelist.json | 60 +- .../Integration/etc/db_schema_whitelist.json | 180 +- .../MessageQueue/etc/db_schema_whitelist.json | 20 +- .../MysqlMq/etc/db_schema_whitelist.json | 78 +- .../etc/db_schema_whitelist.json | 108 +- .../Newsletter/etc/db_schema_whitelist.json | 218 +- .../etc/db_schema_whitelist.json | 80 +- .../Paypal/etc/db_schema_whitelist.json | 220 +- .../Persistent/etc/db_schema_whitelist.json | 46 +- .../ProductAlert/etc/db_schema_whitelist.json | 94 +- .../ProductVideo/etc/db_schema_whitelist.json | 30 +- .../Quote/etc/db_schema_whitelist.json | 638 ++--- .../etc/db_schema_whitelist.json | 22 +- .../Reports/etc/db_schema_whitelist.json | 286 +- .../Review/etc/db_schema_whitelist.json | 408 +-- .../Sales/etc/db_schema_whitelist.json | 2490 ++++++++--------- .../SalesRule/etc/db_schema_whitelist.json | 454 +-- .../etc/db_schema_whitelist.json | 56 +- .../Search/etc/db_schema_whitelist.json | 84 +- .../Security/etc/db_schema_whitelist.json | 66 +- .../SendFriend/etc/db_schema_whitelist.json | 28 +- .../Signifyd/etc/db_schema_whitelist.json | 48 +- .../Sitemap/etc/db_schema_whitelist.json | 32 +- .../Store/etc/db_schema_whitelist.json | 112 +- .../Swatches/etc/db_schema_whitelist.json | 42 +- .../Magento/Tax/etc/db_schema_whitelist.json | 238 +- .../Theme/etc/db_schema_whitelist.json | 88 +- .../Translation/etc/db_schema_whitelist.json | 28 +- .../Magento/Ui/etc/db_schema_whitelist.json | 38 +- .../UrlRewrite/etc/db_schema_whitelist.json | 42 +- .../Magento/User/etc/db_schema_whitelist.json | 82 +- .../Variable/etc/db_schema_whitelist.json | 54 +- .../Vault/etc/db_schema_whitelist.json | 66 +- .../Magento/Weee/etc/db_schema_whitelist.json | 148 +- .../Widget/etc/db_schema_whitelist.json | 180 +- .../Wishlist/etc/db_schema_whitelist.json | 100 +- 60 files changed, 6498 insertions(+), 6497 deletions(-) diff --git a/app/code/Magento/AdminNotification/etc/db_schema_whitelist.json b/app/code/Magento/AdminNotification/etc/db_schema_whitelist.json index df5e14e066636..b068ffffe9219 100644 --- a/app/code/Magento/AdminNotification/etc/db_schema_whitelist.json +++ b/app/code/Magento/AdminNotification/etc/db_schema_whitelist.json @@ -1,32 +1,32 @@ { - "adminnotification_inbox": { - "column": { - "notification_id": true, - "severity": true, - "date_added": true, - "title": true, - "description": true, - "url": true, - "is_read": true, - "is_remove": true + "adminnotification_inbox": { + "column": { + "notification_id": true, + "severity": true, + "date_added": true, + "title": true, + "description": true, + "url": true, + "is_read": true, + "is_remove": true + }, + "index": { + "ADMINNOTIFICATION_INBOX_SEVERITY": true, + "ADMINNOTIFICATION_INBOX_IS_READ": true, + "ADMINNOTIFICATION_INBOX_IS_REMOVE": true + }, + "constraint": { + "PRIMARY": true + } }, - "index": { - "ADMINNOTIFICATION_INBOX_SEVERITY": true, - "ADMINNOTIFICATION_INBOX_IS_READ": true, - "ADMINNOTIFICATION_INBOX_IS_REMOVE": true - }, - "constraint": { - "PRIMARY": true - } - }, - "admin_system_messages": { - "column": { - "identity": true, - "severity": true, - "created_at": true - }, - "constraint": { - "PRIMARY": true + "admin_system_messages": { + "column": { + "identity": true, + "severity": true, + "created_at": true + }, + "constraint": { + "PRIMARY": true + } } - } } \ No newline at end of file diff --git a/app/code/Magento/AdvancedSearch/etc/db_schema_whitelist.json b/app/code/Magento/AdvancedSearch/etc/db_schema_whitelist.json index eaf7f3d616736..8addf187744fd 100644 --- a/app/code/Magento/AdvancedSearch/etc/db_schema_whitelist.json +++ b/app/code/Magento/AdvancedSearch/etc/db_schema_whitelist.json @@ -1,14 +1,14 @@ { - "catalogsearch_recommendations": { - "column": { - "id": true, - "query_id": true, - "relation_id": true - }, - "constraint": { - "PRIMARY": true, - "CATALOGSEARCH_RECOMMENDATIONS_QUERY_ID_SEARCH_QUERY_QUERY_ID": true, - "CATALOGSEARCH_RECOMMENDATIONS_RELATION_ID_SEARCH_QUERY_QUERY_ID": true + "catalogsearch_recommendations": { + "column": { + "id": true, + "query_id": true, + "relation_id": true + }, + "constraint": { + "PRIMARY": true, + "CATALOGSEARCH_RECOMMENDATIONS_QUERY_ID_SEARCH_QUERY_QUERY_ID": true, + "CATALOGSEARCH_RECOMMENDATIONS_RELATION_ID_SEARCH_QUERY_QUERY_ID": true + } } - } } \ No newline at end of file diff --git a/app/code/Magento/AsynchronousOperations/etc/db_schema_whitelist.json b/app/code/Magento/AsynchronousOperations/etc/db_schema_whitelist.json index 396e443355d8f..d62f16ffca8cd 100644 --- a/app/code/Magento/AsynchronousOperations/etc/db_schema_whitelist.json +++ b/app/code/Magento/AsynchronousOperations/etc/db_schema_whitelist.json @@ -1,47 +1,47 @@ { - "magento_bulk": { - "column": { - "id": true, - "uuid": true, - "user_id": true, - "description": true, - "operation_count": true, - "start_time": true + "magento_bulk": { + "column": { + "id": true, + "uuid": true, + "user_id": true, + "description": true, + "operation_count": true, + "start_time": true + }, + "constraint": { + "PRIMARY": true, + "MAGENTO_BULK_USER_ID_ADMIN_USER_USER_ID": true, + "MAGENTO_BULK_UUID": true + } }, - "constraint": { - "PRIMARY": true, - "MAGENTO_BULK_USER_ID_ADMIN_USER_USER_ID": true, - "MAGENTO_BULK_UUID": true - } - }, - "magento_operation": { - "column": { - "id": true, - "bulk_uuid": true, - "topic_name": true, - "serialized_data": true, - "result_serialized_data": true, - "status": true, - "error_code": true, - "result_message": true - }, - "index": { - "MAGENTO_OPERATION_BULK_UUID_ERROR_CODE": true - }, - "constraint": { - "PRIMARY": true, - "MAGENTO_OPERATION_BULK_UUID_MAGENTO_BULK_UUID": true - } - }, - "magento_acknowledged_bulk": { - "column": { - "id": true, - "bulk_uuid": true + "magento_operation": { + "column": { + "id": true, + "bulk_uuid": true, + "topic_name": true, + "serialized_data": true, + "result_serialized_data": true, + "status": true, + "error_code": true, + "result_message": true + }, + "index": { + "MAGENTO_OPERATION_BULK_UUID_ERROR_CODE": true + }, + "constraint": { + "PRIMARY": true, + "MAGENTO_OPERATION_BULK_UUID_MAGENTO_BULK_UUID": true + } }, - "constraint": { - "PRIMARY": true, - "MAGENTO_ACKNOWLEDGED_BULK_BULK_UUID_MAGENTO_BULK_UUID": true, - "MAGENTO_ACKNOWLEDGED_BULK_BULK_UUID": true + "magento_acknowledged_bulk": { + "column": { + "id": true, + "bulk_uuid": true + }, + "constraint": { + "PRIMARY": true, + "MAGENTO_ACKNOWLEDGED_BULK_BULK_UUID_MAGENTO_BULK_UUID": true, + "MAGENTO_ACKNOWLEDGED_BULK_BULK_UUID": true + } } - } } \ No newline at end of file diff --git a/app/code/Magento/Authorization/etc/db_schema_whitelist.json b/app/code/Magento/Authorization/etc/db_schema_whitelist.json index eb9256e415593..8c416d2a8b42c 100644 --- a/app/code/Magento/Authorization/etc/db_schema_whitelist.json +++ b/app/code/Magento/Authorization/etc/db_schema_whitelist.json @@ -1,38 +1,38 @@ { - "authorization_role": { - "column": { - "role_id": true, - "parent_id": true, - "tree_level": true, - "sort_order": true, - "role_type": true, - "user_id": true, - "user_type": true, - "role_name": true + "authorization_role": { + "column": { + "role_id": true, + "parent_id": true, + "tree_level": true, + "sort_order": true, + "role_type": true, + "user_id": true, + "user_type": true, + "role_name": true + }, + "index": { + "AUTHORIZATION_ROLE_PARENT_ID_SORT_ORDER": true, + "AUTHORIZATION_ROLE_TREE_LEVEL": true + }, + "constraint": { + "PRIMARY": true + } }, - "index": { - "AUTHORIZATION_ROLE_PARENT_ID_SORT_ORDER": true, - "AUTHORIZATION_ROLE_TREE_LEVEL": true - }, - "constraint": { - "PRIMARY": true - } - }, - "authorization_rule": { - "column": { - "rule_id": true, - "role_id": true, - "resource_id": true, - "privileges": true, - "permission": true - }, - "index": { - "AUTHORIZATION_RULE_RESOURCE_ID_ROLE_ID": true, - "AUTHORIZATION_RULE_ROLE_ID_RESOURCE_ID": true - }, - "constraint": { - "PRIMARY": true, - "AUTHORIZATION_RULE_ROLE_ID_AUTHORIZATION_ROLE_ROLE_ID": true + "authorization_rule": { + "column": { + "rule_id": true, + "role_id": true, + "resource_id": true, + "privileges": true, + "permission": true + }, + "index": { + "AUTHORIZATION_RULE_RESOURCE_ID_ROLE_ID": true, + "AUTHORIZATION_RULE_ROLE_ID_RESOURCE_ID": true + }, + "constraint": { + "PRIMARY": true, + "AUTHORIZATION_RULE_ROLE_ID_AUTHORIZATION_ROLE_ROLE_ID": true + } } - } } \ No newline at end of file diff --git a/app/code/Magento/Bundle/etc/db_schema_whitelist.json b/app/code/Magento/Bundle/etc/db_schema_whitelist.json index efb535d50caa3..2834d707cae0f 100644 --- a/app/code/Magento/Bundle/etc/db_schema_whitelist.json +++ b/app/code/Magento/Bundle/etc/db_schema_whitelist.json @@ -1,212 +1,212 @@ { - "catalog_product_bundle_option": { - "column": { - "option_id": true, - "parent_id": true, - "required": true, - "position": true, - "type": true - }, - "index": { - "CATALOG_PRODUCT_BUNDLE_OPTION_PARENT_ID": true - }, - "constraint": { - "PRIMARY": true, - "CAT_PRD_BNDL_OPT_PARENT_ID_CAT_PRD_ENTT_ENTT_ID": true - } - }, - "catalog_product_bundle_option_value": { - "column": { - "value_id": true, - "option_id": true, - "store_id": true, - "title": true, - "parent_product_id": true - }, - "constraint": { - "PRIMARY": true, - "CAT_PRD_BNDL_OPT_VAL_OPT_ID_CAT_PRD_BNDL_OPT_OPT_ID": true, - "CAT_PRD_BNDL_OPT_VAL_OPT_ID_PARENT_PRD_ID_STORE_ID": true, - "CATALOG_PRODUCT_BUNDLE_OPTION_VALUE_OPTION_ID_STORE_ID": true - } - }, - "catalog_product_bundle_selection": { - "column": { - "selection_id": true, - "option_id": true, - "parent_product_id": true, - "product_id": true, - "position": true, - "is_default": true, - "selection_price_type": true, - "selection_price_value": true, - "selection_qty": true, - "selection_can_change_qty": true - }, - "index": { - "CATALOG_PRODUCT_BUNDLE_SELECTION_OPTION_ID": true, - "CATALOG_PRODUCT_BUNDLE_SELECTION_PRODUCT_ID": true - }, - "constraint": { - "PRIMARY": true, - "CAT_PRD_BNDL_SELECTION_OPT_ID_CAT_PRD_BNDL_OPT_OPT_ID": true, - "CAT_PRD_BNDL_SELECTION_PRD_ID_CAT_PRD_ENTT_ENTT_ID": true, - "CAT_PRD_BNDL_SELECTION_PRD_ID_SEQUENCE_PRD_SEQUENCE_VAL": true - } - }, - "catalog_product_bundle_selection_price": { - "column": { - "selection_id": true, - "website_id": true, - "selection_price_type": true, - "selection_price_value": true, - "parent_product_id": true - }, - "index": { - "CATALOG_PRODUCT_BUNDLE_SELECTION_PRICE_WEBSITE_ID": true - }, - "constraint": { - "PRIMARY": true, - "PK_CATALOG_PRODUCT_BUNDLE_SELECTION_PRICE": true, - "CAT_PRD_BNDL_SELECTION_PRICE_WS_ID_STORE_WS_WS_ID": true, - "FK_DCF37523AA05D770A70AA4ED7C2616E4": true, - "DCF37523AA05D770A70AA4ED7C2616E4": true - } - }, - "catalog_product_bundle_price_index": { - "column": { - "entity_id": true, - "website_id": true, - "customer_group_id": true, - "min_price": true, - "max_price": true - }, - "index": { - "CATALOG_PRODUCT_BUNDLE_PRICE_INDEX_WEBSITE_ID": true, - "CATALOG_PRODUCT_BUNDLE_PRICE_INDEX_CUSTOMER_GROUP_ID": true - }, - "constraint": { - "PRIMARY": true, - "CAT_PRD_BNDL_PRICE_IDX_CSTR_GROUP_ID_CSTR_GROUP_CSTR_GROUP_ID": true, - "CAT_PRD_BNDL_PRICE_IDX_ENTT_ID_CAT_PRD_ENTT_ENTT_ID": true, - "CAT_PRD_BNDL_PRICE_IDX_WS_ID_STORE_WS_WS_ID": true, - "CAT_PRD_BNDL_PRICE_IDX_ENTT_ID_SEQUENCE_PRD_SEQUENCE_VAL": true - } - }, - "catalog_product_bundle_stock_index": { - "column": { - "entity_id": true, - "website_id": true, - "stock_id": true, - "option_id": true, - "stock_status": true - }, - "constraint": { - "PRIMARY": true - } - }, - "catalog_product_index_price_bundle_idx": { - "column": { - "entity_id": true, - "customer_group_id": true, - "website_id": true, - "tax_class_id": true, - "price_type": true, - "special_price": true, - "tier_percent": true, - "orig_price": true, - "price": true, - "min_price": true, - "max_price": true, - "tier_price": true, - "base_tier": true - }, - "constraint": { - "PRIMARY": true - } - }, - "catalog_product_index_price_bundle_tmp": { - "column": { - "entity_id": true, - "customer_group_id": true, - "website_id": true, - "tax_class_id": true, - "price_type": true, - "special_price": true, - "tier_percent": true, - "orig_price": true, - "price": true, - "min_price": true, - "max_price": true, - "tier_price": true, - "base_tier": true - }, - "constraint": { - "PRIMARY": true - } - }, - "catalog_product_index_price_bundle_sel_idx": { - "column": { - "entity_id": true, - "customer_group_id": true, - "website_id": true, - "option_id": true, - "selection_id": true, - "group_type": true, - "is_required": true, - "price": true, - "tier_price": true - }, - "constraint": { - "PRIMARY": true - } - }, - "catalog_product_index_price_bundle_sel_tmp": { - "column": { - "entity_id": true, - "customer_group_id": true, - "website_id": true, - "option_id": true, - "selection_id": true, - "group_type": true, - "is_required": true, - "price": true, - "tier_price": true - }, - "constraint": { - "PRIMARY": true - } - }, - "catalog_product_index_price_bundle_opt_idx": { - "column": { - "entity_id": true, - "customer_group_id": true, - "website_id": true, - "option_id": true, - "min_price": true, - "alt_price": true, - "max_price": true, - "tier_price": true, - "alt_tier_price": true - }, - "constraint": { - "PRIMARY": true - } - }, - "catalog_product_index_price_bundle_opt_tmp": { - "column": { - "entity_id": true, - "customer_group_id": true, - "website_id": true, - "option_id": true, - "min_price": true, - "alt_price": true, - "max_price": true, - "tier_price": true, - "alt_tier_price": true - }, - "constraint": { - "PRIMARY": true + "catalog_product_bundle_option": { + "column": { + "option_id": true, + "parent_id": true, + "required": true, + "position": true, + "type": true + }, + "index": { + "CATALOG_PRODUCT_BUNDLE_OPTION_PARENT_ID": true + }, + "constraint": { + "PRIMARY": true, + "CAT_PRD_BNDL_OPT_PARENT_ID_CAT_PRD_ENTT_ENTT_ID": true + } + }, + "catalog_product_bundle_option_value": { + "column": { + "value_id": true, + "option_id": true, + "store_id": true, + "title": true, + "parent_product_id": true + }, + "constraint": { + "PRIMARY": true, + "CAT_PRD_BNDL_OPT_VAL_OPT_ID_CAT_PRD_BNDL_OPT_OPT_ID": true, + "CAT_PRD_BNDL_OPT_VAL_OPT_ID_PARENT_PRD_ID_STORE_ID": true, + "CATALOG_PRODUCT_BUNDLE_OPTION_VALUE_OPTION_ID_STORE_ID": true + } + }, + "catalog_product_bundle_selection": { + "column": { + "selection_id": true, + "option_id": true, + "parent_product_id": true, + "product_id": true, + "position": true, + "is_default": true, + "selection_price_type": true, + "selection_price_value": true, + "selection_qty": true, + "selection_can_change_qty": true + }, + "index": { + "CATALOG_PRODUCT_BUNDLE_SELECTION_OPTION_ID": true, + "CATALOG_PRODUCT_BUNDLE_SELECTION_PRODUCT_ID": true + }, + "constraint": { + "PRIMARY": true, + "CAT_PRD_BNDL_SELECTION_OPT_ID_CAT_PRD_BNDL_OPT_OPT_ID": true, + "CAT_PRD_BNDL_SELECTION_PRD_ID_CAT_PRD_ENTT_ENTT_ID": true, + "CAT_PRD_BNDL_SELECTION_PRD_ID_SEQUENCE_PRD_SEQUENCE_VAL": true + } + }, + "catalog_product_bundle_selection_price": { + "column": { + "selection_id": true, + "website_id": true, + "selection_price_type": true, + "selection_price_value": true, + "parent_product_id": true + }, + "index": { + "CATALOG_PRODUCT_BUNDLE_SELECTION_PRICE_WEBSITE_ID": true + }, + "constraint": { + "PRIMARY": true, + "PK_CATALOG_PRODUCT_BUNDLE_SELECTION_PRICE": true, + "CAT_PRD_BNDL_SELECTION_PRICE_WS_ID_STORE_WS_WS_ID": true, + "FK_DCF37523AA05D770A70AA4ED7C2616E4": true, + "DCF37523AA05D770A70AA4ED7C2616E4": true + } + }, + "catalog_product_bundle_price_index": { + "column": { + "entity_id": true, + "website_id": true, + "customer_group_id": true, + "min_price": true, + "max_price": true + }, + "index": { + "CATALOG_PRODUCT_BUNDLE_PRICE_INDEX_WEBSITE_ID": true, + "CATALOG_PRODUCT_BUNDLE_PRICE_INDEX_CUSTOMER_GROUP_ID": true + }, + "constraint": { + "PRIMARY": true, + "CAT_PRD_BNDL_PRICE_IDX_CSTR_GROUP_ID_CSTR_GROUP_CSTR_GROUP_ID": true, + "CAT_PRD_BNDL_PRICE_IDX_ENTT_ID_CAT_PRD_ENTT_ENTT_ID": true, + "CAT_PRD_BNDL_PRICE_IDX_WS_ID_STORE_WS_WS_ID": true, + "CAT_PRD_BNDL_PRICE_IDX_ENTT_ID_SEQUENCE_PRD_SEQUENCE_VAL": true + } + }, + "catalog_product_bundle_stock_index": { + "column": { + "entity_id": true, + "website_id": true, + "stock_id": true, + "option_id": true, + "stock_status": true + }, + "constraint": { + "PRIMARY": true + } + }, + "catalog_product_index_price_bundle_idx": { + "column": { + "entity_id": true, + "customer_group_id": true, + "website_id": true, + "tax_class_id": true, + "price_type": true, + "special_price": true, + "tier_percent": true, + "orig_price": true, + "price": true, + "min_price": true, + "max_price": true, + "tier_price": true, + "base_tier": true + }, + "constraint": { + "PRIMARY": true + } + }, + "catalog_product_index_price_bundle_tmp": { + "column": { + "entity_id": true, + "customer_group_id": true, + "website_id": true, + "tax_class_id": true, + "price_type": true, + "special_price": true, + "tier_percent": true, + "orig_price": true, + "price": true, + "min_price": true, + "max_price": true, + "tier_price": true, + "base_tier": true + }, + "constraint": { + "PRIMARY": true + } + }, + "catalog_product_index_price_bundle_sel_idx": { + "column": { + "entity_id": true, + "customer_group_id": true, + "website_id": true, + "option_id": true, + "selection_id": true, + "group_type": true, + "is_required": true, + "price": true, + "tier_price": true + }, + "constraint": { + "PRIMARY": true + } + }, + "catalog_product_index_price_bundle_sel_tmp": { + "column": { + "entity_id": true, + "customer_group_id": true, + "website_id": true, + "option_id": true, + "selection_id": true, + "group_type": true, + "is_required": true, + "price": true, + "tier_price": true + }, + "constraint": { + "PRIMARY": true + } + }, + "catalog_product_index_price_bundle_opt_idx": { + "column": { + "entity_id": true, + "customer_group_id": true, + "website_id": true, + "option_id": true, + "min_price": true, + "alt_price": true, + "max_price": true, + "tier_price": true, + "alt_tier_price": true + }, + "constraint": { + "PRIMARY": true + } + }, + "catalog_product_index_price_bundle_opt_tmp": { + "column": { + "entity_id": true, + "customer_group_id": true, + "website_id": true, + "option_id": true, + "min_price": true, + "alt_price": true, + "max_price": true, + "tier_price": true, + "alt_tier_price": true + }, + "constraint": { + "PRIMARY": true + } } - } } \ No newline at end of file diff --git a/app/code/Magento/Captcha/etc/db_schema_whitelist.json b/app/code/Magento/Captcha/etc/db_schema_whitelist.json index 95fd6411b44dd..1f5b1b624e48b 100644 --- a/app/code/Magento/Captcha/etc/db_schema_whitelist.json +++ b/app/code/Magento/Captcha/etc/db_schema_whitelist.json @@ -1,13 +1,13 @@ { - "captcha_log": { - "column": { - "type": true, - "value": true, - "count": true, - "updated_at": true - }, - "constraint": { - "PRIMARY": true + "captcha_log": { + "column": { + "type": true, + "value": true, + "count": true, + "updated_at": true + }, + "constraint": { + "PRIMARY": true + } } - } } \ No newline at end of file diff --git a/app/code/Magento/Catalog/etc/db_schema_whitelist.json b/app/code/Magento/Catalog/etc/db_schema_whitelist.json index 1c2c660ca9b00..b1543a6a007f9 100644 --- a/app/code/Magento/Catalog/etc/db_schema_whitelist.json +++ b/app/code/Magento/Catalog/etc/db_schema_whitelist.json @@ -1,1123 +1,1124 @@ { - "catalog_product_entity": { - "column": { - "entity_id": true, - "attribute_set_id": true, - "type_id": true, - "sku": true, - "has_options": true, - "required_options": true, - "created_at": true, - "updated_at": true - }, - "index": { - "CATALOG_PRODUCT_ENTITY_ATTRIBUTE_SET_ID": true, - "CATALOG_PRODUCT_ENTITY_SKU": true - }, - "constraint": { - "PRIMARY": true, - "CAT_PRD_ENTT_ATTR_SET_ID_EAV_ATTR_SET_ATTR_SET_ID": true - } - }, - "catalog_product_entity_datetime": { - "column": { - "value_id": true, - "attribute_id": true, - "store_id": true, - "entity_id": true, - "value": true - }, - "index": { - "CATALOG_PRODUCT_ENTITY_DATETIME_ATTRIBUTE_ID": true, - "CATALOG_PRODUCT_ENTITY_DATETIME_STORE_ID": true - }, - "constraint": { - "PRIMARY": true, - "CAT_PRD_ENTT_DTIME_ATTR_ID_EAV_ATTR_ATTR_ID": true, - "CAT_PRD_ENTT_DTIME_ENTT_ID_CAT_PRD_ENTT_ENTT_ID": true, - "CATALOG_PRODUCT_ENTITY_DATETIME_STORE_ID_STORE_STORE_ID": true, - "CATALOG_PRODUCT_ENTITY_DATETIME_ENTITY_ID_ATTRIBUTE_ID_STORE_ID": true - } - }, - "catalog_product_entity_decimal": { - "column": { - "value_id": true, - "attribute_id": true, - "store_id": true, - "entity_id": true, - "value": true - }, - "index": { - "CATALOG_PRODUCT_ENTITY_DECIMAL_STORE_ID": true, - "CATALOG_PRODUCT_ENTITY_DECIMAL_ATTRIBUTE_ID": true - }, - "constraint": { - "PRIMARY": true, - "CAT_PRD_ENTT_DEC_ATTR_ID_EAV_ATTR_ATTR_ID": true, - "CAT_PRD_ENTT_DEC_ENTT_ID_CAT_PRD_ENTT_ENTT_ID": true, - "CATALOG_PRODUCT_ENTITY_DECIMAL_STORE_ID_STORE_STORE_ID": true, - "CATALOG_PRODUCT_ENTITY_DECIMAL_ENTITY_ID_ATTRIBUTE_ID_STORE_ID": true - } - }, - "catalog_product_entity_int": { - "column": { - "value_id": true, - "attribute_id": true, - "store_id": true, - "entity_id": true, - "value": true - }, - "index": { - "CATALOG_PRODUCT_ENTITY_INT_ATTRIBUTE_ID": true, - "CATALOG_PRODUCT_ENTITY_INT_STORE_ID": true - }, - "constraint": { - "PRIMARY": true, - "CAT_PRD_ENTT_INT_ATTR_ID_EAV_ATTR_ATTR_ID": true, - "CAT_PRD_ENTT_INT_ENTT_ID_CAT_PRD_ENTT_ENTT_ID": true, - "CATALOG_PRODUCT_ENTITY_INT_STORE_ID_STORE_STORE_ID": true, - "CATALOG_PRODUCT_ENTITY_INT_ENTITY_ID_ATTRIBUTE_ID_STORE_ID": true - } - }, - "catalog_product_entity_text": { - "column": { - "value_id": true, - "attribute_id": true, - "store_id": true, - "entity_id": true, - "value": true - }, - "index": { - "CATALOG_PRODUCT_ENTITY_TEXT_ATTRIBUTE_ID": true, - "CATALOG_PRODUCT_ENTITY_TEXT_STORE_ID": true - }, - "constraint": { - "PRIMARY": true, - "CAT_PRD_ENTT_TEXT_ATTR_ID_EAV_ATTR_ATTR_ID": true, - "CAT_PRD_ENTT_TEXT_ENTT_ID_CAT_PRD_ENTT_ENTT_ID": true, - "CATALOG_PRODUCT_ENTITY_TEXT_STORE_ID_STORE_STORE_ID": true, - "CATALOG_PRODUCT_ENTITY_TEXT_ENTITY_ID_ATTRIBUTE_ID_STORE_ID": true - } - }, - "catalog_product_entity_varchar": { - "column": { - "value_id": true, - "attribute_id": true, - "store_id": true, - "entity_id": true, - "value": true - }, - "index": { - "CATALOG_PRODUCT_ENTITY_VARCHAR_ATTRIBUTE_ID": true, - "CATALOG_PRODUCT_ENTITY_VARCHAR_STORE_ID": true - }, - "constraint": { - "PRIMARY": true, - "CAT_PRD_ENTT_VCHR_ATTR_ID_EAV_ATTR_ATTR_ID": true, - "CAT_PRD_ENTT_VCHR_ENTT_ID_CAT_PRD_ENTT_ENTT_ID": true, - "CATALOG_PRODUCT_ENTITY_VARCHAR_STORE_ID_STORE_STORE_ID": true, - "CATALOG_PRODUCT_ENTITY_VARCHAR_ENTITY_ID_ATTRIBUTE_ID_STORE_ID": true - } - }, - "catalog_product_entity_gallery": { - "column": { - "value_id": true, - "attribute_id": true, - "store_id": true, - "entity_id": true, - "position": true, - "value": true - }, - "index": { - "CATALOG_PRODUCT_ENTITY_GALLERY_ENTITY_ID": true, - "CATALOG_PRODUCT_ENTITY_GALLERY_ATTRIBUTE_ID": true, - "CATALOG_PRODUCT_ENTITY_GALLERY_STORE_ID": true - }, - "constraint": { - "PRIMARY": true, - "CAT_PRD_ENTT_GLR_ATTR_ID_EAV_ATTR_ATTR_ID": true, - "CAT_PRD_ENTT_GLR_ENTT_ID_CAT_PRD_ENTT_ENTT_ID": true, - "CATALOG_PRODUCT_ENTITY_GALLERY_STORE_ID_STORE_STORE_ID": true, - "CATALOG_PRODUCT_ENTITY_GALLERY_ENTITY_ID_ATTRIBUTE_ID_STORE_ID": true - } - }, - "catalog_category_entity": { - "column": { - "entity_id": true, - "attribute_set_id": true, - "parent_id": true, - "created_at": true, - "updated_at": true, - "path": true, - "position": true, - "level": true, - "children_count": true - }, - "index": { - "CATALOG_CATEGORY_ENTITY_LEVEL": true, - "CATALOG_CATEGORY_ENTITY_PATH": true - }, - "constraint": { - "PRIMARY": true - } - }, - "catalog_category_entity_datetime": { - "column": { - "value_id": true, - "attribute_id": true, - "store_id": true, - "entity_id": true, - "value": true - }, - "index": { - "CATALOG_CATEGORY_ENTITY_DATETIME_ENTITY_ID": true, - "CATALOG_CATEGORY_ENTITY_DATETIME_ATTRIBUTE_ID": true, - "CATALOG_CATEGORY_ENTITY_DATETIME_STORE_ID": true - }, - "constraint": { - "PRIMARY": true, - "CAT_CTGR_ENTT_DTIME_ATTR_ID_EAV_ATTR_ATTR_ID": true, - "CAT_CTGR_ENTT_DTIME_ENTT_ID_CAT_CTGR_ENTT_ENTT_ID": true, - "CATALOG_CATEGORY_ENTITY_DATETIME_STORE_ID_STORE_STORE_ID": true, - "CATALOG_CATEGORY_ENTITY_DATETIME_ENTITY_ID_ATTRIBUTE_ID_STORE_ID": true - } - }, - "catalog_category_entity_decimal": { - "column": { - "value_id": true, - "attribute_id": true, - "store_id": true, - "entity_id": true, - "value": true - }, - "index": { - "CATALOG_CATEGORY_ENTITY_DECIMAL_ENTITY_ID": true, - "CATALOG_CATEGORY_ENTITY_DECIMAL_ATTRIBUTE_ID": true, - "CATALOG_CATEGORY_ENTITY_DECIMAL_STORE_ID": true - }, - "constraint": { - "PRIMARY": true, - "CAT_CTGR_ENTT_DEC_ATTR_ID_EAV_ATTR_ATTR_ID": true, - "CAT_CTGR_ENTT_DEC_ENTT_ID_CAT_CTGR_ENTT_ENTT_ID": true, - "CATALOG_CATEGORY_ENTITY_DECIMAL_STORE_ID_STORE_STORE_ID": true, - "CATALOG_CATEGORY_ENTITY_DECIMAL_ENTITY_ID_ATTRIBUTE_ID_STORE_ID": true - } - }, - "catalog_category_entity_int": { - "column": { - "value_id": true, - "attribute_id": true, - "store_id": true, - "entity_id": true, - "value": true - }, - "index": { - "CATALOG_CATEGORY_ENTITY_INT_ENTITY_ID": true, - "CATALOG_CATEGORY_ENTITY_INT_ATTRIBUTE_ID": true, - "CATALOG_CATEGORY_ENTITY_INT_STORE_ID": true - }, - "constraint": { - "PRIMARY": true, - "CAT_CTGR_ENTT_INT_ATTR_ID_EAV_ATTR_ATTR_ID": true, - "CAT_CTGR_ENTT_INT_ENTT_ID_CAT_CTGR_ENTT_ENTT_ID": true, - "CATALOG_CATEGORY_ENTITY_INT_STORE_ID_STORE_STORE_ID": true, - "CATALOG_CATEGORY_ENTITY_INT_ENTITY_ID_ATTRIBUTE_ID_STORE_ID": true - } - }, - "catalog_category_entity_text": { - "column": { - "value_id": true, - "attribute_id": true, - "store_id": true, - "entity_id": true, - "value": true - }, - "index": { - "CATALOG_CATEGORY_ENTITY_TEXT_ENTITY_ID": true, - "CATALOG_CATEGORY_ENTITY_TEXT_ATTRIBUTE_ID": true, - "CATALOG_CATEGORY_ENTITY_TEXT_STORE_ID": true - }, - "constraint": { - "PRIMARY": true, - "CAT_CTGR_ENTT_TEXT_ATTR_ID_EAV_ATTR_ATTR_ID": true, - "CAT_CTGR_ENTT_TEXT_ENTT_ID_CAT_CTGR_ENTT_ENTT_ID": true, - "CATALOG_CATEGORY_ENTITY_TEXT_STORE_ID_STORE_STORE_ID": true, - "CATALOG_CATEGORY_ENTITY_TEXT_ENTITY_ID_ATTRIBUTE_ID_STORE_ID": true - } - }, - "catalog_category_entity_varchar": { - "column": { - "value_id": true, - "attribute_id": true, - "store_id": true, - "entity_id": true, - "value": true - }, - "index": { - "CATALOG_CATEGORY_ENTITY_VARCHAR_ENTITY_ID": true, - "CATALOG_CATEGORY_ENTITY_VARCHAR_ATTRIBUTE_ID": true, - "CATALOG_CATEGORY_ENTITY_VARCHAR_STORE_ID": true - }, - "constraint": { - "PRIMARY": true, - "CAT_CTGR_ENTT_VCHR_ATTR_ID_EAV_ATTR_ATTR_ID": true, - "CAT_CTGR_ENTT_VCHR_ENTT_ID_CAT_CTGR_ENTT_ENTT_ID": true, - "CATALOG_CATEGORY_ENTITY_VARCHAR_STORE_ID_STORE_STORE_ID": true, - "CATALOG_CATEGORY_ENTITY_VARCHAR_ENTITY_ID_ATTRIBUTE_ID_STORE_ID": true - } - }, - "catalog_category_product": { - "column": { - "entity_id": true, - "category_id": true, - "product_id": true, - "position": true - }, - "index": { - "CATALOG_CATEGORY_PRODUCT_PRODUCT_ID": true - }, - "constraint": { - "PRIMARY": true, - "CAT_CTGR_PRD_PRD_ID_CAT_PRD_ENTT_ENTT_ID": true, - "CAT_CTGR_PRD_CTGR_ID_CAT_CTGR_ENTT_ENTT_ID": true, - "CATALOG_CATEGORY_PRODUCT_CATEGORY_ID_PRODUCT_ID": true, - "CAT_CTGR_PRD_CTGR_ID_SEQUENCE_CAT_CTGR_SEQUENCE_VAL": true - } - }, - "catalog_category_product_index": { - "column": { - "category_id": true, - "product_id": true, - "position": true, - "is_parent": true, - "store_id": true, - "visibility": true - }, - "index": { - "CAT_CTGR_PRD_IDX_PRD_ID_STORE_ID_CTGR_ID_VISIBILITY": true, - "CAT_CTGR_PRD_IDX_STORE_ID_CTGR_ID_VISIBILITY_IS_PARENT_POSITION": true - }, - "constraint": { - "PRIMARY": true - } - }, - "catalog_compare_item": { - "column": { - "catalog_compare_item_id": true, - "visitor_id": true, - "customer_id": true, - "product_id": true, - "store_id": true - }, - "index": { - "CATALOG_COMPARE_ITEM_PRODUCT_ID": true, - "CATALOG_COMPARE_ITEM_VISITOR_ID_PRODUCT_ID": true, - "CATALOG_COMPARE_ITEM_CUSTOMER_ID_PRODUCT_ID": true, - "CATALOG_COMPARE_ITEM_STORE_ID": true - }, - "constraint": { - "PRIMARY": true, - "CATALOG_COMPARE_ITEM_CUSTOMER_ID_CUSTOMER_ENTITY_ENTITY_ID": true, - "CATALOG_COMPARE_ITEM_PRODUCT_ID_CATALOG_PRODUCT_ENTITY_ENTITY_ID": true, - "CATALOG_COMPARE_ITEM_STORE_ID_STORE_STORE_ID": true - } - }, - "catalog_product_website": { - "column": { - "product_id": true, - "website_id": true - }, - "index": { - "CATALOG_PRODUCT_WEBSITE_WEBSITE_ID": true - }, - "constraint": { - "PRIMARY": true, - "CATALOG_PRODUCT_WEBSITE_WEBSITE_ID_STORE_WEBSITE_WEBSITE_ID": true, - "CAT_PRD_WS_PRD_ID_CAT_PRD_ENTT_ENTT_ID": true - } - }, - "catalog_product_link_type": { - "column": { - "link_type_id": true, - "code": true - }, - "constraint": { - "PRIMARY": true - } - }, - "catalog_product_link": { - "column": { - "link_id": true, - "product_id": true, - "linked_product_id": true, - "link_type_id": true - }, - "index": { - "CATALOG_PRODUCT_LINK_PRODUCT_ID": true, - "CATALOG_PRODUCT_LINK_LINKED_PRODUCT_ID": true - }, - "constraint": { - "PRIMARY": true, - "CAT_PRD_LNK_LNKED_PRD_ID_CAT_PRD_ENTT_ENTT_ID": true, - "CATALOG_PRODUCT_LINK_PRODUCT_ID_CATALOG_PRODUCT_ENTITY_ENTITY_ID": true, - "CAT_PRD_LNK_LNK_TYPE_ID_CAT_PRD_LNK_TYPE_LNK_TYPE_ID": true, - "CATALOG_PRODUCT_LINK_LINK_TYPE_ID_PRODUCT_ID_LINKED_PRODUCT_ID": true - } - }, - "catalog_product_link_attribute": { - "column": { - "product_link_attribute_id": true, - "link_type_id": true, - "product_link_attribute_code": true, - "data_type": true - }, - "index": { - "CATALOG_PRODUCT_LINK_ATTRIBUTE_LINK_TYPE_ID": true - }, - "constraint": { - "PRIMARY": true, - "CAT_PRD_LNK_ATTR_LNK_TYPE_ID_CAT_PRD_LNK_TYPE_LNK_TYPE_ID": true - } - }, - "catalog_product_link_attribute_decimal": { - "column": { - "value_id": true, - "product_link_attribute_id": true, - "link_id": true, - "value": true - }, - "index": { - "CATALOG_PRODUCT_LINK_ATTRIBUTE_DECIMAL_LINK_ID": true - }, - "constraint": { - "PRIMARY": true, - "CAT_PRD_LNK_ATTR_DEC_LNK_ID_CAT_PRD_LNK_LNK_ID": true, - "FK_AB2EFA9A14F7BCF1D5400056203D14B6": true, - "CAT_PRD_LNK_ATTR_DEC_PRD_LNK_ATTR_ID_LNK_ID": true - } - }, - "catalog_product_link_attribute_int": { - "column": { - "value_id": true, - "product_link_attribute_id": true, - "link_id": true, - "value": true - }, - "index": { - "CATALOG_PRODUCT_LINK_ATTRIBUTE_INT_LINK_ID": true - }, - "constraint": { - "PRIMARY": true, - "CAT_PRD_LNK_ATTR_INT_LNK_ID_CAT_PRD_LNK_LNK_ID": true, - "FK_D6D878F8BA2A4282F8DDED7E6E3DE35C": true, - "CAT_PRD_LNK_ATTR_INT_PRD_LNK_ATTR_ID_LNK_ID": true - } - }, - "catalog_product_link_attribute_varchar": { - "column": { - "value_id": true, - "product_link_attribute_id": true, - "link_id": true, - "value": true - }, - "index": { - "CATALOG_PRODUCT_LINK_ATTRIBUTE_VARCHAR_LINK_ID": true - }, - "constraint": { - "PRIMARY": true, - "CAT_PRD_LNK_ATTR_VCHR_LNK_ID_CAT_PRD_LNK_LNK_ID": true, - "FK_DEE9C4DA61CFCC01DFCF50F0D79CEA51": true, - "CAT_PRD_LNK_ATTR_VCHR_PRD_LNK_ATTR_ID_LNK_ID": true - } - }, - "catalog_product_entity_tier_price": { - "column": { - "value_id": true, - "entity_id": true, - "all_groups": true, - "customer_group_id": true, - "qty": true, - "value": true, - "website_id": true, - "percentage_value": true - }, - "index": { - "CATALOG_PRODUCT_ENTITY_TIER_PRICE_CUSTOMER_GROUP_ID": true, - "CATALOG_PRODUCT_ENTITY_TIER_PRICE_WEBSITE_ID": true - }, - "constraint": { - "PRIMARY": true, - "CAT_PRD_ENTT_TIER_PRICE_CSTR_GROUP_ID_CSTR_GROUP_CSTR_GROUP_ID": true, - "CAT_PRD_ENTT_TIER_PRICE_ENTT_ID_CAT_PRD_ENTT_ENTT_ID": true, - "CAT_PRD_ENTT_TIER_PRICE_WS_ID_STORE_WS_WS_ID": true, - "UNQ_E8AB433B9ACB00343ABB312AD2FAB087": true - } - }, - "catalog_product_entity_media_gallery": { - "column": { - "value_id": true, - "attribute_id": true, - "entity_id": true, - "value": true, - "media_type": true, - "disabled": true - }, - "index": { - "CATALOG_PRODUCT_ENTITY_MEDIA_GALLERY_ATTRIBUTE_ID": true, - "CATALOG_PRODUCT_ENTITY_MEDIA_GALLERY_ENTITY_ID": true - }, - "constraint": { - "PRIMARY": true, - "CAT_PRD_ENTT_MDA_GLR_ATTR_ID_EAV_ATTR_ATTR_ID": true - } - }, - "catalog_product_entity_media_gallery_value": { - "column": { - "value_id": true, - "store_id": true, - "entity_id": true, - "label": true, - "position": true, - "disabled": true, - "record_id": true - }, - "index": { - "CATALOG_PRODUCT_ENTITY_MEDIA_GALLERY_VALUE_STORE_ID": true, - "CATALOG_PRODUCT_ENTITY_MEDIA_GALLERY_VALUE_ENTITY_ID": true, - "CATALOG_PRODUCT_ENTITY_MEDIA_GALLERY_VALUE_VALUE_ID": true - }, - "constraint": { - "PRIMARY": true, - "CAT_PRD_ENTT_MDA_GLR_VAL_VAL_ID_CAT_PRD_ENTT_MDA_GLR_VAL_ID": true, - "CAT_PRD_ENTT_MDA_GLR_VAL_STORE_ID_STORE_STORE_ID": true, - "CAT_PRD_ENTT_MDA_GLR_VAL_ENTT_ID_CAT_PRD_ENTT_ENTT_ID": true - } - }, - "catalog_product_option": { - "column": { - "option_id": true, - "product_id": true, - "type": true, - "is_require": true, - "sku": true, - "max_characters": true, - "file_extension": true, - "image_size_x": true, - "image_size_y": true, - "sort_order": true - }, - "index": { - "CATALOG_PRODUCT_OPTION_PRODUCT_ID": true - }, - "constraint": { - "PRIMARY": true, - "CAT_PRD_OPT_PRD_ID_CAT_PRD_ENTT_ENTT_ID": true - } - }, - "catalog_product_option_price": { - "column": { - "option_price_id": true, - "option_id": true, - "store_id": true, - "price": true, - "price_type": true - }, - "index": { - "CATALOG_PRODUCT_OPTION_PRICE_STORE_ID": true - }, - "constraint": { - "PRIMARY": true, - "CAT_PRD_OPT_PRICE_OPT_ID_CAT_PRD_OPT_OPT_ID": true, - "CATALOG_PRODUCT_OPTION_PRICE_STORE_ID_STORE_STORE_ID": true, - "CATALOG_PRODUCT_OPTION_PRICE_OPTION_ID_STORE_ID": true - } - }, - "catalog_product_option_title": { - "column": { - "option_title_id": true, - "option_id": true, - "store_id": true, - "title": true - }, - "index": { - "CATALOG_PRODUCT_OPTION_TITLE_STORE_ID": true - }, - "constraint": { - "PRIMARY": true, - "CAT_PRD_OPT_TTL_OPT_ID_CAT_PRD_OPT_OPT_ID": true, - "CATALOG_PRODUCT_OPTION_TITLE_STORE_ID_STORE_STORE_ID": true, - "CATALOG_PRODUCT_OPTION_TITLE_OPTION_ID_STORE_ID": true - } - }, - "catalog_product_option_type_value": { - "column": { - "option_type_id": true, - "option_id": true, - "sku": true, - "sort_order": true - }, - "index": { - "CATALOG_PRODUCT_OPTION_TYPE_VALUE_OPTION_ID": true - }, - "constraint": { - "PRIMARY": true, - "CAT_PRD_OPT_TYPE_VAL_OPT_ID_CAT_PRD_OPT_OPT_ID": true - } - }, - "catalog_product_option_type_price": { - "column": { - "option_type_price_id": true, - "option_type_id": true, - "store_id": true, - "price": true, - "price_type": true - }, - "index": { - "CATALOG_PRODUCT_OPTION_TYPE_PRICE_STORE_ID": true - }, - "constraint": { - "PRIMARY": true, - "FK_B523E3378E8602F376CC415825576B7F": true, - "CATALOG_PRODUCT_OPTION_TYPE_PRICE_STORE_ID_STORE_STORE_ID": true, - "CATALOG_PRODUCT_OPTION_TYPE_PRICE_OPTION_TYPE_ID_STORE_ID": true - } - }, - "catalog_product_option_type_title": { - "column": { - "option_type_title_id": true, - "option_type_id": true, - "store_id": true, - "title": true - }, - "index": { - "CATALOG_PRODUCT_OPTION_TYPE_TITLE_STORE_ID": true - }, - "constraint": { - "PRIMARY": true, - "FK_C085B9CF2C2A302E8043FDEA1937D6A2": true, - "CATALOG_PRODUCT_OPTION_TYPE_TITLE_STORE_ID_STORE_STORE_ID": true, - "CATALOG_PRODUCT_OPTION_TYPE_TITLE_OPTION_TYPE_ID_STORE_ID": true - } - }, - "catalog_eav_attribute": { - "column": { - "attribute_id": true, - "frontend_input_renderer": true, - "is_global": true, - "is_visible": true, - "is_searchable": true, - "is_filterable": true, - "is_comparable": true, - "is_visible_on_front": true, - "is_html_allowed_on_front": true, - "is_used_for_price_rules": true, - "is_filterable_in_search": true, - "used_in_product_listing": true, - "used_for_sort_by": true, - "apply_to": true, - "is_visible_in_advanced_search": true, - "position": true, - "is_wysiwyg_enabled": true, - "is_used_for_promo_rules": true, - "is_required_in_admin_store": true, - "is_used_in_grid": true, - "is_visible_in_grid": true, - "is_filterable_in_grid": true - }, - "index": { - "CATALOG_EAV_ATTRIBUTE_USED_FOR_SORT_BY": true, - "CATALOG_EAV_ATTRIBUTE_USED_IN_PRODUCT_LISTING": true - }, - "constraint": { - "PRIMARY": true, - "CATALOG_EAV_ATTRIBUTE_ATTRIBUTE_ID_EAV_ATTRIBUTE_ATTRIBUTE_ID": true - } - }, - "catalog_product_relation": { - "column": { - "parent_id": true, - "child_id": true - }, - "index": { - "CATALOG_PRODUCT_RELATION_CHILD_ID": true - }, - "constraint": { - "PRIMARY": true, - "CAT_PRD_RELATION_CHILD_ID_CAT_PRD_ENTT_ENTT_ID": true, - "CAT_PRD_RELATION_PARENT_ID_CAT_PRD_ENTT_ENTT_ID": true - } - }, - "catalog_product_index_eav": { - "column": { - "entity_id": true, - "attribute_id": true, - "store_id": true, - "value": true, - "source_id": true - }, - "index": { - "CATALOG_PRODUCT_INDEX_EAV_ATTRIBUTE_ID": true, - "CATALOG_PRODUCT_INDEX_EAV_STORE_ID": true, - "CATALOG_PRODUCT_INDEX_EAV_VALUE": true - }, - "constraint": { - "PRIMARY": true, - "CAT_PRD_IDX_EAV_ENTT_ID_ATTR_ID_STORE_ID_VAL_SOURCE_ID": true - } - }, - "catalog_product_index_eav_decimal": { - "column": { - "entity_id": true, - "attribute_id": true, - "store_id": true, - "value": true, - "source_id": true - }, - "index": { - "CATALOG_PRODUCT_INDEX_EAV_DECIMAL_ATTRIBUTE_ID": true, - "CATALOG_PRODUCT_INDEX_EAV_DECIMAL_STORE_ID": true, - "CATALOG_PRODUCT_INDEX_EAV_DECIMAL_VALUE": true - }, - "constraint": { - "PRIMARY": true, - "CAT_PRD_IDX_EAV_DEC_ENTT_ID_ATTR_ID_STORE_ID_VAL_SOURCE_ID": true - } - }, - "catalog_product_index_price": { - "column": { - "entity_id": true, - "customer_group_id": true, - "website_id": true, - "tax_class_id": true, - "price": true, - "final_price": true, - "min_price": true, - "max_price": true, - "tier_price": true - }, - "index": { - "CATALOG_PRODUCT_INDEX_PRICE_CUSTOMER_GROUP_ID": true, - "CATALOG_PRODUCT_INDEX_PRICE_MIN_PRICE": true, - "CAT_PRD_IDX_PRICE_WS_ID_CSTR_GROUP_ID_MIN_PRICE": true - }, - "constraint": { - "PRIMARY": true, - "CAT_PRD_IDX_PRICE_CSTR_GROUP_ID_CSTR_GROUP_CSTR_GROUP_ID": true, - "CAT_PRD_IDX_PRICE_ENTT_ID_CAT_PRD_ENTT_ENTT_ID": true, - "CATALOG_PRODUCT_INDEX_PRICE_WEBSITE_ID_STORE_WEBSITE_WEBSITE_ID": true - } - }, - "catalog_product_index_tier_price": { - "column": { - "entity_id": true, - "customer_group_id": true, - "website_id": true, - "min_price": true - }, - "index": { - "CATALOG_PRODUCT_INDEX_TIER_PRICE_CUSTOMER_GROUP_ID": true, - "CATALOG_PRODUCT_INDEX_TIER_PRICE_WEBSITE_ID": true - }, - "constraint": { - "PRIMARY": true, - "CAT_PRD_IDX_TIER_PRICE_CSTR_GROUP_ID_CSTR_GROUP_CSTR_GROUP_ID": true, - "CAT_PRD_IDX_TIER_PRICE_ENTT_ID_CAT_PRD_ENTT_ENTT_ID": true, - "CAT_PRD_IDX_TIER_PRICE_WS_ID_STORE_WS_WS_ID": true - } - }, - "catalog_product_index_website": { - "column": { - "website_id": true, - "website_date": true, - "rate": true - }, - "index": { - "CATALOG_PRODUCT_INDEX_WEBSITE_WEBSITE_DATE": true - }, - "constraint": { - "PRIMARY": true, - "CAT_PRD_IDX_WS_WS_ID_STORE_WS_WS_ID": true - } - }, - "catalog_product_index_price_cfg_opt_agr_idx": { - "column": { - "parent_id": true, - "child_id": true, - "customer_group_id": true, - "website_id": true, - "price": true, - "tier_price": true - }, - "constraint": { - "PRIMARY": true - } - }, - "catalog_product_index_price_cfg_opt_agr_tmp": { - "column": { - "parent_id": true, - "child_id": true, - "customer_group_id": true, - "website_id": true, - "price": true, - "tier_price": true - }, - "constraint": { - "PRIMARY": true - } - }, - "catalog_product_index_price_cfg_opt_idx": { - "column": { - "entity_id": true, - "customer_group_id": true, - "website_id": true, - "min_price": true, - "max_price": true, - "tier_price": true - }, - "constraint": { - "PRIMARY": true - } - }, - "catalog_product_index_price_cfg_opt_tmp": { - "column": { - "entity_id": true, - "customer_group_id": true, - "website_id": true, - "min_price": true, - "max_price": true, - "tier_price": true - }, - "constraint": { - "PRIMARY": true - } - }, - "catalog_product_index_price_final_idx": { - "column": { - "entity_id": true, - "customer_group_id": true, - "website_id": true, - "tax_class_id": true, - "orig_price": true, - "price": true, - "min_price": true, - "max_price": true, - "tier_price": true, - "base_tier": true - }, - "constraint": { - "PRIMARY": true - } - }, - "catalog_product_index_price_final_tmp": { - "column": { - "entity_id": true, - "customer_group_id": true, - "website_id": true, - "tax_class_id": true, - "orig_price": true, - "price": true, - "min_price": true, - "max_price": true, - "tier_price": true, - "base_tier": true - }, - "constraint": { - "PRIMARY": true - } - }, - "catalog_product_index_price_opt_idx": { - "column": { - "entity_id": true, - "customer_group_id": true, - "website_id": true, - "min_price": true, - "max_price": true, - "tier_price": true - }, - "constraint": { - "PRIMARY": true - } - }, - "catalog_product_index_price_opt_tmp": { - "column": { - "entity_id": true, - "customer_group_id": true, - "website_id": true, - "min_price": true, - "max_price": true, - "tier_price": true - }, - "constraint": { - "PRIMARY": true - } - }, - "catalog_product_index_price_opt_agr_idx": { - "column": { - "entity_id": true, - "customer_group_id": true, - "website_id": true, - "option_id": true, - "min_price": true, - "max_price": true, - "tier_price": true - }, - "constraint": { - "PRIMARY": true - } - }, - "catalog_product_index_price_opt_agr_tmp": { - "column": { - "entity_id": true, - "customer_group_id": true, - "website_id": true, - "option_id": true, - "min_price": true, - "max_price": true, - "tier_price": true - }, - "constraint": { - "PRIMARY": true - } - }, - "catalog_product_index_eav_idx": { - "column": { - "entity_id": true, - "attribute_id": true, - "store_id": true, - "value": true, - "source_id": true - }, - "index": { - "CATALOG_PRODUCT_INDEX_EAV_IDX_ATTRIBUTE_ID": true, - "CATALOG_PRODUCT_INDEX_EAV_IDX_STORE_ID": true, - "CATALOG_PRODUCT_INDEX_EAV_IDX_VALUE": true - }, - "constraint": { - "PRIMARY": true, - "CAT_PRD_IDX_EAV_IDX_ENTT_ID_ATTR_ID_STORE_ID_VAL_SOURCE_ID": true - } - }, - "catalog_product_index_eav_tmp": { - "column": { - "entity_id": true, - "attribute_id": true, - "store_id": true, - "value": true, - "source_id": true - }, - "index": { - "CATALOG_PRODUCT_INDEX_EAV_TMP_ATTRIBUTE_ID": true, - "CATALOG_PRODUCT_INDEX_EAV_TMP_STORE_ID": true, - "CATALOG_PRODUCT_INDEX_EAV_TMP_VALUE": true - }, - "constraint": { - "PRIMARY": true, - "CAT_PRD_IDX_EAV_TMP_ENTT_ID_ATTR_ID_STORE_ID_VAL_SOURCE_ID": true - } - }, - "catalog_product_index_eav_decimal_idx": { - "column": { - "entity_id": true, - "attribute_id": true, - "store_id": true, - "value": true, - "source_id": true - }, - "index": { - "CATALOG_PRODUCT_INDEX_EAV_DECIMAL_IDX_ATTRIBUTE_ID": true, - "CATALOG_PRODUCT_INDEX_EAV_DECIMAL_IDX_STORE_ID": true, - "CATALOG_PRODUCT_INDEX_EAV_DECIMAL_IDX_VALUE": true - }, - "constraint": { - "PRIMARY": true, - "CAT_PRD_IDX_EAV_DEC_IDX_ENTT_ID_ATTR_ID_STORE_ID_VAL_SOURCE_ID": true - } - }, - "catalog_product_index_eav_decimal_tmp": { - "column": { - "entity_id": true, - "attribute_id": true, - "store_id": true, - "value": true, - "source_id": true - }, - "index": { - "CATALOG_PRODUCT_INDEX_EAV_DECIMAL_TMP_ATTRIBUTE_ID": true, - "CATALOG_PRODUCT_INDEX_EAV_DECIMAL_TMP_STORE_ID": true, - "CATALOG_PRODUCT_INDEX_EAV_DECIMAL_TMP_VALUE": true - }, - "constraint": { - "PRIMARY": true, - "CAT_PRD_IDX_EAV_DEC_TMP_ENTT_ID_ATTR_ID_STORE_ID_VAL_SOURCE_ID": true - } - }, - "catalog_product_index_price_idx": { - "column": { - "entity_id": true, - "customer_group_id": true, - "website_id": true, - "tax_class_id": true, - "price": true, - "final_price": true, - "min_price": true, - "max_price": true, - "tier_price": true - }, - "index": { - "CATALOG_PRODUCT_INDEX_PRICE_IDX_CUSTOMER_GROUP_ID": true, - "CATALOG_PRODUCT_INDEX_PRICE_IDX_WEBSITE_ID": true, - "CATALOG_PRODUCT_INDEX_PRICE_IDX_MIN_PRICE": true - }, - "constraint": { - "PRIMARY": true - } - }, - "catalog_product_index_price_tmp": { - "column": { - "entity_id": true, - "customer_group_id": true, - "website_id": true, - "tax_class_id": true, - "price": true, - "final_price": true, - "min_price": true, - "max_price": true, - "tier_price": true - }, - "index": { - "CATALOG_PRODUCT_INDEX_PRICE_TMP_CUSTOMER_GROUP_ID": true, - "CATALOG_PRODUCT_INDEX_PRICE_TMP_WEBSITE_ID": true, - "CATALOG_PRODUCT_INDEX_PRICE_TMP_MIN_PRICE": true - }, - "constraint": { - "PRIMARY": true - } - }, - "catalog_category_product_index_tmp": { - "column": { - "category_id": true, - "product_id": true, - "position": true, - "is_parent": true, - "store_id": true, - "visibility": true - }, - "constraint": { - "PRIMARY": true - }, - "index": { - "CAT_CTGR_PRD_IDX_TMP_PRD_ID_CTGR_ID_STORE_ID": true - } - }, - "catalog_product_entity_media_gallery_value_to_entity": { - "column": { - "value_id": true, - "entity_id": true - }, - "constraint": { - "FK_A6C6C8FAA386736921D3A7C4B50B1185": true, - "CAT_PRD_ENTT_MDA_GLR_VAL_TO_ENTT_ENTT_ID_CAT_PRD_ENTT_ENTT_ID": true, - "CAT_PRD_ENTT_MDA_GLR_VAL_TO_ENTT_VAL_ID_ENTT_ID": true - } - }, - "catalog_product_index_eav_replica": { - "column": { - "entity_id": true, - "attribute_id": true, - "store_id": true, - "value": true, - "source_id": true - }, - "index": { - "CATALOG_PRODUCT_INDEX_EAV_REPLICA_ATTRIBUTE_ID": true, - "CATALOG_PRODUCT_INDEX_EAV_REPLICA_STORE_ID": true, - "CATALOG_PRODUCT_INDEX_EAV_REPLICA_VALUE": true, - "CATALOG_PRODUCT_INDEX_EAV_ATTRIBUTE_ID": true, - "CATALOG_PRODUCT_INDEX_EAV_STORE_ID": true, - "CATALOG_PRODUCT_INDEX_EAV_VALUE": true - }, - "constraint": { - "PRIMARY": true - } - }, - "catalog_product_index_eav_decimal_replica": { - "column": { - "entity_id": true, - "attribute_id": true, - "store_id": true, - "value": true, - "source_id": true - }, - "index": { - "CATALOG_PRODUCT_INDEX_EAV_DECIMAL_REPLICA_ATTRIBUTE_ID": true, - "CATALOG_PRODUCT_INDEX_EAV_DECIMAL_REPLICA_STORE_ID": true, - "CATALOG_PRODUCT_INDEX_EAV_DECIMAL_REPLICA_VALUE": true, - "CATALOG_PRODUCT_INDEX_EAV_DECIMAL_ATTRIBUTE_ID": true, - "CATALOG_PRODUCT_INDEX_EAV_DECIMAL_STORE_ID": true, - "CATALOG_PRODUCT_INDEX_EAV_DECIMAL_VALUE": true - }, - "constraint": { - "PRIMARY": true - } - }, - "catalog_product_index_price_replica": { - "column": { - "entity_id": true, - "customer_group_id": true, - "website_id": true, - "tax_class_id": true, - "price": true, - "final_price": true, - "min_price": true, - "max_price": true, - "tier_price": true - }, - "index": { - "CATALOG_PRODUCT_INDEX_PRICE_REPLICA_CUSTOMER_GROUP_ID": true, - "CATALOG_PRODUCT_INDEX_PRICE_REPLICA_MIN_PRICE": true, - "CAT_PRD_IDX_PRICE_REPLICA_WS_ID_CSTR_GROUP_ID_MIN_PRICE": true, - "CATALOG_PRODUCT_INDEX_PRICE_CUSTOMER_GROUP_ID": true, - "CATALOG_PRODUCT_INDEX_PRICE_MIN_PRICE": true, - "CAT_PRD_IDX_PRICE_WS_ID_CSTR_GROUP_ID_MIN_PRICE": true - }, - "constraint": { - "PRIMARY": true - } - }, - "catalog_category_product_index_replica": { - "column": { - "category_id": true, - "product_id": true, - "position": true, - "is_parent": true, - "store_id": true, - "visibility": true - }, - "index": { - "CAT_CTGR_PRD_IDX_REPLICA_PRD_ID_STORE_ID_CTGR_ID_VISIBILITY": true, - "IDX_87EB2E3059853CF89A75B4C55074810B": true, - "CAT_CTGR_PRD_IDX_PRD_ID_STORE_ID_CTGR_ID_VISIBILITY": true, - "CAT_CTGR_PRD_IDX_STORE_ID_CTGR_ID_VISIBILITY_IS_PARENT_POSITION": true - }, - "constraint": { - "PRIMARY": true - } - }, - "catalog_product_frontend_action": { - "column": { - "action_id": true, - "type_id": true, - "visitor_id": true, - "customer_id": true, - "product_id": true, - "added_at": true - }, - "constraint": { - "PRIMARY": true, - "CAT_PRD_FRONTEND_ACTION_CSTR_ID_CSTR_ENTT_ENTT_ID": true, - "CAT_PRD_FRONTEND_ACTION_PRD_ID_CAT_PRD_ENTT_ENTT_ID": true, - "CATALOG_PRODUCT_FRONTEND_ACTION_VISITOR_ID_PRODUCT_ID_TYPE_ID": true, - "CATALOG_PRODUCT_FRONTEND_ACTION_CUSTOMER_ID_PRODUCT_ID_TYPE_ID": true + "catalog_product_entity": { + "column": { + "entity_id": true, + "attribute_set_id": true, + "type_id": true, + "sku": true, + "has_options": true, + "required_options": true, + "created_at": true, + "updated_at": true + }, + "index": { + "CATALOG_PRODUCT_ENTITY_ATTRIBUTE_SET_ID": true, + "CATALOG_PRODUCT_ENTITY_SKU": true + }, + "constraint": { + "PRIMARY": true, + "CAT_PRD_ENTT_ATTR_SET_ID_EAV_ATTR_SET_ATTR_SET_ID": true + } + }, + "catalog_product_entity_datetime": { + "column": { + "value_id": true, + "attribute_id": true, + "store_id": true, + "entity_id": true, + "value": true + }, + "index": { + "CATALOG_PRODUCT_ENTITY_DATETIME_ATTRIBUTE_ID": true, + "CATALOG_PRODUCT_ENTITY_DATETIME_STORE_ID": true + }, + "constraint": { + "PRIMARY": true, + "CAT_PRD_ENTT_DTIME_ATTR_ID_EAV_ATTR_ATTR_ID": true, + "CAT_PRD_ENTT_DTIME_ENTT_ID_CAT_PRD_ENTT_ENTT_ID": true, + "CATALOG_PRODUCT_ENTITY_DATETIME_STORE_ID_STORE_STORE_ID": true, + "CATALOG_PRODUCT_ENTITY_DATETIME_ENTITY_ID_ATTRIBUTE_ID_STORE_ID": true + } + }, + "catalog_product_entity_decimal": { + "column": { + "value_id": true, + "attribute_id": true, + "store_id": true, + "entity_id": true, + "value": true + }, + "index": { + "CATALOG_PRODUCT_ENTITY_DECIMAL_STORE_ID": true, + "CATALOG_PRODUCT_ENTITY_DECIMAL_ATTRIBUTE_ID": true + }, + "constraint": { + "PRIMARY": true, + "CAT_PRD_ENTT_DEC_ATTR_ID_EAV_ATTR_ATTR_ID": true, + "CAT_PRD_ENTT_DEC_ENTT_ID_CAT_PRD_ENTT_ENTT_ID": true, + "CATALOG_PRODUCT_ENTITY_DECIMAL_STORE_ID_STORE_STORE_ID": true, + "CATALOG_PRODUCT_ENTITY_DECIMAL_ENTITY_ID_ATTRIBUTE_ID_STORE_ID": true + } + }, + "catalog_product_entity_int": { + "column": { + "value_id": true, + "attribute_id": true, + "store_id": true, + "entity_id": true, + "value": true + }, + "index": { + "CATALOG_PRODUCT_ENTITY_INT_ATTRIBUTE_ID": true, + "CATALOG_PRODUCT_ENTITY_INT_STORE_ID": true + }, + "constraint": { + "PRIMARY": true, + "CAT_PRD_ENTT_INT_ATTR_ID_EAV_ATTR_ATTR_ID": true, + "CAT_PRD_ENTT_INT_ENTT_ID_CAT_PRD_ENTT_ENTT_ID": true, + "CATALOG_PRODUCT_ENTITY_INT_STORE_ID_STORE_STORE_ID": true, + "CATALOG_PRODUCT_ENTITY_INT_ENTITY_ID_ATTRIBUTE_ID_STORE_ID": true + } + }, + "catalog_product_entity_text": { + "column": { + "value_id": true, + "attribute_id": true, + "store_id": true, + "entity_id": true, + "value": true + }, + "index": { + "CATALOG_PRODUCT_ENTITY_TEXT_ATTRIBUTE_ID": true, + "CATALOG_PRODUCT_ENTITY_TEXT_STORE_ID": true + }, + "constraint": { + "PRIMARY": true, + "CAT_PRD_ENTT_TEXT_ATTR_ID_EAV_ATTR_ATTR_ID": true, + "CAT_PRD_ENTT_TEXT_ENTT_ID_CAT_PRD_ENTT_ENTT_ID": true, + "CATALOG_PRODUCT_ENTITY_TEXT_STORE_ID_STORE_STORE_ID": true, + "CATALOG_PRODUCT_ENTITY_TEXT_ENTITY_ID_ATTRIBUTE_ID_STORE_ID": true + } + }, + "catalog_product_entity_varchar": { + "column": { + "value_id": true, + "attribute_id": true, + "store_id": true, + "entity_id": true, + "value": true + }, + "index": { + "CATALOG_PRODUCT_ENTITY_VARCHAR_ATTRIBUTE_ID": true, + "CATALOG_PRODUCT_ENTITY_VARCHAR_STORE_ID": true + }, + "constraint": { + "PRIMARY": true, + "CAT_PRD_ENTT_VCHR_ATTR_ID_EAV_ATTR_ATTR_ID": true, + "CAT_PRD_ENTT_VCHR_ENTT_ID_CAT_PRD_ENTT_ENTT_ID": true, + "CATALOG_PRODUCT_ENTITY_VARCHAR_STORE_ID_STORE_STORE_ID": true, + "CATALOG_PRODUCT_ENTITY_VARCHAR_ENTITY_ID_ATTRIBUTE_ID_STORE_ID": true + } + }, + "catalog_product_entity_gallery": { + "column": { + "value_id": true, + "attribute_id": true, + "store_id": true, + "entity_id": true, + "position": true, + "value": true + }, + "index": { + "CATALOG_PRODUCT_ENTITY_GALLERY_ENTITY_ID": true, + "CATALOG_PRODUCT_ENTITY_GALLERY_ATTRIBUTE_ID": true, + "CATALOG_PRODUCT_ENTITY_GALLERY_STORE_ID": true + }, + "constraint": { + "PRIMARY": true, + "CAT_PRD_ENTT_GLR_ATTR_ID_EAV_ATTR_ATTR_ID": true, + "CAT_PRD_ENTT_GLR_ENTT_ID_CAT_PRD_ENTT_ENTT_ID": true, + "CATALOG_PRODUCT_ENTITY_GALLERY_STORE_ID_STORE_STORE_ID": true, + "CATALOG_PRODUCT_ENTITY_GALLERY_ENTITY_ID_ATTRIBUTE_ID_STORE_ID": true + } + }, + "catalog_category_entity": { + "column": { + "entity_id": true, + "attribute_set_id": true, + "parent_id": true, + "created_at": true, + "updated_at": true, + "path": true, + "position": true, + "level": true, + "children_count": true + }, + "index": { + "CATALOG_CATEGORY_ENTITY_LEVEL": true, + "CATALOG_CATEGORY_ENTITY_PATH": true + }, + "constraint": { + "PRIMARY": true + } + }, + "catalog_category_entity_datetime": { + "column": { + "value_id": true, + "attribute_id": true, + "store_id": true, + "entity_id": true, + "value": true + }, + "index": { + "CATALOG_CATEGORY_ENTITY_DATETIME_ENTITY_ID": true, + "CATALOG_CATEGORY_ENTITY_DATETIME_ATTRIBUTE_ID": true, + "CATALOG_CATEGORY_ENTITY_DATETIME_STORE_ID": true + }, + "constraint": { + "PRIMARY": true, + "CAT_CTGR_ENTT_DTIME_ATTR_ID_EAV_ATTR_ATTR_ID": true, + "CAT_CTGR_ENTT_DTIME_ENTT_ID_CAT_CTGR_ENTT_ENTT_ID": true, + "CATALOG_CATEGORY_ENTITY_DATETIME_STORE_ID_STORE_STORE_ID": true, + "CATALOG_CATEGORY_ENTITY_DATETIME_ENTITY_ID_ATTRIBUTE_ID_STORE_ID": true + } + }, + "catalog_category_entity_decimal": { + "column": { + "value_id": true, + "attribute_id": true, + "store_id": true, + "entity_id": true, + "value": true + }, + "index": { + "CATALOG_CATEGORY_ENTITY_DECIMAL_ENTITY_ID": true, + "CATALOG_CATEGORY_ENTITY_DECIMAL_ATTRIBUTE_ID": true, + "CATALOG_CATEGORY_ENTITY_DECIMAL_STORE_ID": true + }, + "constraint": { + "PRIMARY": true, + "CAT_CTGR_ENTT_DEC_ATTR_ID_EAV_ATTR_ATTR_ID": true, + "CAT_CTGR_ENTT_DEC_ENTT_ID_CAT_CTGR_ENTT_ENTT_ID": true, + "CATALOG_CATEGORY_ENTITY_DECIMAL_STORE_ID_STORE_STORE_ID": true, + "CATALOG_CATEGORY_ENTITY_DECIMAL_ENTITY_ID_ATTRIBUTE_ID_STORE_ID": true + } + }, + "catalog_category_entity_int": { + "column": { + "value_id": true, + "attribute_id": true, + "store_id": true, + "entity_id": true, + "value": true + }, + "index": { + "CATALOG_CATEGORY_ENTITY_INT_ENTITY_ID": true, + "CATALOG_CATEGORY_ENTITY_INT_ATTRIBUTE_ID": true, + "CATALOG_CATEGORY_ENTITY_INT_STORE_ID": true + }, + "constraint": { + "PRIMARY": true, + "CAT_CTGR_ENTT_INT_ATTR_ID_EAV_ATTR_ATTR_ID": true, + "CAT_CTGR_ENTT_INT_ENTT_ID_CAT_CTGR_ENTT_ENTT_ID": true, + "CATALOG_CATEGORY_ENTITY_INT_STORE_ID_STORE_STORE_ID": true, + "CATALOG_CATEGORY_ENTITY_INT_ENTITY_ID_ATTRIBUTE_ID_STORE_ID": true + } + }, + "catalog_category_entity_text": { + "column": { + "value_id": true, + "attribute_id": true, + "store_id": true, + "entity_id": true, + "value": true + }, + "index": { + "CATALOG_CATEGORY_ENTITY_TEXT_ENTITY_ID": true, + "CATALOG_CATEGORY_ENTITY_TEXT_ATTRIBUTE_ID": true, + "CATALOG_CATEGORY_ENTITY_TEXT_STORE_ID": true + }, + "constraint": { + "PRIMARY": true, + "CAT_CTGR_ENTT_TEXT_ATTR_ID_EAV_ATTR_ATTR_ID": true, + "CAT_CTGR_ENTT_TEXT_ENTT_ID_CAT_CTGR_ENTT_ENTT_ID": true, + "CATALOG_CATEGORY_ENTITY_TEXT_STORE_ID_STORE_STORE_ID": true, + "CATALOG_CATEGORY_ENTITY_TEXT_ENTITY_ID_ATTRIBUTE_ID_STORE_ID": true + } + }, + "catalog_category_entity_varchar": { + "column": { + "value_id": true, + "attribute_id": true, + "store_id": true, + "entity_id": true, + "value": true + }, + "index": { + "CATALOG_CATEGORY_ENTITY_VARCHAR_ENTITY_ID": true, + "CATALOG_CATEGORY_ENTITY_VARCHAR_ATTRIBUTE_ID": true, + "CATALOG_CATEGORY_ENTITY_VARCHAR_STORE_ID": true + }, + "constraint": { + "PRIMARY": true, + "CAT_CTGR_ENTT_VCHR_ATTR_ID_EAV_ATTR_ATTR_ID": true, + "CAT_CTGR_ENTT_VCHR_ENTT_ID_CAT_CTGR_ENTT_ENTT_ID": true, + "CATALOG_CATEGORY_ENTITY_VARCHAR_STORE_ID_STORE_STORE_ID": true, + "CATALOG_CATEGORY_ENTITY_VARCHAR_ENTITY_ID_ATTRIBUTE_ID_STORE_ID": true + } + }, + "catalog_category_product": { + "column": { + "entity_id": true, + "category_id": true, + "product_id": true, + "position": true + }, + "index": { + "CATALOG_CATEGORY_PRODUCT_PRODUCT_ID": true + }, + "constraint": { + "PRIMARY": true, + "CAT_CTGR_PRD_PRD_ID_CAT_PRD_ENTT_ENTT_ID": true, + "CAT_CTGR_PRD_CTGR_ID_CAT_CTGR_ENTT_ENTT_ID": true, + "CATALOG_CATEGORY_PRODUCT_CATEGORY_ID_PRODUCT_ID": true, + "CAT_CTGR_PRD_CTGR_ID_SEQUENCE_CAT_CTGR_SEQUENCE_VAL": true + } + }, + "catalog_category_product_index": { + "column": { + "category_id": true, + "product_id": true, + "position": true, + "is_parent": true, + "store_id": true, + "visibility": true + }, + "index": { + "CAT_CTGR_PRD_IDX_PRD_ID_STORE_ID_CTGR_ID_VISIBILITY": true, + "CAT_CTGR_PRD_IDX_STORE_ID_CTGR_ID_VISIBILITY_IS_PARENT_POSITION": true + }, + "constraint": { + "PRIMARY": true + } + }, + "catalog_compare_item": { + "column": { + "catalog_compare_item_id": true, + "visitor_id": true, + "customer_id": true, + "product_id": true, + "store_id": true + }, + "index": { + "CATALOG_COMPARE_ITEM_PRODUCT_ID": true, + "CATALOG_COMPARE_ITEM_VISITOR_ID_PRODUCT_ID": true, + "CATALOG_COMPARE_ITEM_CUSTOMER_ID_PRODUCT_ID": true, + "CATALOG_COMPARE_ITEM_STORE_ID": true + }, + "constraint": { + "PRIMARY": true, + "CATALOG_COMPARE_ITEM_CUSTOMER_ID_CUSTOMER_ENTITY_ENTITY_ID": true, + "CATALOG_COMPARE_ITEM_PRODUCT_ID_CATALOG_PRODUCT_ENTITY_ENTITY_ID": true, + "CATALOG_COMPARE_ITEM_STORE_ID_STORE_STORE_ID": true + } + }, + "catalog_product_website": { + "column": { + "product_id": true, + "website_id": true + }, + "index": { + "CATALOG_PRODUCT_WEBSITE_WEBSITE_ID": true + }, + "constraint": { + "PRIMARY": true, + "CATALOG_PRODUCT_WEBSITE_WEBSITE_ID_STORE_WEBSITE_WEBSITE_ID": true, + "CAT_PRD_WS_PRD_ID_CAT_PRD_ENTT_ENTT_ID": true + } + }, + "catalog_product_link_type": { + "column": { + "link_type_id": true, + "code": true + }, + "constraint": { + "PRIMARY": true + } + }, + "catalog_product_link": { + "column": { + "link_id": true, + "product_id": true, + "linked_product_id": true, + "link_type_id": true + }, + "index": { + "CATALOG_PRODUCT_LINK_PRODUCT_ID": true, + "CATALOG_PRODUCT_LINK_LINKED_PRODUCT_ID": true + }, + "constraint": { + "PRIMARY": true, + "CAT_PRD_LNK_LNKED_PRD_ID_CAT_PRD_ENTT_ENTT_ID": true, + "CATALOG_PRODUCT_LINK_PRODUCT_ID_CATALOG_PRODUCT_ENTITY_ENTITY_ID": true, + "CAT_PRD_LNK_LNK_TYPE_ID_CAT_PRD_LNK_TYPE_LNK_TYPE_ID": true, + "CATALOG_PRODUCT_LINK_LINK_TYPE_ID_PRODUCT_ID_LINKED_PRODUCT_ID": true + } + }, + "catalog_product_link_attribute": { + "column": { + "product_link_attribute_id": true, + "link_type_id": true, + "product_link_attribute_code": true, + "data_type": true + }, + "index": { + "CATALOG_PRODUCT_LINK_ATTRIBUTE_LINK_TYPE_ID": true + }, + "constraint": { + "PRIMARY": true, + "CAT_PRD_LNK_ATTR_LNK_TYPE_ID_CAT_PRD_LNK_TYPE_LNK_TYPE_ID": true + } + }, + "catalog_product_link_attribute_decimal": { + "column": { + "value_id": true, + "product_link_attribute_id": true, + "link_id": true, + "value": true + }, + "index": { + "CATALOG_PRODUCT_LINK_ATTRIBUTE_DECIMAL_LINK_ID": true + }, + "constraint": { + "PRIMARY": true, + "CAT_PRD_LNK_ATTR_DEC_LNK_ID_CAT_PRD_LNK_LNK_ID": true, + "FK_AB2EFA9A14F7BCF1D5400056203D14B6": true, + "CAT_PRD_LNK_ATTR_DEC_PRD_LNK_ATTR_ID_LNK_ID": true + } + }, + "catalog_product_link_attribute_int": { + "column": { + "value_id": true, + "product_link_attribute_id": true, + "link_id": true, + "value": true + }, + "index": { + "CATALOG_PRODUCT_LINK_ATTRIBUTE_INT_LINK_ID": true + }, + "constraint": { + "PRIMARY": true, + "CAT_PRD_LNK_ATTR_INT_LNK_ID_CAT_PRD_LNK_LNK_ID": true, + "FK_D6D878F8BA2A4282F8DDED7E6E3DE35C": true, + "CAT_PRD_LNK_ATTR_INT_PRD_LNK_ATTR_ID_LNK_ID": true + } + }, + "catalog_product_link_attribute_varchar": { + "column": { + "value_id": true, + "product_link_attribute_id": true, + "link_id": true, + "value": true + }, + "index": { + "CATALOG_PRODUCT_LINK_ATTRIBUTE_VARCHAR_LINK_ID": true + }, + "constraint": { + "PRIMARY": true, + "CAT_PRD_LNK_ATTR_VCHR_LNK_ID_CAT_PRD_LNK_LNK_ID": true, + "FK_DEE9C4DA61CFCC01DFCF50F0D79CEA51": true, + "CAT_PRD_LNK_ATTR_VCHR_PRD_LNK_ATTR_ID_LNK_ID": true + } + }, + "catalog_product_entity_tier_price": { + "column": { + "value_id": true, + "entity_id": true, + "all_groups": true, + "customer_group_id": true, + "qty": true, + "value": true, + "website_id": true, + "percentage_value": true + }, + "index": { + "CATALOG_PRODUCT_ENTITY_TIER_PRICE_CUSTOMER_GROUP_ID": true, + "CATALOG_PRODUCT_ENTITY_TIER_PRICE_WEBSITE_ID": true + }, + "constraint": { + "PRIMARY": true, + "CAT_PRD_ENTT_TIER_PRICE_CSTR_GROUP_ID_CSTR_GROUP_CSTR_GROUP_ID": true, + "CAT_PRD_ENTT_TIER_PRICE_ENTT_ID_CAT_PRD_ENTT_ENTT_ID": true, + "CAT_PRD_ENTT_TIER_PRICE_WS_ID_STORE_WS_WS_ID": true, + "UNQ_E8AB433B9ACB00343ABB312AD2FAB087": true + } + }, + "catalog_product_entity_media_gallery": { + "column": { + "value_id": true, + "attribute_id": true, + "entity_id": true, + "value": true, + "media_type": true, + "disabled": true + }, + "index": { + "CATALOG_PRODUCT_ENTITY_MEDIA_GALLERY_ATTRIBUTE_ID": true, + "CATALOG_PRODUCT_ENTITY_MEDIA_GALLERY_ENTITY_ID": true + }, + "constraint": { + "PRIMARY": true, + "CAT_PRD_ENTT_MDA_GLR_ATTR_ID_EAV_ATTR_ATTR_ID": true + } + }, + "catalog_product_entity_media_gallery_value": { + "column": { + "value_id": true, + "store_id": true, + "entity_id": true, + "label": true, + "position": true, + "disabled": true, + "record_id": true + }, + "index": { + "CATALOG_PRODUCT_ENTITY_MEDIA_GALLERY_VALUE_STORE_ID": true, + "CATALOG_PRODUCT_ENTITY_MEDIA_GALLERY_VALUE_ENTITY_ID": true, + "CATALOG_PRODUCT_ENTITY_MEDIA_GALLERY_VALUE_VALUE_ID": true + }, + "constraint": { + "PRIMARY": true, + "CAT_PRD_ENTT_MDA_GLR_VAL_VAL_ID_CAT_PRD_ENTT_MDA_GLR_VAL_ID": true, + "CAT_PRD_ENTT_MDA_GLR_VAL_STORE_ID_STORE_STORE_ID": true, + "CAT_PRD_ENTT_MDA_GLR_VAL_ENTT_ID_CAT_PRD_ENTT_ENTT_ID": true + } + }, + "catalog_product_option": { + "column": { + "option_id": true, + "product_id": true, + "type": true, + "is_require": true, + "sku": true, + "max_characters": true, + "file_extension": true, + "image_size_x": true, + "image_size_y": true, + "sort_order": true + }, + "index": { + "CATALOG_PRODUCT_OPTION_PRODUCT_ID": true + }, + "constraint": { + "PRIMARY": true, + "CAT_PRD_OPT_PRD_ID_CAT_PRD_ENTT_ENTT_ID": true + } + }, + "catalog_product_option_price": { + "column": { + "option_price_id": true, + "option_id": true, + "store_id": true, + "price": true, + "price_type": true + }, + "index": { + "CATALOG_PRODUCT_OPTION_PRICE_STORE_ID": true + }, + "constraint": { + "PRIMARY": true, + "CAT_PRD_OPT_PRICE_OPT_ID_CAT_PRD_OPT_OPT_ID": true, + "CATALOG_PRODUCT_OPTION_PRICE_STORE_ID_STORE_STORE_ID": true, + "CATALOG_PRODUCT_OPTION_PRICE_OPTION_ID_STORE_ID": true + } + }, + "catalog_product_option_title": { + "column": { + "option_title_id": true, + "option_id": true, + "store_id": true, + "title": true + }, + "index": { + "CATALOG_PRODUCT_OPTION_TITLE_STORE_ID": true + }, + "constraint": { + "PRIMARY": true, + "CAT_PRD_OPT_TTL_OPT_ID_CAT_PRD_OPT_OPT_ID": true, + "CATALOG_PRODUCT_OPTION_TITLE_STORE_ID_STORE_STORE_ID": true, + "CATALOG_PRODUCT_OPTION_TITLE_OPTION_ID_STORE_ID": true + } + }, + "catalog_product_option_type_value": { + "column": { + "option_type_id": true, + "option_id": true, + "sku": true, + "sort_order": true + }, + "index": { + "CATALOG_PRODUCT_OPTION_TYPE_VALUE_OPTION_ID": true + }, + "constraint": { + "PRIMARY": true, + "CAT_PRD_OPT_TYPE_VAL_OPT_ID_CAT_PRD_OPT_OPT_ID": true + } + }, + "catalog_product_option_type_price": { + "column": { + "option_type_price_id": true, + "option_type_id": true, + "store_id": true, + "price": true, + "price_type": true + }, + "index": { + "CATALOG_PRODUCT_OPTION_TYPE_PRICE_STORE_ID": true + }, + "constraint": { + "PRIMARY": true, + "FK_B523E3378E8602F376CC415825576B7F": true, + "CATALOG_PRODUCT_OPTION_TYPE_PRICE_STORE_ID_STORE_STORE_ID": true, + "CATALOG_PRODUCT_OPTION_TYPE_PRICE_OPTION_TYPE_ID_STORE_ID": true + } + }, + "catalog_product_option_type_title": { + "column": { + "option_type_title_id": true, + "option_type_id": true, + "store_id": true, + "title": true + }, + "index": { + "CATALOG_PRODUCT_OPTION_TYPE_TITLE_STORE_ID": true + }, + "constraint": { + "PRIMARY": true, + "FK_C085B9CF2C2A302E8043FDEA1937D6A2": true, + "CATALOG_PRODUCT_OPTION_TYPE_TITLE_STORE_ID_STORE_STORE_ID": true, + "CATALOG_PRODUCT_OPTION_TYPE_TITLE_OPTION_TYPE_ID_STORE_ID": true + } + }, + "catalog_eav_attribute": { + "column": { + "attribute_id": true, + "frontend_input_renderer": true, + "is_global": true, + "is_visible": true, + "is_searchable": true, + "is_filterable": true, + "is_comparable": true, + "is_visible_on_front": true, + "is_html_allowed_on_front": true, + "is_used_for_price_rules": true, + "is_filterable_in_search": true, + "used_in_product_listing": true, + "used_for_sort_by": true, + "apply_to": true, + "is_visible_in_advanced_search": true, + "position": true, + "is_wysiwyg_enabled": true, + "is_used_for_promo_rules": true, + "is_required_in_admin_store": true, + "is_used_in_grid": true, + "is_visible_in_grid": true, + "is_filterable_in_grid": true + }, + "index": { + "CATALOG_EAV_ATTRIBUTE_USED_FOR_SORT_BY": true, + "CATALOG_EAV_ATTRIBUTE_USED_IN_PRODUCT_LISTING": true + }, + "constraint": { + "PRIMARY": true, + "CATALOG_EAV_ATTRIBUTE_ATTRIBUTE_ID_EAV_ATTRIBUTE_ATTRIBUTE_ID": true + } + }, + "catalog_product_relation": { + "column": { + "parent_id": true, + "child_id": true + }, + "index": { + "CATALOG_PRODUCT_RELATION_CHILD_ID": true + }, + "constraint": { + "PRIMARY": true, + "CAT_PRD_RELATION_CHILD_ID_CAT_PRD_ENTT_ENTT_ID": true, + "CAT_PRD_RELATION_PARENT_ID_CAT_PRD_ENTT_ENTT_ID": true + } + }, + "catalog_product_index_eav": { + "column": { + "entity_id": true, + "attribute_id": true, + "store_id": true, + "value": true, + "source_id": true + }, + "index": { + "CATALOG_PRODUCT_INDEX_EAV_ATTRIBUTE_ID": true, + "CATALOG_PRODUCT_INDEX_EAV_STORE_ID": true, + "CATALOG_PRODUCT_INDEX_EAV_VALUE": true + }, + "constraint": { + "PRIMARY": true, + "CAT_PRD_IDX_EAV_ENTT_ID_ATTR_ID_STORE_ID_VAL_SOURCE_ID": true + } + }, + "catalog_product_index_eav_decimal": { + "column": { + "entity_id": true, + "attribute_id": true, + "store_id": true, + "value": true, + "source_id": true + }, + "index": { + "CATALOG_PRODUCT_INDEX_EAV_DECIMAL_ATTRIBUTE_ID": true, + "CATALOG_PRODUCT_INDEX_EAV_DECIMAL_STORE_ID": true, + "CATALOG_PRODUCT_INDEX_EAV_DECIMAL_VALUE": true + }, + "constraint": { + "PRIMARY": true, + "CAT_PRD_IDX_EAV_DEC_ENTT_ID_ATTR_ID_STORE_ID_VAL_SOURCE_ID": true + } + }, + "catalog_product_index_price": { + "column": { + "entity_id": true, + "customer_group_id": true, + "website_id": true, + "tax_class_id": true, + "price": true, + "final_price": true, + "min_price": true, + "max_price": true, + "tier_price": true + }, + "index": { + "CATALOG_PRODUCT_INDEX_PRICE_CUSTOMER_GROUP_ID": true, + "CATALOG_PRODUCT_INDEX_PRICE_MIN_PRICE": true, + "CAT_PRD_IDX_PRICE_WS_ID_CSTR_GROUP_ID_MIN_PRICE": true + }, + "constraint": { + "PRIMARY": true, + "CAT_PRD_IDX_PRICE_CSTR_GROUP_ID_CSTR_GROUP_CSTR_GROUP_ID": true, + "CAT_PRD_IDX_PRICE_ENTT_ID_CAT_PRD_ENTT_ENTT_ID": true, + "CATALOG_PRODUCT_INDEX_PRICE_WEBSITE_ID_STORE_WEBSITE_WEBSITE_ID": true + } + }, + "catalog_product_index_tier_price": { + "column": { + "entity_id": true, + "customer_group_id": true, + "website_id": true, + "min_price": true + }, + "index": { + "CATALOG_PRODUCT_INDEX_TIER_PRICE_CUSTOMER_GROUP_ID": true, + "CATALOG_PRODUCT_INDEX_TIER_PRICE_WEBSITE_ID": true + }, + "constraint": { + "PRIMARY": true, + "CAT_PRD_IDX_TIER_PRICE_CSTR_GROUP_ID_CSTR_GROUP_CSTR_GROUP_ID": true, + "CAT_PRD_IDX_TIER_PRICE_ENTT_ID_CAT_PRD_ENTT_ENTT_ID": true, + "CAT_PRD_IDX_TIER_PRICE_WS_ID_STORE_WS_WS_ID": true + } + }, + "catalog_product_index_website": { + "column": { + "website_id": true, + "website_date": true, + "rate": true, + "default_store_id": true + }, + "index": { + "CATALOG_PRODUCT_INDEX_WEBSITE_WEBSITE_DATE": true + }, + "constraint": { + "PRIMARY": true, + "CAT_PRD_IDX_WS_WS_ID_STORE_WS_WS_ID": true + } + }, + "catalog_product_index_price_cfg_opt_agr_idx": { + "column": { + "parent_id": true, + "child_id": true, + "customer_group_id": true, + "website_id": true, + "price": true, + "tier_price": true + }, + "constraint": { + "PRIMARY": true + } + }, + "catalog_product_index_price_cfg_opt_agr_tmp": { + "column": { + "parent_id": true, + "child_id": true, + "customer_group_id": true, + "website_id": true, + "price": true, + "tier_price": true + }, + "constraint": { + "PRIMARY": true + } + }, + "catalog_product_index_price_cfg_opt_idx": { + "column": { + "entity_id": true, + "customer_group_id": true, + "website_id": true, + "min_price": true, + "max_price": true, + "tier_price": true + }, + "constraint": { + "PRIMARY": true + } + }, + "catalog_product_index_price_cfg_opt_tmp": { + "column": { + "entity_id": true, + "customer_group_id": true, + "website_id": true, + "min_price": true, + "max_price": true, + "tier_price": true + }, + "constraint": { + "PRIMARY": true + } + }, + "catalog_product_index_price_final_idx": { + "column": { + "entity_id": true, + "customer_group_id": true, + "website_id": true, + "tax_class_id": true, + "orig_price": true, + "price": true, + "min_price": true, + "max_price": true, + "tier_price": true, + "base_tier": true + }, + "constraint": { + "PRIMARY": true + } + }, + "catalog_product_index_price_final_tmp": { + "column": { + "entity_id": true, + "customer_group_id": true, + "website_id": true, + "tax_class_id": true, + "orig_price": true, + "price": true, + "min_price": true, + "max_price": true, + "tier_price": true, + "base_tier": true + }, + "constraint": { + "PRIMARY": true + } + }, + "catalog_product_index_price_opt_idx": { + "column": { + "entity_id": true, + "customer_group_id": true, + "website_id": true, + "min_price": true, + "max_price": true, + "tier_price": true + }, + "constraint": { + "PRIMARY": true + } + }, + "catalog_product_index_price_opt_tmp": { + "column": { + "entity_id": true, + "customer_group_id": true, + "website_id": true, + "min_price": true, + "max_price": true, + "tier_price": true + }, + "constraint": { + "PRIMARY": true + } + }, + "catalog_product_index_price_opt_agr_idx": { + "column": { + "entity_id": true, + "customer_group_id": true, + "website_id": true, + "option_id": true, + "min_price": true, + "max_price": true, + "tier_price": true + }, + "constraint": { + "PRIMARY": true + } + }, + "catalog_product_index_price_opt_agr_tmp": { + "column": { + "entity_id": true, + "customer_group_id": true, + "website_id": true, + "option_id": true, + "min_price": true, + "max_price": true, + "tier_price": true + }, + "constraint": { + "PRIMARY": true + } + }, + "catalog_product_index_eav_idx": { + "column": { + "entity_id": true, + "attribute_id": true, + "store_id": true, + "value": true, + "source_id": true + }, + "index": { + "CATALOG_PRODUCT_INDEX_EAV_IDX_ATTRIBUTE_ID": true, + "CATALOG_PRODUCT_INDEX_EAV_IDX_STORE_ID": true, + "CATALOG_PRODUCT_INDEX_EAV_IDX_VALUE": true + }, + "constraint": { + "PRIMARY": true, + "CAT_PRD_IDX_EAV_IDX_ENTT_ID_ATTR_ID_STORE_ID_VAL_SOURCE_ID": true + } + }, + "catalog_product_index_eav_tmp": { + "column": { + "entity_id": true, + "attribute_id": true, + "store_id": true, + "value": true, + "source_id": true + }, + "index": { + "CATALOG_PRODUCT_INDEX_EAV_TMP_ATTRIBUTE_ID": true, + "CATALOG_PRODUCT_INDEX_EAV_TMP_STORE_ID": true, + "CATALOG_PRODUCT_INDEX_EAV_TMP_VALUE": true + }, + "constraint": { + "PRIMARY": true, + "CAT_PRD_IDX_EAV_TMP_ENTT_ID_ATTR_ID_STORE_ID_VAL_SOURCE_ID": true + } + }, + "catalog_product_index_eav_decimal_idx": { + "column": { + "entity_id": true, + "attribute_id": true, + "store_id": true, + "value": true, + "source_id": true + }, + "index": { + "CATALOG_PRODUCT_INDEX_EAV_DECIMAL_IDX_ATTRIBUTE_ID": true, + "CATALOG_PRODUCT_INDEX_EAV_DECIMAL_IDX_STORE_ID": true, + "CATALOG_PRODUCT_INDEX_EAV_DECIMAL_IDX_VALUE": true + }, + "constraint": { + "PRIMARY": true, + "CAT_PRD_IDX_EAV_DEC_IDX_ENTT_ID_ATTR_ID_STORE_ID_VAL_SOURCE_ID": true + } + }, + "catalog_product_index_eav_decimal_tmp": { + "column": { + "entity_id": true, + "attribute_id": true, + "store_id": true, + "value": true, + "source_id": true + }, + "index": { + "CATALOG_PRODUCT_INDEX_EAV_DECIMAL_TMP_ATTRIBUTE_ID": true, + "CATALOG_PRODUCT_INDEX_EAV_DECIMAL_TMP_STORE_ID": true, + "CATALOG_PRODUCT_INDEX_EAV_DECIMAL_TMP_VALUE": true + }, + "constraint": { + "PRIMARY": true, + "CAT_PRD_IDX_EAV_DEC_TMP_ENTT_ID_ATTR_ID_STORE_ID_VAL_SOURCE_ID": true + } + }, + "catalog_product_index_price_idx": { + "column": { + "entity_id": true, + "customer_group_id": true, + "website_id": true, + "tax_class_id": true, + "price": true, + "final_price": true, + "min_price": true, + "max_price": true, + "tier_price": true + }, + "index": { + "CATALOG_PRODUCT_INDEX_PRICE_IDX_CUSTOMER_GROUP_ID": true, + "CATALOG_PRODUCT_INDEX_PRICE_IDX_WEBSITE_ID": true, + "CATALOG_PRODUCT_INDEX_PRICE_IDX_MIN_PRICE": true + }, + "constraint": { + "PRIMARY": true + } + }, + "catalog_product_index_price_tmp": { + "column": { + "entity_id": true, + "customer_group_id": true, + "website_id": true, + "tax_class_id": true, + "price": true, + "final_price": true, + "min_price": true, + "max_price": true, + "tier_price": true + }, + "index": { + "CATALOG_PRODUCT_INDEX_PRICE_TMP_CUSTOMER_GROUP_ID": true, + "CATALOG_PRODUCT_INDEX_PRICE_TMP_WEBSITE_ID": true, + "CATALOG_PRODUCT_INDEX_PRICE_TMP_MIN_PRICE": true + }, + "constraint": { + "PRIMARY": true + } + }, + "catalog_category_product_index_tmp": { + "column": { + "category_id": true, + "product_id": true, + "position": true, + "is_parent": true, + "store_id": true, + "visibility": true + }, + "constraint": { + "PRIMARY": true + }, + "index": { + "CAT_CTGR_PRD_IDX_TMP_PRD_ID_CTGR_ID_STORE_ID": true + } + }, + "catalog_product_entity_media_gallery_value_to_entity": { + "column": { + "value_id": true, + "entity_id": true + }, + "constraint": { + "FK_A6C6C8FAA386736921D3A7C4B50B1185": true, + "CAT_PRD_ENTT_MDA_GLR_VAL_TO_ENTT_ENTT_ID_CAT_PRD_ENTT_ENTT_ID": true, + "CAT_PRD_ENTT_MDA_GLR_VAL_TO_ENTT_VAL_ID_ENTT_ID": true + } + }, + "catalog_product_index_eav_replica": { + "column": { + "entity_id": true, + "attribute_id": true, + "store_id": true, + "value": true, + "source_id": true + }, + "index": { + "CATALOG_PRODUCT_INDEX_EAV_REPLICA_ATTRIBUTE_ID": true, + "CATALOG_PRODUCT_INDEX_EAV_REPLICA_STORE_ID": true, + "CATALOG_PRODUCT_INDEX_EAV_REPLICA_VALUE": true, + "CATALOG_PRODUCT_INDEX_EAV_ATTRIBUTE_ID": true, + "CATALOG_PRODUCT_INDEX_EAV_STORE_ID": true, + "CATALOG_PRODUCT_INDEX_EAV_VALUE": true + }, + "constraint": { + "PRIMARY": true + } + }, + "catalog_product_index_eav_decimal_replica": { + "column": { + "entity_id": true, + "attribute_id": true, + "store_id": true, + "value": true, + "source_id": true + }, + "index": { + "CATALOG_PRODUCT_INDEX_EAV_DECIMAL_REPLICA_ATTRIBUTE_ID": true, + "CATALOG_PRODUCT_INDEX_EAV_DECIMAL_REPLICA_STORE_ID": true, + "CATALOG_PRODUCT_INDEX_EAV_DECIMAL_REPLICA_VALUE": true, + "CATALOG_PRODUCT_INDEX_EAV_DECIMAL_ATTRIBUTE_ID": true, + "CATALOG_PRODUCT_INDEX_EAV_DECIMAL_STORE_ID": true, + "CATALOG_PRODUCT_INDEX_EAV_DECIMAL_VALUE": true + }, + "constraint": { + "PRIMARY": true + } + }, + "catalog_product_index_price_replica": { + "column": { + "entity_id": true, + "customer_group_id": true, + "website_id": true, + "tax_class_id": true, + "price": true, + "final_price": true, + "min_price": true, + "max_price": true, + "tier_price": true + }, + "index": { + "CATALOG_PRODUCT_INDEX_PRICE_REPLICA_CUSTOMER_GROUP_ID": true, + "CATALOG_PRODUCT_INDEX_PRICE_REPLICA_MIN_PRICE": true, + "CAT_PRD_IDX_PRICE_REPLICA_WS_ID_CSTR_GROUP_ID_MIN_PRICE": true, + "CATALOG_PRODUCT_INDEX_PRICE_CUSTOMER_GROUP_ID": true, + "CATALOG_PRODUCT_INDEX_PRICE_MIN_PRICE": true, + "CAT_PRD_IDX_PRICE_WS_ID_CSTR_GROUP_ID_MIN_PRICE": true + }, + "constraint": { + "PRIMARY": true + } + }, + "catalog_category_product_index_replica": { + "column": { + "category_id": true, + "product_id": true, + "position": true, + "is_parent": true, + "store_id": true, + "visibility": true + }, + "index": { + "CAT_CTGR_PRD_IDX_REPLICA_PRD_ID_STORE_ID_CTGR_ID_VISIBILITY": true, + "IDX_87EB2E3059853CF89A75B4C55074810B": true, + "CAT_CTGR_PRD_IDX_PRD_ID_STORE_ID_CTGR_ID_VISIBILITY": true, + "CAT_CTGR_PRD_IDX_STORE_ID_CTGR_ID_VISIBILITY_IS_PARENT_POSITION": true + }, + "constraint": { + "PRIMARY": true + } + }, + "catalog_product_frontend_action": { + "column": { + "action_id": true, + "type_id": true, + "visitor_id": true, + "customer_id": true, + "product_id": true, + "added_at": true + }, + "constraint": { + "PRIMARY": true, + "CAT_PRD_FRONTEND_ACTION_CSTR_ID_CSTR_ENTT_ENTT_ID": true, + "CAT_PRD_FRONTEND_ACTION_PRD_ID_CAT_PRD_ENTT_ENTT_ID": true, + "CATALOG_PRODUCT_FRONTEND_ACTION_VISITOR_ID_PRODUCT_ID_TYPE_ID": true, + "CATALOG_PRODUCT_FRONTEND_ACTION_CUSTOMER_ID_PRODUCT_ID_TYPE_ID": true + } } - } -} +} \ No newline at end of file diff --git a/app/code/Magento/CatalogInventory/etc/db_schema_whitelist.json b/app/code/Magento/CatalogInventory/etc/db_schema_whitelist.json index 6ae1851d7e94e..2580ec1e336f1 100644 --- a/app/code/Magento/CatalogInventory/etc/db_schema_whitelist.json +++ b/app/code/Magento/CatalogInventory/etc/db_schema_whitelist.json @@ -1,126 +1,126 @@ { - "cataloginventory_stock": { - "column": { - "stock_id": true, - "website_id": true, - "stock_name": true + "cataloginventory_stock": { + "column": { + "stock_id": true, + "website_id": true, + "stock_name": true + }, + "index": { + "CATALOGINVENTORY_STOCK_WEBSITE_ID": true + }, + "constraint": { + "PRIMARY": true + } }, - "index": { - "CATALOGINVENTORY_STOCK_WEBSITE_ID": true + "cataloginventory_stock_item": { + "column": { + "item_id": true, + "product_id": true, + "stock_id": true, + "qty": true, + "min_qty": true, + "use_config_min_qty": true, + "is_qty_decimal": true, + "backorders": true, + "use_config_backorders": true, + "min_sale_qty": true, + "use_config_min_sale_qty": true, + "max_sale_qty": true, + "use_config_max_sale_qty": true, + "is_in_stock": true, + "low_stock_date": true, + "notify_stock_qty": true, + "use_config_notify_stock_qty": true, + "manage_stock": true, + "use_config_manage_stock": true, + "stock_status_changed_auto": true, + "use_config_qty_increments": true, + "qty_increments": true, + "use_config_enable_qty_inc": true, + "enable_qty_increments": true, + "is_decimal_divided": true, + "website_id": true + }, + "index": { + "CATALOGINVENTORY_STOCK_ITEM_WEBSITE_ID": true, + "CATALOGINVENTORY_STOCK_ITEM_STOCK_ID": true + }, + "constraint": { + "PRIMARY": true, + "CATINV_STOCK_ITEM_PRD_ID_CAT_PRD_ENTT_ENTT_ID": true, + "CATINV_STOCK_ITEM_STOCK_ID_CATINV_STOCK_STOCK_ID": true, + "CATALOGINVENTORY_STOCK_ITEM_PRODUCT_ID_STOCK_ID": true, + "CATALOGINVENTORY_STOCK_ITEM_PRODUCT_ID_WEBSITE_ID": true, + "CATINV_STOCK_ITEM_PRD_ID_SEQUENCE_PRD_SEQUENCE_VAL": true + } }, - "constraint": { - "PRIMARY": true - } - }, - "cataloginventory_stock_item": { - "column": { - "item_id": true, - "product_id": true, - "stock_id": true, - "qty": true, - "min_qty": true, - "use_config_min_qty": true, - "is_qty_decimal": true, - "backorders": true, - "use_config_backorders": true, - "min_sale_qty": true, - "use_config_min_sale_qty": true, - "max_sale_qty": true, - "use_config_max_sale_qty": true, - "is_in_stock": true, - "low_stock_date": true, - "notify_stock_qty": true, - "use_config_notify_stock_qty": true, - "manage_stock": true, - "use_config_manage_stock": true, - "stock_status_changed_auto": true, - "use_config_qty_increments": true, - "qty_increments": true, - "use_config_enable_qty_inc": true, - "enable_qty_increments": true, - "is_decimal_divided": true, - "website_id": true - }, - "index": { - "CATALOGINVENTORY_STOCK_ITEM_WEBSITE_ID": true, - "CATALOGINVENTORY_STOCK_ITEM_STOCK_ID": true - }, - "constraint": { - "PRIMARY": true, - "CATINV_STOCK_ITEM_PRD_ID_CAT_PRD_ENTT_ENTT_ID": true, - "CATINV_STOCK_ITEM_STOCK_ID_CATINV_STOCK_STOCK_ID": true, - "CATALOGINVENTORY_STOCK_ITEM_PRODUCT_ID_STOCK_ID": true, - "CATALOGINVENTORY_STOCK_ITEM_PRODUCT_ID_WEBSITE_ID": true, - "CATINV_STOCK_ITEM_PRD_ID_SEQUENCE_PRD_SEQUENCE_VAL": true - } - }, - "cataloginventory_stock_status": { - "column": { - "product_id": true, - "website_id": true, - "stock_id": true, - "qty": true, - "stock_status": true - }, - "index": { - "CATALOGINVENTORY_STOCK_STATUS_STOCK_ID": true, - "CATALOGINVENTORY_STOCK_STATUS_WEBSITE_ID": true, - "CATALOGINVENTORY_STOCK_STATUS_STOCK_STATUS": true - }, - "constraint": { - "PRIMARY": true - } - }, - "cataloginventory_stock_status_idx": { - "column": { - "product_id": true, - "website_id": true, - "stock_id": true, - "qty": true, - "stock_status": true - }, - "index": { - "CATALOGINVENTORY_STOCK_STATUS_IDX_STOCK_ID": true, - "CATALOGINVENTORY_STOCK_STATUS_IDX_WEBSITE_ID": true - }, - "constraint": { - "PRIMARY": true - } - }, - "cataloginventory_stock_status_tmp": { - "column": { - "product_id": true, - "website_id": true, - "stock_id": true, - "qty": true, - "stock_status": true - }, - "index": { - "CATALOGINVENTORY_STOCK_STATUS_TMP_STOCK_ID": true, - "CATALOGINVENTORY_STOCK_STATUS_TMP_WEBSITE_ID": true + "cataloginventory_stock_status": { + "column": { + "product_id": true, + "website_id": true, + "stock_id": true, + "qty": true, + "stock_status": true + }, + "index": { + "CATALOGINVENTORY_STOCK_STATUS_STOCK_ID": true, + "CATALOGINVENTORY_STOCK_STATUS_WEBSITE_ID": true, + "CATALOGINVENTORY_STOCK_STATUS_STOCK_STATUS": true + }, + "constraint": { + "PRIMARY": true + } }, - "constraint": { - "PRIMARY": true - } - }, - "cataloginventory_stock_status_replica": { - "column": { - "product_id": true, - "website_id": true, - "stock_id": true, - "qty": true, - "stock_status": true + "cataloginventory_stock_status_idx": { + "column": { + "product_id": true, + "website_id": true, + "stock_id": true, + "qty": true, + "stock_status": true + }, + "index": { + "CATALOGINVENTORY_STOCK_STATUS_IDX_STOCK_ID": true, + "CATALOGINVENTORY_STOCK_STATUS_IDX_WEBSITE_ID": true + }, + "constraint": { + "PRIMARY": true + } }, - "index": { - "CATALOGINVENTORY_STOCK_STATUS_REPLICA_STOCK_ID": true, - "CATALOGINVENTORY_STOCK_STATUS_REPLICA_WEBSITE_ID": true, - "CATALOGINVENTORY_STOCK_STATUS_REPLICA_STOCK_STATUS": true, - "CATALOGINVENTORY_STOCK_STATUS_STOCK_ID": true, - "CATALOGINVENTORY_STOCK_STATUS_WEBSITE_ID": true, - "CATALOGINVENTORY_STOCK_STATUS_STOCK_STATUS": true + "cataloginventory_stock_status_tmp": { + "column": { + "product_id": true, + "website_id": true, + "stock_id": true, + "qty": true, + "stock_status": true + }, + "index": { + "CATALOGINVENTORY_STOCK_STATUS_TMP_STOCK_ID": true, + "CATALOGINVENTORY_STOCK_STATUS_TMP_WEBSITE_ID": true + }, + "constraint": { + "PRIMARY": true + } }, - "constraint": { - "PRIMARY": true + "cataloginventory_stock_status_replica": { + "column": { + "product_id": true, + "website_id": true, + "stock_id": true, + "qty": true, + "stock_status": true + }, + "index": { + "CATALOGINVENTORY_STOCK_STATUS_REPLICA_STOCK_ID": true, + "CATALOGINVENTORY_STOCK_STATUS_REPLICA_WEBSITE_ID": true, + "CATALOGINVENTORY_STOCK_STATUS_REPLICA_STOCK_STATUS": true, + "CATALOGINVENTORY_STOCK_STATUS_STOCK_ID": true, + "CATALOGINVENTORY_STOCK_STATUS_WEBSITE_ID": true, + "CATALOGINVENTORY_STOCK_STATUS_STOCK_STATUS": true + }, + "constraint": { + "PRIMARY": true + } } - } } \ No newline at end of file diff --git a/app/code/Magento/CatalogRule/etc/db_schema_whitelist.json b/app/code/Magento/CatalogRule/etc/db_schema_whitelist.json index f5aaece43f179..b6c1391ce67fb 100644 --- a/app/code/Magento/CatalogRule/etc/db_schema_whitelist.json +++ b/app/code/Magento/CatalogRule/etc/db_schema_whitelist.json @@ -1,195 +1,195 @@ { - "catalogrule": { - "column": { - "rule_id": true, - "name": true, - "description": true, - "from_date": true, - "to_date": true, - "is_active": true, - "conditions_serialized": true, - "actions_serialized": true, - "stop_rules_processing": true, - "sort_order": true, - "simple_action": true, - "discount_amount": true, - "sub_is_enable": true, - "sub_simple_action": true, - "sub_discount_amount": true - }, - "index": { - "CATALOGRULE_IS_ACTIVE_SORT_ORDER_TO_DATE_FROM_DATE": true - }, - "constraint": { - "PRIMARY": true - } - }, - "catalogrule_product": { - "column": { - "rule_product_id": true, - "rule_id": true, - "from_time": true, - "to_time": true, - "customer_group_id": true, - "product_id": true, - "action_operator": true, - "action_amount": true, - "action_stop": true, - "sort_order": true, - "website_id": true, - "sub_simple_action": true, - "sub_discount_amount": true - }, - "index": { - "CATALOGRULE_PRODUCT_CUSTOMER_GROUP_ID": true, - "CATALOGRULE_PRODUCT_WEBSITE_ID": true, - "CATALOGRULE_PRODUCT_FROM_TIME": true, - "CATALOGRULE_PRODUCT_TO_TIME": true, - "CATALOGRULE_PRODUCT_PRODUCT_ID": true - }, - "constraint": { - "PRIMARY": true, - "IDX_EAA51B56FF092A0DCB795D1CEF812B7B": true, - "UNQ_EAA51B56FF092A0DCB795D1CEF812B7B": true - } - }, - "catalogrule_product_price": { - "column": { - "rule_product_price_id": true, - "rule_date": true, - "customer_group_id": true, - "product_id": true, - "rule_price": true, - "website_id": true, - "latest_start_date": true, - "earliest_end_date": true - }, - "index": { - "CATALOGRULE_PRODUCT_PRICE_CUSTOMER_GROUP_ID": true, - "CATALOGRULE_PRODUCT_PRICE_WEBSITE_ID": true, - "CATALOGRULE_PRODUCT_PRICE_PRODUCT_ID": true - }, - "constraint": { - "PRIMARY": true, - "CATRULE_PRD_PRICE_RULE_DATE_WS_ID_CSTR_GROUP_ID_PRD_ID": true - } - }, - "catalogrule_group_website": { - "column": { - "rule_id": true, - "customer_group_id": true, - "website_id": true - }, - "index": { - "CATALOGRULE_GROUP_WEBSITE_CUSTOMER_GROUP_ID": true, - "CATALOGRULE_GROUP_WEBSITE_WEBSITE_ID": true - }, - "constraint": { - "PRIMARY": true, - "CATRULE_GROUP_WS_CSTR_GROUP_ID_CSTR_GROUP_CSTR_GROUP_ID": true, - "CATALOGRULE_GROUP_WEBSITE_RULE_ID_CATALOGRULE_RULE_ID": true, - "CATALOGRULE_GROUP_WEBSITE_WEBSITE_ID_STORE_WEBSITE_WEBSITE_ID": true - } - }, - "catalogrule_website": { - "column": { - "rule_id": true, - "website_id": true - }, - "index": { - "CATALOGRULE_WEBSITE_WEBSITE_ID": true - }, - "constraint": { - "PRIMARY": true, - "CATALOGRULE_WEBSITE_RULE_ID_CATALOGRULE_RULE_ID": true, - "CATALOGRULE_WEBSITE_WEBSITE_ID_STORE_WEBSITE_WEBSITE_ID": true - } - }, - "catalogrule_customer_group": { - "column": { - "rule_id": true, - "customer_group_id": true - }, - "index": { - "CATALOGRULE_CUSTOMER_GROUP_CUSTOMER_GROUP_ID": true - }, - "constraint": { - "PRIMARY": true, - "CATALOGRULE_CUSTOMER_GROUP_RULE_ID_CATALOGRULE_RULE_ID": true, - "CATRULE_CSTR_GROUP_CSTR_GROUP_ID_CSTR_GROUP_CSTR_GROUP_ID": true - } - }, - "catalogrule_product_replica": { - "column": { - "rule_product_id": true, - "rule_id": true, - "from_time": true, - "to_time": true, - "customer_group_id": true, - "product_id": true, - "action_operator": true, - "action_amount": true, - "action_stop": true, - "sort_order": true, - "website_id": true - }, - "index": { - "CATALOGRULE_PRODUCT_REPLICA_CUSTOMER_GROUP_ID": true, - "CATALOGRULE_PRODUCT_REPLICA_WEBSITE_ID": true, - "CATALOGRULE_PRODUCT_REPLICA_FROM_TIME": true, - "CATALOGRULE_PRODUCT_REPLICA_TO_TIME": true, - "CATALOGRULE_PRODUCT_REPLICA_PRODUCT_ID": true, - "CATALOGRULE_PRODUCT_CUSTOMER_GROUP_ID": true, - "CATALOGRULE_PRODUCT_WEBSITE_ID": true, - "CATALOGRULE_PRODUCT_FROM_TIME": true, - "CATALOGRULE_PRODUCT_TO_TIME": true, - "CATALOGRULE_PRODUCT_PRODUCT_ID": true - }, - "constraint": { - "PRIMARY": true, - "IDX_EAA51B56FF092A0DCB795D1CEF812B7B": true, - "UNQ_EAA51B56FF092A0DCB795D1CEF812B7B": true - } - }, - "catalogrule_product_price_replica": { - "column": { - "rule_product_price_id": true, - "rule_date": true, - "customer_group_id": true, - "product_id": true, - "rule_price": true, - "website_id": true, - "latest_start_date": true, - "earliest_end_date": true - }, - "index": { - "CATALOGRULE_PRODUCT_PRICE_REPLICA_CUSTOMER_GROUP_ID": true, - "CATALOGRULE_PRODUCT_PRICE_REPLICA_WEBSITE_ID": true, - "CATALOGRULE_PRODUCT_PRICE_REPLICA_PRODUCT_ID": true, - "CATALOGRULE_PRODUCT_PRICE_CUSTOMER_GROUP_ID": true, - "CATALOGRULE_PRODUCT_PRICE_WEBSITE_ID": true, - "CATALOGRULE_PRODUCT_PRICE_PRODUCT_ID": true - }, - "constraint": { - "PRIMARY": true, - "CATRULE_PRD_PRICE_REPLICA_RULE_DATE_WS_ID_CSTR_GROUP_ID_PRD_ID": true, - "CATRULE_PRD_PRICE_RULE_DATE_WS_ID_CSTR_GROUP_ID_PRD_ID": true - } - }, - "catalogrule_group_website_replica": { - "column": { - "rule_id": true, - "customer_group_id": true, - "website_id": true - }, - "index": { - "CATALOGRULE_GROUP_WEBSITE_REPLICA_CUSTOMER_GROUP_ID": true, - "CATALOGRULE_GROUP_WEBSITE_REPLICA_WEBSITE_ID": true, - "CATALOGRULE_GROUP_WEBSITE_CUSTOMER_GROUP_ID": true, - "CATALOGRULE_GROUP_WEBSITE_WEBSITE_ID": true - }, - "constraint": { - "PRIMARY": true + "catalogrule": { + "column": { + "rule_id": true, + "name": true, + "description": true, + "from_date": true, + "to_date": true, + "is_active": true, + "conditions_serialized": true, + "actions_serialized": true, + "stop_rules_processing": true, + "sort_order": true, + "simple_action": true, + "discount_amount": true, + "sub_is_enable": true, + "sub_simple_action": true, + "sub_discount_amount": true + }, + "index": { + "CATALOGRULE_IS_ACTIVE_SORT_ORDER_TO_DATE_FROM_DATE": true + }, + "constraint": { + "PRIMARY": true + } + }, + "catalogrule_product": { + "column": { + "rule_product_id": true, + "rule_id": true, + "from_time": true, + "to_time": true, + "customer_group_id": true, + "product_id": true, + "action_operator": true, + "action_amount": true, + "action_stop": true, + "sort_order": true, + "website_id": true, + "sub_simple_action": true, + "sub_discount_amount": true + }, + "index": { + "CATALOGRULE_PRODUCT_CUSTOMER_GROUP_ID": true, + "CATALOGRULE_PRODUCT_WEBSITE_ID": true, + "CATALOGRULE_PRODUCT_FROM_TIME": true, + "CATALOGRULE_PRODUCT_TO_TIME": true, + "CATALOGRULE_PRODUCT_PRODUCT_ID": true + }, + "constraint": { + "PRIMARY": true, + "IDX_EAA51B56FF092A0DCB795D1CEF812B7B": true, + "UNQ_EAA51B56FF092A0DCB795D1CEF812B7B": true + } + }, + "catalogrule_product_price": { + "column": { + "rule_product_price_id": true, + "rule_date": true, + "customer_group_id": true, + "product_id": true, + "rule_price": true, + "website_id": true, + "latest_start_date": true, + "earliest_end_date": true + }, + "index": { + "CATALOGRULE_PRODUCT_PRICE_CUSTOMER_GROUP_ID": true, + "CATALOGRULE_PRODUCT_PRICE_WEBSITE_ID": true, + "CATALOGRULE_PRODUCT_PRICE_PRODUCT_ID": true + }, + "constraint": { + "PRIMARY": true, + "CATRULE_PRD_PRICE_RULE_DATE_WS_ID_CSTR_GROUP_ID_PRD_ID": true + } + }, + "catalogrule_group_website": { + "column": { + "rule_id": true, + "customer_group_id": true, + "website_id": true + }, + "index": { + "CATALOGRULE_GROUP_WEBSITE_CUSTOMER_GROUP_ID": true, + "CATALOGRULE_GROUP_WEBSITE_WEBSITE_ID": true + }, + "constraint": { + "PRIMARY": true, + "CATRULE_GROUP_WS_CSTR_GROUP_ID_CSTR_GROUP_CSTR_GROUP_ID": true, + "CATALOGRULE_GROUP_WEBSITE_RULE_ID_CATALOGRULE_RULE_ID": true, + "CATALOGRULE_GROUP_WEBSITE_WEBSITE_ID_STORE_WEBSITE_WEBSITE_ID": true + } + }, + "catalogrule_website": { + "column": { + "rule_id": true, + "website_id": true + }, + "index": { + "CATALOGRULE_WEBSITE_WEBSITE_ID": true + }, + "constraint": { + "PRIMARY": true, + "CATALOGRULE_WEBSITE_RULE_ID_CATALOGRULE_RULE_ID": true, + "CATALOGRULE_WEBSITE_WEBSITE_ID_STORE_WEBSITE_WEBSITE_ID": true + } + }, + "catalogrule_customer_group": { + "column": { + "rule_id": true, + "customer_group_id": true + }, + "index": { + "CATALOGRULE_CUSTOMER_GROUP_CUSTOMER_GROUP_ID": true + }, + "constraint": { + "PRIMARY": true, + "CATALOGRULE_CUSTOMER_GROUP_RULE_ID_CATALOGRULE_RULE_ID": true, + "CATRULE_CSTR_GROUP_CSTR_GROUP_ID_CSTR_GROUP_CSTR_GROUP_ID": true + } + }, + "catalogrule_product_replica": { + "column": { + "rule_product_id": true, + "rule_id": true, + "from_time": true, + "to_time": true, + "customer_group_id": true, + "product_id": true, + "action_operator": true, + "action_amount": true, + "action_stop": true, + "sort_order": true, + "website_id": true + }, + "index": { + "CATALOGRULE_PRODUCT_REPLICA_CUSTOMER_GROUP_ID": true, + "CATALOGRULE_PRODUCT_REPLICA_WEBSITE_ID": true, + "CATALOGRULE_PRODUCT_REPLICA_FROM_TIME": true, + "CATALOGRULE_PRODUCT_REPLICA_TO_TIME": true, + "CATALOGRULE_PRODUCT_REPLICA_PRODUCT_ID": true, + "CATALOGRULE_PRODUCT_CUSTOMER_GROUP_ID": true, + "CATALOGRULE_PRODUCT_WEBSITE_ID": true, + "CATALOGRULE_PRODUCT_FROM_TIME": true, + "CATALOGRULE_PRODUCT_TO_TIME": true, + "CATALOGRULE_PRODUCT_PRODUCT_ID": true + }, + "constraint": { + "PRIMARY": true, + "IDX_EAA51B56FF092A0DCB795D1CEF812B7B": true, + "UNQ_EAA51B56FF092A0DCB795D1CEF812B7B": true + } + }, + "catalogrule_product_price_replica": { + "column": { + "rule_product_price_id": true, + "rule_date": true, + "customer_group_id": true, + "product_id": true, + "rule_price": true, + "website_id": true, + "latest_start_date": true, + "earliest_end_date": true + }, + "index": { + "CATALOGRULE_PRODUCT_PRICE_REPLICA_CUSTOMER_GROUP_ID": true, + "CATALOGRULE_PRODUCT_PRICE_REPLICA_WEBSITE_ID": true, + "CATALOGRULE_PRODUCT_PRICE_REPLICA_PRODUCT_ID": true, + "CATALOGRULE_PRODUCT_PRICE_CUSTOMER_GROUP_ID": true, + "CATALOGRULE_PRODUCT_PRICE_WEBSITE_ID": true, + "CATALOGRULE_PRODUCT_PRICE_PRODUCT_ID": true + }, + "constraint": { + "PRIMARY": true, + "CATRULE_PRD_PRICE_REPLICA_RULE_DATE_WS_ID_CSTR_GROUP_ID_PRD_ID": true, + "CATRULE_PRD_PRICE_RULE_DATE_WS_ID_CSTR_GROUP_ID_PRD_ID": true + } + }, + "catalogrule_group_website_replica": { + "column": { + "rule_id": true, + "customer_group_id": true, + "website_id": true + }, + "index": { + "CATALOGRULE_GROUP_WEBSITE_REPLICA_CUSTOMER_GROUP_ID": true, + "CATALOGRULE_GROUP_WEBSITE_REPLICA_WEBSITE_ID": true, + "CATALOGRULE_GROUP_WEBSITE_CUSTOMER_GROUP_ID": true, + "CATALOGRULE_GROUP_WEBSITE_WEBSITE_ID": true + }, + "constraint": { + "PRIMARY": true + } } - } -} +} \ No newline at end of file diff --git a/app/code/Magento/CatalogSearch/etc/db_schema_whitelist.json b/app/code/Magento/CatalogSearch/etc/db_schema_whitelist.json index 453c0c9c90743..0d94c3a63a850 100644 --- a/app/code/Magento/CatalogSearch/etc/db_schema_whitelist.json +++ b/app/code/Magento/CatalogSearch/etc/db_schema_whitelist.json @@ -1,7 +1,7 @@ { - "catalog_eav_attribute": { - "column": { - "search_weight": true + "catalog_eav_attribute": { + "column": { + "search_weight": true + } } - } } \ No newline at end of file diff --git a/app/code/Magento/CatalogUrlRewrite/etc/db_schema_whitelist.json b/app/code/Magento/CatalogUrlRewrite/etc/db_schema_whitelist.json index f2e486e32eda1..5562ae5d48cc9 100644 --- a/app/code/Magento/CatalogUrlRewrite/etc/db_schema_whitelist.json +++ b/app/code/Magento/CatalogUrlRewrite/etc/db_schema_whitelist.json @@ -1,19 +1,19 @@ { - "catalog_url_rewrite_product_category": { - "column": { - "url_rewrite_id": true, - "category_id": true, - "product_id": true - }, - "index": { - "CATALOG_URL_REWRITE_PRODUCT_CATEGORY_CATEGORY_ID_PRODUCT_ID": true - }, - "constraint": { - "CAT_URL_REWRITE_PRD_CTGR_PRD_ID_CAT_PRD_ENTT_ENTT_ID": true, - "FK_BB79E64705D7F17FE181F23144528FC8": true, - "CAT_URL_REWRITE_PRD_CTGR_CTGR_ID_CAT_CTGR_ENTT_ENTT_ID": true, - "CAT_URL_REWRITE_PRD_CTGR_CTGR_ID_SEQUENCE_CAT_CTGR_SEQUENCE_VAL": true, - "CAT_URL_REWRITE_PRD_CTGR_PRD_ID_SEQUENCE_PRD_SEQUENCE_VAL": true + "catalog_url_rewrite_product_category": { + "column": { + "url_rewrite_id": true, + "category_id": true, + "product_id": true + }, + "index": { + "CATALOG_URL_REWRITE_PRODUCT_CATEGORY_CATEGORY_ID_PRODUCT_ID": true + }, + "constraint": { + "CAT_URL_REWRITE_PRD_CTGR_PRD_ID_CAT_PRD_ENTT_ENTT_ID": true, + "FK_BB79E64705D7F17FE181F23144528FC8": true, + "CAT_URL_REWRITE_PRD_CTGR_CTGR_ID_CAT_CTGR_ENTT_ENTT_ID": true, + "CAT_URL_REWRITE_PRD_CTGR_CTGR_ID_SEQUENCE_CAT_CTGR_SEQUENCE_VAL": true, + "CAT_URL_REWRITE_PRD_CTGR_PRD_ID_SEQUENCE_PRD_SEQUENCE_VAL": true + } } - } } \ No newline at end of file diff --git a/app/code/Magento/CheckoutAgreements/etc/db_schema_whitelist.json b/app/code/Magento/CheckoutAgreements/etc/db_schema_whitelist.json index 039bcaade5205..f0be46a47e063 100644 --- a/app/code/Magento/CheckoutAgreements/etc/db_schema_whitelist.json +++ b/app/code/Magento/CheckoutAgreements/etc/db_schema_whitelist.json @@ -1,28 +1,28 @@ { - "checkout_agreement": { - "column": { - "agreement_id": true, - "name": true, - "content": true, - "content_height": true, - "checkbox_text": true, - "is_active": true, - "is_html": true, - "mode": true + "checkout_agreement": { + "column": { + "agreement_id": true, + "name": true, + "content": true, + "content_height": true, + "checkbox_text": true, + "is_active": true, + "is_html": true, + "mode": true + }, + "constraint": { + "PRIMARY": true + } }, - "constraint": { - "PRIMARY": true + "checkout_agreement_store": { + "column": { + "agreement_id": true, + "store_id": true + }, + "constraint": { + "PRIMARY": true, + "CHKT_AGRT_STORE_AGRT_ID_CHKT_AGRT_AGRT_ID": true, + "CHECKOUT_AGREEMENT_STORE_STORE_ID_STORE_STORE_ID": true + } } - }, - "checkout_agreement_store": { - "column": { - "agreement_id": true, - "store_id": true - }, - "constraint": { - "PRIMARY": true, - "CHKT_AGRT_STORE_AGRT_ID_CHKT_AGRT_AGRT_ID": true, - "CHECKOUT_AGREEMENT_STORE_STORE_ID_STORE_STORE_ID": true - } - } } \ No newline at end of file diff --git a/app/code/Magento/Cms/etc/db_schema_whitelist.json b/app/code/Magento/Cms/etc/db_schema_whitelist.json index 4ab3966798b2f..8da44baf71719 100644 --- a/app/code/Magento/Cms/etc/db_schema_whitelist.json +++ b/app/code/Magento/Cms/etc/db_schema_whitelist.json @@ -1,77 +1,77 @@ { - "cms_block": { - "column": { - "block_id": true, - "title": true, - "identifier": true, - "content": true, - "creation_time": true, - "update_time": true, - "is_active": true + "cms_block": { + "column": { + "block_id": true, + "title": true, + "identifier": true, + "content": true, + "creation_time": true, + "update_time": true, + "is_active": true + }, + "index": { + "CMS_BLOCK_TITLE_IDENTIFIER_CONTENT": true + }, + "constraint": { + "PRIMARY": true + } }, - "index": { - "CMS_BLOCK_TITLE_IDENTIFIER_CONTENT": true + "cms_block_store": { + "column": { + "block_id": true, + "store_id": true + }, + "index": { + "CMS_BLOCK_STORE_STORE_ID": true + }, + "constraint": { + "PRIMARY": true, + "CMS_BLOCK_STORE_BLOCK_ID_CMS_BLOCK_BLOCK_ID": true, + "CMS_BLOCK_STORE_STORE_ID_STORE_STORE_ID": true + } }, - "constraint": { - "PRIMARY": true - } - }, - "cms_block_store": { - "column": { - "block_id": true, - "store_id": true - }, - "index": { - "CMS_BLOCK_STORE_STORE_ID": true - }, - "constraint": { - "PRIMARY": true, - "CMS_BLOCK_STORE_BLOCK_ID_CMS_BLOCK_BLOCK_ID": true, - "CMS_BLOCK_STORE_STORE_ID_STORE_STORE_ID": true - } - }, - "cms_page": { - "column": { - "page_id": true, - "title": true, - "page_layout": true, - "meta_keywords": true, - "meta_description": true, - "identifier": true, - "content_heading": true, - "content": true, - "creation_time": true, - "update_time": true, - "is_active": true, - "sort_order": true, - "layout_update_xml": true, - "custom_theme": true, - "custom_root_template": true, - "custom_layout_update_xml": true, - "custom_theme_from": true, - "custom_theme_to": true, - "meta_title": true - }, - "index": { - "CMS_PAGE_IDENTIFIER": true, - "CMS_PAGE_TITLE_META_KEYWORDS_META_DESCRIPTION_IDENTIFIER_CONTENT": true - }, - "constraint": { - "PRIMARY": true - } - }, - "cms_page_store": { - "column": { - "page_id": true, - "store_id": true - }, - "index": { - "CMS_PAGE_STORE_STORE_ID": true + "cms_page": { + "column": { + "page_id": true, + "title": true, + "page_layout": true, + "meta_keywords": true, + "meta_description": true, + "identifier": true, + "content_heading": true, + "content": true, + "creation_time": true, + "update_time": true, + "is_active": true, + "sort_order": true, + "layout_update_xml": true, + "custom_theme": true, + "custom_root_template": true, + "custom_layout_update_xml": true, + "custom_theme_from": true, + "custom_theme_to": true, + "meta_title": true + }, + "index": { + "CMS_PAGE_IDENTIFIER": true, + "CMS_PAGE_TITLE_META_KEYWORDS_META_DESCRIPTION_IDENTIFIER_CONTENT": true + }, + "constraint": { + "PRIMARY": true + } }, - "constraint": { - "PRIMARY": true, - "CMS_PAGE_STORE_PAGE_ID_CMS_PAGE_PAGE_ID": true, - "CMS_PAGE_STORE_STORE_ID_STORE_STORE_ID": true + "cms_page_store": { + "column": { + "page_id": true, + "store_id": true + }, + "index": { + "CMS_PAGE_STORE_STORE_ID": true + }, + "constraint": { + "PRIMARY": true, + "CMS_PAGE_STORE_PAGE_ID_CMS_PAGE_PAGE_ID": true, + "CMS_PAGE_STORE_STORE_ID_STORE_STORE_ID": true + } } - } } \ No newline at end of file diff --git a/app/code/Magento/Config/etc/db_schema_whitelist.json b/app/code/Magento/Config/etc/db_schema_whitelist.json index 7383843c3bf5d..850e160bc732f 100644 --- a/app/code/Magento/Config/etc/db_schema_whitelist.json +++ b/app/code/Magento/Config/etc/db_schema_whitelist.json @@ -1,15 +1,15 @@ { - "core_config_data": { - "column": { - "config_id": true, - "scope": true, - "scope_id": true, - "path": true, - "value": true - }, - "constraint": { - "PRIMARY": true, - "CORE_CONFIG_DATA_SCOPE_SCOPE_ID_PATH": true + "core_config_data": { + "column": { + "config_id": true, + "scope": true, + "scope_id": true, + "path": true, + "value": true + }, + "constraint": { + "PRIMARY": true, + "CORE_CONFIG_DATA_SCOPE_SCOPE_ID_PATH": true + } } - } } \ No newline at end of file diff --git a/app/code/Magento/ConfigurableProduct/etc/db_schema_whitelist.json b/app/code/Magento/ConfigurableProduct/etc/db_schema_whitelist.json index c5c83dd31ca23..70ce362e02c71 100644 --- a/app/code/Magento/ConfigurableProduct/etc/db_schema_whitelist.json +++ b/app/code/Magento/ConfigurableProduct/etc/db_schema_whitelist.json @@ -1,50 +1,50 @@ { - "catalog_product_super_attribute": { - "column": { - "product_super_attribute_id": true, - "product_id": true, - "attribute_id": true, - "position": true + "catalog_product_super_attribute": { + "column": { + "product_super_attribute_id": true, + "product_id": true, + "attribute_id": true, + "position": true + }, + "constraint": { + "PRIMARY": true, + "CAT_PRD_SPR_ATTR_PRD_ID_CAT_PRD_ENTT_ENTT_ID": true, + "CATALOG_PRODUCT_SUPER_ATTRIBUTE_PRODUCT_ID_ATTRIBUTE_ID": true + } }, - "constraint": { - "PRIMARY": true, - "CAT_PRD_SPR_ATTR_PRD_ID_CAT_PRD_ENTT_ENTT_ID": true, - "CATALOG_PRODUCT_SUPER_ATTRIBUTE_PRODUCT_ID_ATTRIBUTE_ID": true - } - }, - "catalog_product_super_attribute_label": { - "column": { - "value_id": true, - "product_super_attribute_id": true, - "store_id": true, - "use_default": true, - "value": true - }, - "index": { - "CATALOG_PRODUCT_SUPER_ATTRIBUTE_LABEL_STORE_ID": true - }, - "constraint": { - "PRIMARY": true, - "FK_309442281DF7784210ED82B2CC51E5D5": true, - "CATALOG_PRODUCT_SUPER_ATTRIBUTE_LABEL_STORE_ID_STORE_STORE_ID": true, - "CAT_PRD_SPR_ATTR_LBL_PRD_SPR_ATTR_ID_STORE_ID": true - } - }, - "catalog_product_super_link": { - "column": { - "link_id": true, - "product_id": true, - "parent_id": true - }, - "index": { - "CATALOG_PRODUCT_SUPER_LINK_PARENT_ID": true + "catalog_product_super_attribute_label": { + "column": { + "value_id": true, + "product_super_attribute_id": true, + "store_id": true, + "use_default": true, + "value": true + }, + "index": { + "CATALOG_PRODUCT_SUPER_ATTRIBUTE_LABEL_STORE_ID": true + }, + "constraint": { + "PRIMARY": true, + "FK_309442281DF7784210ED82B2CC51E5D5": true, + "CATALOG_PRODUCT_SUPER_ATTRIBUTE_LABEL_STORE_ID_STORE_STORE_ID": true, + "CAT_PRD_SPR_ATTR_LBL_PRD_SPR_ATTR_ID_STORE_ID": true + } }, - "constraint": { - "PRIMARY": true, - "CAT_PRD_SPR_LNK_PRD_ID_CAT_PRD_ENTT_ENTT_ID": true, - "CAT_PRD_SPR_LNK_PARENT_ID_CAT_PRD_ENTT_ENTT_ID": true, - "CATALOG_PRODUCT_SUPER_LINK_PRODUCT_ID_PARENT_ID": true, - "CAT_PRD_SPR_LNK_PRD_ID_SEQUENCE_PRD_SEQUENCE_VAL": true + "catalog_product_super_link": { + "column": { + "link_id": true, + "product_id": true, + "parent_id": true + }, + "index": { + "CATALOG_PRODUCT_SUPER_LINK_PARENT_ID": true + }, + "constraint": { + "PRIMARY": true, + "CAT_PRD_SPR_LNK_PRD_ID_CAT_PRD_ENTT_ENTT_ID": true, + "CAT_PRD_SPR_LNK_PARENT_ID_CAT_PRD_ENTT_ENTT_ID": true, + "CATALOG_PRODUCT_SUPER_LINK_PRODUCT_ID_PARENT_ID": true, + "CAT_PRD_SPR_LNK_PRD_ID_SEQUENCE_PRD_SEQUENCE_VAL": true + } } - } } \ No newline at end of file diff --git a/app/code/Magento/Cron/etc/db_schema_whitelist.json b/app/code/Magento/Cron/etc/db_schema_whitelist.json index 7c98f1d69ba59..c8666896627e2 100644 --- a/app/code/Magento/Cron/etc/db_schema_whitelist.json +++ b/app/code/Magento/Cron/etc/db_schema_whitelist.json @@ -1,21 +1,21 @@ { - "cron_schedule": { - "column": { - "schedule_id": true, - "job_code": true, - "status": true, - "messages": true, - "created_at": true, - "scheduled_at": true, - "executed_at": true, - "finished_at": true - }, - "index": { - "CRON_SCHEDULE_JOB_CODE": true, - "CRON_SCHEDULE_SCHEDULED_AT_STATUS": true - }, - "constraint": { - "PRIMARY": true + "cron_schedule": { + "column": { + "schedule_id": true, + "job_code": true, + "status": true, + "messages": true, + "created_at": true, + "scheduled_at": true, + "executed_at": true, + "finished_at": true + }, + "index": { + "CRON_SCHEDULE_JOB_CODE": true, + "CRON_SCHEDULE_SCHEDULED_AT_STATUS": true + }, + "constraint": { + "PRIMARY": true + } } - } } \ No newline at end of file diff --git a/app/code/Magento/Customer/etc/db_schema_whitelist.json b/app/code/Magento/Customer/etc/db_schema_whitelist.json index f0150bccfe84e..4aada8f0d81fe 100644 --- a/app/code/Magento/Customer/etc/db_schema_whitelist.json +++ b/app/code/Magento/Customer/etc/db_schema_whitelist.json @@ -1,349 +1,349 @@ { - "customer_entity": { - "column": { - "entity_id": true, - "website_id": true, - "email": true, - "group_id": true, - "increment_id": true, - "store_id": true, - "created_at": true, - "updated_at": true, - "is_active": true, - "disable_auto_group_change": true, - "created_in": true, - "prefix": true, - "firstname": true, - "middlename": true, - "lastname": true, - "suffix": true, - "dob": true, - "password_hash": true, - "rp_token": true, - "rp_token_created_at": true, - "default_billing": true, - "default_shipping": true, - "taxvat": true, - "confirmation": true, - "gender": true, - "failures_num": true, - "first_failure": true, - "lock_expired": true, - "lock_expires": true - }, - "index": { - "CUSTOMER_ENTITY_STORE_ID": true, - "CUSTOMER_ENTITY_WEBSITE_ID": true, - "CUSTOMER_ENTITY_FIRSTNAME": true, - "CUSTOMER_ENTITY_LASTNAME": true - }, - "constraint": { - "PRIMARY": true, - "CUSTOMER_ENTITY_STORE_ID_STORE_STORE_ID": true, - "CUSTOMER_ENTITY_WEBSITE_ID_STORE_WEBSITE_WEBSITE_ID": true, - "CUSTOMER_ENTITY_EMAIL_WEBSITE_ID": true - } - }, - "customer_address_entity": { - "column": { - "entity_id": true, - "increment_id": true, - "parent_id": true, - "created_at": true, - "updated_at": true, - "is_active": true, - "city": true, - "company": true, - "country_id": true, - "fax": true, - "firstname": true, - "lastname": true, - "middlename": true, - "postcode": true, - "prefix": true, - "region": true, - "region_id": true, - "street": true, - "suffix": true, - "telephone": true, - "vat_id": true, - "vat_is_valid": true, - "vat_request_date": true, - "vat_request_id": true, - "vat_request_success": true - }, - "index": { - "CUSTOMER_ADDRESS_ENTITY_PARENT_ID": true - }, - "constraint": { - "PRIMARY": true, - "CUSTOMER_ADDRESS_ENTITY_PARENT_ID_CUSTOMER_ENTITY_ENTITY_ID": true - } - }, - "customer_address_entity_datetime": { - "column": { - "value_id": true, - "attribute_id": true, - "entity_id": true, - "value": true - }, - "index": { - "CUSTOMER_ADDRESS_ENTITY_DATETIME_ATTRIBUTE_ID": true, - "CUSTOMER_ADDRESS_ENTITY_DATETIME_ENTITY_ID_ATTRIBUTE_ID_VALUE": true - }, - "constraint": { - "PRIMARY": true, - "CSTR_ADDR_ENTT_DTIME_ATTR_ID_EAV_ATTR_ATTR_ID": true, - "CSTR_ADDR_ENTT_DTIME_ENTT_ID_CSTR_ADDR_ENTT_ENTT_ID": true, - "CUSTOMER_ADDRESS_ENTITY_DATETIME_ENTITY_ID_ATTRIBUTE_ID": true - } - }, - "customer_address_entity_decimal": { - "column": { - "value_id": true, - "attribute_id": true, - "entity_id": true, - "value": true - }, - "index": { - "CUSTOMER_ADDRESS_ENTITY_DECIMAL_ATTRIBUTE_ID": true, - "CUSTOMER_ADDRESS_ENTITY_DECIMAL_ENTITY_ID_ATTRIBUTE_ID_VALUE": true - }, - "constraint": { - "PRIMARY": true, - "CSTR_ADDR_ENTT_DEC_ATTR_ID_EAV_ATTR_ATTR_ID": true, - "CSTR_ADDR_ENTT_DEC_ENTT_ID_CSTR_ADDR_ENTT_ENTT_ID": true, - "CUSTOMER_ADDRESS_ENTITY_DECIMAL_ENTITY_ID_ATTRIBUTE_ID": true - } - }, - "customer_address_entity_int": { - "column": { - "value_id": true, - "attribute_id": true, - "entity_id": true, - "value": true - }, - "index": { - "CUSTOMER_ADDRESS_ENTITY_INT_ATTRIBUTE_ID": true, - "CUSTOMER_ADDRESS_ENTITY_INT_ENTITY_ID_ATTRIBUTE_ID_VALUE": true - }, - "constraint": { - "PRIMARY": true, - "CSTR_ADDR_ENTT_INT_ATTR_ID_EAV_ATTR_ATTR_ID": true, - "CSTR_ADDR_ENTT_INT_ENTT_ID_CSTR_ADDR_ENTT_ENTT_ID": true, - "CUSTOMER_ADDRESS_ENTITY_INT_ENTITY_ID_ATTRIBUTE_ID": true - } - }, - "customer_address_entity_text": { - "column": { - "value_id": true, - "attribute_id": true, - "entity_id": true, - "value": true - }, - "index": { - "CUSTOMER_ADDRESS_ENTITY_TEXT_ATTRIBUTE_ID": true - }, - "constraint": { - "PRIMARY": true, - "CSTR_ADDR_ENTT_TEXT_ATTR_ID_EAV_ATTR_ATTR_ID": true, - "CSTR_ADDR_ENTT_TEXT_ENTT_ID_CSTR_ADDR_ENTT_ENTT_ID": true, - "CUSTOMER_ADDRESS_ENTITY_TEXT_ENTITY_ID_ATTRIBUTE_ID": true - } - }, - "customer_address_entity_varchar": { - "column": { - "value_id": true, - "attribute_id": true, - "entity_id": true, - "value": true - }, - "index": { - "CUSTOMER_ADDRESS_ENTITY_VARCHAR_ATTRIBUTE_ID": true, - "CUSTOMER_ADDRESS_ENTITY_VARCHAR_ENTITY_ID_ATTRIBUTE_ID_VALUE": true - }, - "constraint": { - "PRIMARY": true, - "CSTR_ADDR_ENTT_VCHR_ATTR_ID_EAV_ATTR_ATTR_ID": true, - "CSTR_ADDR_ENTT_VCHR_ENTT_ID_CSTR_ADDR_ENTT_ENTT_ID": true, - "CUSTOMER_ADDRESS_ENTITY_VARCHAR_ENTITY_ID_ATTRIBUTE_ID": true - } - }, - "customer_entity_datetime": { - "column": { - "value_id": true, - "attribute_id": true, - "entity_id": true, - "value": true - }, - "index": { - "CUSTOMER_ENTITY_DATETIME_ATTRIBUTE_ID": true, - "CUSTOMER_ENTITY_DATETIME_ENTITY_ID_ATTRIBUTE_ID_VALUE": true - }, - "constraint": { - "PRIMARY": true, - "CUSTOMER_ENTITY_DATETIME_ATTRIBUTE_ID_EAV_ATTRIBUTE_ATTRIBUTE_ID": true, - "CUSTOMER_ENTITY_DATETIME_ENTITY_ID_CUSTOMER_ENTITY_ENTITY_ID": true, - "CUSTOMER_ENTITY_DATETIME_ENTITY_ID_ATTRIBUTE_ID": true - } - }, - "customer_entity_decimal": { - "column": { - "value_id": true, - "attribute_id": true, - "entity_id": true, - "value": true - }, - "index": { - "CUSTOMER_ENTITY_DECIMAL_ATTRIBUTE_ID": true, - "CUSTOMER_ENTITY_DECIMAL_ENTITY_ID_ATTRIBUTE_ID_VALUE": true - }, - "constraint": { - "PRIMARY": true, - "CUSTOMER_ENTITY_DECIMAL_ATTRIBUTE_ID_EAV_ATTRIBUTE_ATTRIBUTE_ID": true, - "CUSTOMER_ENTITY_DECIMAL_ENTITY_ID_CUSTOMER_ENTITY_ENTITY_ID": true, - "CUSTOMER_ENTITY_DECIMAL_ENTITY_ID_ATTRIBUTE_ID": true - } - }, - "customer_entity_int": { - "column": { - "value_id": true, - "attribute_id": true, - "entity_id": true, - "value": true - }, - "index": { - "CUSTOMER_ENTITY_INT_ATTRIBUTE_ID": true, - "CUSTOMER_ENTITY_INT_ENTITY_ID_ATTRIBUTE_ID_VALUE": true - }, - "constraint": { - "PRIMARY": true, - "CUSTOMER_ENTITY_INT_ATTRIBUTE_ID_EAV_ATTRIBUTE_ATTRIBUTE_ID": true, - "CUSTOMER_ENTITY_INT_ENTITY_ID_CUSTOMER_ENTITY_ENTITY_ID": true, - "CUSTOMER_ENTITY_INT_ENTITY_ID_ATTRIBUTE_ID": true - } - }, - "customer_entity_text": { - "column": { - "value_id": true, - "attribute_id": true, - "entity_id": true, - "value": true - }, - "index": { - "CUSTOMER_ENTITY_TEXT_ATTRIBUTE_ID": true - }, - "constraint": { - "PRIMARY": true, - "CUSTOMER_ENTITY_TEXT_ATTRIBUTE_ID_EAV_ATTRIBUTE_ATTRIBUTE_ID": true, - "CUSTOMER_ENTITY_TEXT_ENTITY_ID_CUSTOMER_ENTITY_ENTITY_ID": true, - "CUSTOMER_ENTITY_TEXT_ENTITY_ID_ATTRIBUTE_ID": true - } - }, - "customer_entity_varchar": { - "column": { - "value_id": true, - "attribute_id": true, - "entity_id": true, - "value": true - }, - "index": { - "CUSTOMER_ENTITY_VARCHAR_ATTRIBUTE_ID": true, - "CUSTOMER_ENTITY_VARCHAR_ENTITY_ID_ATTRIBUTE_ID_VALUE": true - }, - "constraint": { - "PRIMARY": true, - "CUSTOMER_ENTITY_VARCHAR_ATTRIBUTE_ID_EAV_ATTRIBUTE_ATTRIBUTE_ID": true, - "CUSTOMER_ENTITY_VARCHAR_ENTITY_ID_CUSTOMER_ENTITY_ENTITY_ID": true, - "CUSTOMER_ENTITY_VARCHAR_ENTITY_ID_ATTRIBUTE_ID": true - } - }, - "customer_group": { - "column": { - "customer_group_id": true, - "customer_group_code": true, - "tax_class_id": true - }, - "constraint": { - "PRIMARY": true - } - }, - "customer_eav_attribute": { - "column": { - "attribute_id": true, - "is_visible": true, - "input_filter": true, - "multiline_count": true, - "validate_rules": true, - "is_system": true, - "sort_order": true, - "data_model": true, - "is_used_in_grid": true, - "is_visible_in_grid": true, - "is_filterable_in_grid": true, - "is_searchable_in_grid": true - }, - "constraint": { - "PRIMARY": true, - "CUSTOMER_EAV_ATTRIBUTE_ATTRIBUTE_ID_EAV_ATTRIBUTE_ATTRIBUTE_ID": true - } - }, - "customer_form_attribute": { - "column": { - "form_code": true, - "attribute_id": true - }, - "index": { - "CUSTOMER_FORM_ATTRIBUTE_ATTRIBUTE_ID": true - }, - "constraint": { - "PRIMARY": true, - "CUSTOMER_FORM_ATTRIBUTE_ATTRIBUTE_ID_EAV_ATTRIBUTE_ATTRIBUTE_ID": true - } - }, - "customer_eav_attribute_website": { - "column": { - "attribute_id": true, - "website_id": true, - "is_visible": true, - "is_required": true, - "default_value": true, - "multiline_count": true - }, - "index": { - "CUSTOMER_EAV_ATTRIBUTE_WEBSITE_WEBSITE_ID": true - }, - "constraint": { - "PRIMARY": true, - "CSTR_EAV_ATTR_WS_ATTR_ID_EAV_ATTR_ATTR_ID": true, - "CSTR_EAV_ATTR_WS_WS_ID_STORE_WS_WS_ID": true - } - }, - "customer_visitor": { - "column": { - "visitor_id": true, - "customer_id": true, - "session_id": true, - "last_visit_at": true - }, - "index": { - "CUSTOMER_VISITOR_CUSTOMER_ID": true, - "CUSTOMER_VISITOR_LAST_VISIT_AT": true - }, - "constraint": { - "PRIMARY": true - } - }, - "customer_log": { - "column": { - "log_id": true, - "customer_id": true, - "last_login_at": true, - "last_logout_at": true - }, - "constraint": { - "PRIMARY": true, - "CUSTOMER_LOG_CUSTOMER_ID": true + "customer_entity": { + "column": { + "entity_id": true, + "website_id": true, + "email": true, + "group_id": true, + "increment_id": true, + "store_id": true, + "created_at": true, + "updated_at": true, + "is_active": true, + "disable_auto_group_change": true, + "created_in": true, + "prefix": true, + "firstname": true, + "middlename": true, + "lastname": true, + "suffix": true, + "dob": true, + "password_hash": true, + "rp_token": true, + "rp_token_created_at": true, + "default_billing": true, + "default_shipping": true, + "taxvat": true, + "confirmation": true, + "gender": true, + "failures_num": true, + "first_failure": true, + "lock_expired": true, + "lock_expires": true + }, + "index": { + "CUSTOMER_ENTITY_STORE_ID": true, + "CUSTOMER_ENTITY_WEBSITE_ID": true, + "CUSTOMER_ENTITY_FIRSTNAME": true, + "CUSTOMER_ENTITY_LASTNAME": true + }, + "constraint": { + "PRIMARY": true, + "CUSTOMER_ENTITY_STORE_ID_STORE_STORE_ID": true, + "CUSTOMER_ENTITY_WEBSITE_ID_STORE_WEBSITE_WEBSITE_ID": true, + "CUSTOMER_ENTITY_EMAIL_WEBSITE_ID": true + } + }, + "customer_address_entity": { + "column": { + "entity_id": true, + "increment_id": true, + "parent_id": true, + "created_at": true, + "updated_at": true, + "is_active": true, + "city": true, + "company": true, + "country_id": true, + "fax": true, + "firstname": true, + "lastname": true, + "middlename": true, + "postcode": true, + "prefix": true, + "region": true, + "region_id": true, + "street": true, + "suffix": true, + "telephone": true, + "vat_id": true, + "vat_is_valid": true, + "vat_request_date": true, + "vat_request_id": true, + "vat_request_success": true + }, + "index": { + "CUSTOMER_ADDRESS_ENTITY_PARENT_ID": true + }, + "constraint": { + "PRIMARY": true, + "CUSTOMER_ADDRESS_ENTITY_PARENT_ID_CUSTOMER_ENTITY_ENTITY_ID": true + } + }, + "customer_address_entity_datetime": { + "column": { + "value_id": true, + "attribute_id": true, + "entity_id": true, + "value": true + }, + "index": { + "CUSTOMER_ADDRESS_ENTITY_DATETIME_ATTRIBUTE_ID": true, + "CUSTOMER_ADDRESS_ENTITY_DATETIME_ENTITY_ID_ATTRIBUTE_ID_VALUE": true + }, + "constraint": { + "PRIMARY": true, + "CSTR_ADDR_ENTT_DTIME_ATTR_ID_EAV_ATTR_ATTR_ID": true, + "CSTR_ADDR_ENTT_DTIME_ENTT_ID_CSTR_ADDR_ENTT_ENTT_ID": true, + "CUSTOMER_ADDRESS_ENTITY_DATETIME_ENTITY_ID_ATTRIBUTE_ID": true + } + }, + "customer_address_entity_decimal": { + "column": { + "value_id": true, + "attribute_id": true, + "entity_id": true, + "value": true + }, + "index": { + "CUSTOMER_ADDRESS_ENTITY_DECIMAL_ATTRIBUTE_ID": true, + "CUSTOMER_ADDRESS_ENTITY_DECIMAL_ENTITY_ID_ATTRIBUTE_ID_VALUE": true + }, + "constraint": { + "PRIMARY": true, + "CSTR_ADDR_ENTT_DEC_ATTR_ID_EAV_ATTR_ATTR_ID": true, + "CSTR_ADDR_ENTT_DEC_ENTT_ID_CSTR_ADDR_ENTT_ENTT_ID": true, + "CUSTOMER_ADDRESS_ENTITY_DECIMAL_ENTITY_ID_ATTRIBUTE_ID": true + } + }, + "customer_address_entity_int": { + "column": { + "value_id": true, + "attribute_id": true, + "entity_id": true, + "value": true + }, + "index": { + "CUSTOMER_ADDRESS_ENTITY_INT_ATTRIBUTE_ID": true, + "CUSTOMER_ADDRESS_ENTITY_INT_ENTITY_ID_ATTRIBUTE_ID_VALUE": true + }, + "constraint": { + "PRIMARY": true, + "CSTR_ADDR_ENTT_INT_ATTR_ID_EAV_ATTR_ATTR_ID": true, + "CSTR_ADDR_ENTT_INT_ENTT_ID_CSTR_ADDR_ENTT_ENTT_ID": true, + "CUSTOMER_ADDRESS_ENTITY_INT_ENTITY_ID_ATTRIBUTE_ID": true + } + }, + "customer_address_entity_text": { + "column": { + "value_id": true, + "attribute_id": true, + "entity_id": true, + "value": true + }, + "index": { + "CUSTOMER_ADDRESS_ENTITY_TEXT_ATTRIBUTE_ID": true + }, + "constraint": { + "PRIMARY": true, + "CSTR_ADDR_ENTT_TEXT_ATTR_ID_EAV_ATTR_ATTR_ID": true, + "CSTR_ADDR_ENTT_TEXT_ENTT_ID_CSTR_ADDR_ENTT_ENTT_ID": true, + "CUSTOMER_ADDRESS_ENTITY_TEXT_ENTITY_ID_ATTRIBUTE_ID": true + } + }, + "customer_address_entity_varchar": { + "column": { + "value_id": true, + "attribute_id": true, + "entity_id": true, + "value": true + }, + "index": { + "CUSTOMER_ADDRESS_ENTITY_VARCHAR_ATTRIBUTE_ID": true, + "CUSTOMER_ADDRESS_ENTITY_VARCHAR_ENTITY_ID_ATTRIBUTE_ID_VALUE": true + }, + "constraint": { + "PRIMARY": true, + "CSTR_ADDR_ENTT_VCHR_ATTR_ID_EAV_ATTR_ATTR_ID": true, + "CSTR_ADDR_ENTT_VCHR_ENTT_ID_CSTR_ADDR_ENTT_ENTT_ID": true, + "CUSTOMER_ADDRESS_ENTITY_VARCHAR_ENTITY_ID_ATTRIBUTE_ID": true + } + }, + "customer_entity_datetime": { + "column": { + "value_id": true, + "attribute_id": true, + "entity_id": true, + "value": true + }, + "index": { + "CUSTOMER_ENTITY_DATETIME_ATTRIBUTE_ID": true, + "CUSTOMER_ENTITY_DATETIME_ENTITY_ID_ATTRIBUTE_ID_VALUE": true + }, + "constraint": { + "PRIMARY": true, + "CUSTOMER_ENTITY_DATETIME_ATTRIBUTE_ID_EAV_ATTRIBUTE_ATTRIBUTE_ID": true, + "CUSTOMER_ENTITY_DATETIME_ENTITY_ID_CUSTOMER_ENTITY_ENTITY_ID": true, + "CUSTOMER_ENTITY_DATETIME_ENTITY_ID_ATTRIBUTE_ID": true + } + }, + "customer_entity_decimal": { + "column": { + "value_id": true, + "attribute_id": true, + "entity_id": true, + "value": true + }, + "index": { + "CUSTOMER_ENTITY_DECIMAL_ATTRIBUTE_ID": true, + "CUSTOMER_ENTITY_DECIMAL_ENTITY_ID_ATTRIBUTE_ID_VALUE": true + }, + "constraint": { + "PRIMARY": true, + "CUSTOMER_ENTITY_DECIMAL_ATTRIBUTE_ID_EAV_ATTRIBUTE_ATTRIBUTE_ID": true, + "CUSTOMER_ENTITY_DECIMAL_ENTITY_ID_CUSTOMER_ENTITY_ENTITY_ID": true, + "CUSTOMER_ENTITY_DECIMAL_ENTITY_ID_ATTRIBUTE_ID": true + } + }, + "customer_entity_int": { + "column": { + "value_id": true, + "attribute_id": true, + "entity_id": true, + "value": true + }, + "index": { + "CUSTOMER_ENTITY_INT_ATTRIBUTE_ID": true, + "CUSTOMER_ENTITY_INT_ENTITY_ID_ATTRIBUTE_ID_VALUE": true + }, + "constraint": { + "PRIMARY": true, + "CUSTOMER_ENTITY_INT_ATTRIBUTE_ID_EAV_ATTRIBUTE_ATTRIBUTE_ID": true, + "CUSTOMER_ENTITY_INT_ENTITY_ID_CUSTOMER_ENTITY_ENTITY_ID": true, + "CUSTOMER_ENTITY_INT_ENTITY_ID_ATTRIBUTE_ID": true + } + }, + "customer_entity_text": { + "column": { + "value_id": true, + "attribute_id": true, + "entity_id": true, + "value": true + }, + "index": { + "CUSTOMER_ENTITY_TEXT_ATTRIBUTE_ID": true + }, + "constraint": { + "PRIMARY": true, + "CUSTOMER_ENTITY_TEXT_ATTRIBUTE_ID_EAV_ATTRIBUTE_ATTRIBUTE_ID": true, + "CUSTOMER_ENTITY_TEXT_ENTITY_ID_CUSTOMER_ENTITY_ENTITY_ID": true, + "CUSTOMER_ENTITY_TEXT_ENTITY_ID_ATTRIBUTE_ID": true + } + }, + "customer_entity_varchar": { + "column": { + "value_id": true, + "attribute_id": true, + "entity_id": true, + "value": true + }, + "index": { + "CUSTOMER_ENTITY_VARCHAR_ATTRIBUTE_ID": true, + "CUSTOMER_ENTITY_VARCHAR_ENTITY_ID_ATTRIBUTE_ID_VALUE": true + }, + "constraint": { + "PRIMARY": true, + "CUSTOMER_ENTITY_VARCHAR_ATTRIBUTE_ID_EAV_ATTRIBUTE_ATTRIBUTE_ID": true, + "CUSTOMER_ENTITY_VARCHAR_ENTITY_ID_CUSTOMER_ENTITY_ENTITY_ID": true, + "CUSTOMER_ENTITY_VARCHAR_ENTITY_ID_ATTRIBUTE_ID": true + } + }, + "customer_group": { + "column": { + "customer_group_id": true, + "customer_group_code": true, + "tax_class_id": true + }, + "constraint": { + "PRIMARY": true + } + }, + "customer_eav_attribute": { + "column": { + "attribute_id": true, + "is_visible": true, + "input_filter": true, + "multiline_count": true, + "validate_rules": true, + "is_system": true, + "sort_order": true, + "data_model": true, + "is_used_in_grid": true, + "is_visible_in_grid": true, + "is_filterable_in_grid": true, + "is_searchable_in_grid": true + }, + "constraint": { + "PRIMARY": true, + "CUSTOMER_EAV_ATTRIBUTE_ATTRIBUTE_ID_EAV_ATTRIBUTE_ATTRIBUTE_ID": true + } + }, + "customer_form_attribute": { + "column": { + "form_code": true, + "attribute_id": true + }, + "index": { + "CUSTOMER_FORM_ATTRIBUTE_ATTRIBUTE_ID": true + }, + "constraint": { + "PRIMARY": true, + "CUSTOMER_FORM_ATTRIBUTE_ATTRIBUTE_ID_EAV_ATTRIBUTE_ATTRIBUTE_ID": true + } + }, + "customer_eav_attribute_website": { + "column": { + "attribute_id": true, + "website_id": true, + "is_visible": true, + "is_required": true, + "default_value": true, + "multiline_count": true + }, + "index": { + "CUSTOMER_EAV_ATTRIBUTE_WEBSITE_WEBSITE_ID": true + }, + "constraint": { + "PRIMARY": true, + "CSTR_EAV_ATTR_WS_ATTR_ID_EAV_ATTR_ATTR_ID": true, + "CSTR_EAV_ATTR_WS_WS_ID_STORE_WS_WS_ID": true + } + }, + "customer_visitor": { + "column": { + "visitor_id": true, + "customer_id": true, + "session_id": true, + "last_visit_at": true + }, + "index": { + "CUSTOMER_VISITOR_CUSTOMER_ID": true, + "CUSTOMER_VISITOR_LAST_VISIT_AT": true + }, + "constraint": { + "PRIMARY": true + } + }, + "customer_log": { + "column": { + "log_id": true, + "customer_id": true, + "last_login_at": true, + "last_logout_at": true + }, + "constraint": { + "PRIMARY": true, + "CUSTOMER_LOG_CUSTOMER_ID": true + } } - } } \ No newline at end of file diff --git a/app/code/Magento/Directory/etc/db_schema_whitelist.json b/app/code/Magento/Directory/etc/db_schema_whitelist.json index a71261851e361..ab2facb17428a 100644 --- a/app/code/Magento/Directory/etc/db_schema_whitelist.json +++ b/app/code/Magento/Directory/etc/db_schema_whitelist.json @@ -1,65 +1,65 @@ { - "directory_country": { - "column": { - "country_id": true, - "iso2_code": true, - "iso3_code": true + "directory_country": { + "column": { + "country_id": true, + "iso2_code": true, + "iso3_code": true + }, + "constraint": { + "PRIMARY": true + } }, - "constraint": { - "PRIMARY": true - } - }, - "directory_country_format": { - "column": { - "country_format_id": true, - "country_id": true, - "type": true, - "format": true - }, - "constraint": { - "PRIMARY": true, - "DIRECTORY_COUNTRY_FORMAT_COUNTRY_ID_TYPE": true - } - }, - "directory_country_region": { - "column": { - "region_id": true, - "country_id": true, - "code": true, - "default_name": true - }, - "index": { - "DIRECTORY_COUNTRY_REGION_COUNTRY_ID": true + "directory_country_format": { + "column": { + "country_format_id": true, + "country_id": true, + "type": true, + "format": true + }, + "constraint": { + "PRIMARY": true, + "DIRECTORY_COUNTRY_FORMAT_COUNTRY_ID_TYPE": true + } }, - "constraint": { - "PRIMARY": true - } - }, - "directory_country_region_name": { - "column": { - "locale": true, - "region_id": true, - "name": true - }, - "index": { - "DIRECTORY_COUNTRY_REGION_NAME_REGION_ID": true - }, - "constraint": { - "PRIMARY": true, - "DIR_COUNTRY_REGION_NAME_REGION_ID_DIR_COUNTRY_REGION_REGION_ID": true - } - }, - "directory_currency_rate": { - "column": { - "currency_from": true, - "currency_to": true, - "rate": true + "directory_country_region": { + "column": { + "region_id": true, + "country_id": true, + "code": true, + "default_name": true + }, + "index": { + "DIRECTORY_COUNTRY_REGION_COUNTRY_ID": true + }, + "constraint": { + "PRIMARY": true + } }, - "index": { - "DIRECTORY_CURRENCY_RATE_CURRENCY_TO": true + "directory_country_region_name": { + "column": { + "locale": true, + "region_id": true, + "name": true + }, + "index": { + "DIRECTORY_COUNTRY_REGION_NAME_REGION_ID": true + }, + "constraint": { + "PRIMARY": true, + "DIR_COUNTRY_REGION_NAME_REGION_ID_DIR_COUNTRY_REGION_REGION_ID": true + } }, - "constraint": { - "PRIMARY": true + "directory_currency_rate": { + "column": { + "currency_from": true, + "currency_to": true, + "rate": true + }, + "index": { + "DIRECTORY_CURRENCY_RATE_CURRENCY_TO": true + }, + "constraint": { + "PRIMARY": true + } } - } } \ No newline at end of file diff --git a/app/code/Magento/Downloadable/etc/db_schema_whitelist.json b/app/code/Magento/Downloadable/etc/db_schema_whitelist.json index 29cc8830746d7..61b7d439a4cd4 100644 --- a/app/code/Magento/Downloadable/etc/db_schema_whitelist.json +++ b/app/code/Magento/Downloadable/etc/db_schema_whitelist.json @@ -1,170 +1,170 @@ { - "downloadable_link": { - "column": { - "link_id": true, - "product_id": true, - "sort_order": true, - "number_of_downloads": true, - "is_shareable": true, - "link_url": true, - "link_file": true, - "link_type": true, - "sample_url": true, - "sample_file": true, - "sample_type": true - }, - "index": { - "DOWNLOADABLE_LINK_PRODUCT_ID_SORT_ORDER": true - }, - "constraint": { - "PRIMARY": true, - "DOWNLOADABLE_LINK_PRODUCT_ID_CATALOG_PRODUCT_ENTITY_ENTITY_ID": true - } - }, - "downloadable_link_price": { - "column": { - "price_id": true, - "link_id": true, - "website_id": true, - "price": true - }, - "index": { - "DOWNLOADABLE_LINK_PRICE_LINK_ID": true, - "DOWNLOADABLE_LINK_PRICE_WEBSITE_ID": true - }, - "constraint": { - "PRIMARY": true, - "DOWNLOADABLE_LINK_PRICE_LINK_ID_DOWNLOADABLE_LINK_LINK_ID": true, - "DOWNLOADABLE_LINK_PRICE_WEBSITE_ID_STORE_WEBSITE_WEBSITE_ID": true - } - }, - "downloadable_link_purchased": { - "column": { - "purchased_id": true, - "order_id": true, - "order_increment_id": true, - "order_item_id": true, - "created_at": true, - "updated_at": true, - "customer_id": true, - "product_name": true, - "product_sku": true, - "link_section_title": true - }, - "index": { - "DOWNLOADABLE_LINK_PURCHASED_ORDER_ID": true, - "DOWNLOADABLE_LINK_PURCHASED_ORDER_ITEM_ID": true, - "DOWNLOADABLE_LINK_PURCHASED_CUSTOMER_ID": true - }, - "constraint": { - "PRIMARY": true, - "DL_LNK_PURCHASED_CSTR_ID_CSTR_ENTT_ENTT_ID": true, - "DOWNLOADABLE_LINK_PURCHASED_ORDER_ID_SALES_ORDER_ENTITY_ID": true - } - }, - "downloadable_link_purchased_item": { - "column": { - "item_id": true, - "purchased_id": true, - "order_item_id": true, - "product_id": true, - "link_hash": true, - "number_of_downloads_bought": true, - "number_of_downloads_used": true, - "link_id": true, - "link_title": true, - "is_shareable": true, - "link_url": true, - "link_file": true, - "link_type": true, - "status": true, - "created_at": true, - "updated_at": true - }, - "index": { - "DOWNLOADABLE_LINK_PURCHASED_ITEM_LINK_HASH": true, - "DOWNLOADABLE_LINK_PURCHASED_ITEM_ORDER_ITEM_ID": true, - "DOWNLOADABLE_LINK_PURCHASED_ITEM_PURCHASED_ID": true - }, - "constraint": { - "PRIMARY": true, - "DL_LNK_PURCHASED_ITEM_PURCHASED_ID_DL_LNK_PURCHASED_PURCHASED_ID": true, - "DL_LNK_PURCHASED_ITEM_ORDER_ITEM_ID_SALES_ORDER_ITEM_ITEM_ID": true - } - }, - "downloadable_link_title": { - "column": { - "title_id": true, - "link_id": true, - "store_id": true, - "title": true - }, - "index": { - "DOWNLOADABLE_LINK_TITLE_STORE_ID": true - }, - "constraint": { - "PRIMARY": true, - "DOWNLOADABLE_LINK_TITLE_LINK_ID_DOWNLOADABLE_LINK_LINK_ID": true, - "DOWNLOADABLE_LINK_TITLE_STORE_ID_STORE_STORE_ID": true, - "DOWNLOADABLE_LINK_TITLE_LINK_ID_STORE_ID": true - } - }, - "downloadable_sample": { - "column": { - "sample_id": true, - "product_id": true, - "sample_url": true, - "sample_file": true, - "sample_type": true, - "sort_order": true - }, - "index": { - "DOWNLOADABLE_SAMPLE_PRODUCT_ID": true - }, - "constraint": { - "PRIMARY": true, - "DOWNLOADABLE_SAMPLE_PRODUCT_ID_CATALOG_PRODUCT_ENTITY_ENTITY_ID": true - } - }, - "downloadable_sample_title": { - "column": { - "title_id": true, - "sample_id": true, - "store_id": true, - "title": true - }, - "index": { - "DOWNLOADABLE_SAMPLE_TITLE_STORE_ID": true - }, - "constraint": { - "PRIMARY": true, - "DL_SAMPLE_TTL_SAMPLE_ID_DL_SAMPLE_SAMPLE_ID": true, - "DOWNLOADABLE_SAMPLE_TITLE_STORE_ID_STORE_STORE_ID": true, - "DOWNLOADABLE_SAMPLE_TITLE_SAMPLE_ID_STORE_ID": true - } - }, - "catalog_product_index_price_downlod_idx": { - "column": { - "entity_id": true, - "customer_group_id": true, - "website_id": true, - "min_price": true, - "max_price": true - }, - "constraint": { - "PRIMARY": true - } - }, - "catalog_product_index_price_downlod_tmp": { - "column": { - "entity_id": true, - "customer_group_id": true, - "website_id": true, - "min_price": true, - "max_price": true - }, - "constraint": { - "PRIMARY": true + "downloadable_link": { + "column": { + "link_id": true, + "product_id": true, + "sort_order": true, + "number_of_downloads": true, + "is_shareable": true, + "link_url": true, + "link_file": true, + "link_type": true, + "sample_url": true, + "sample_file": true, + "sample_type": true + }, + "index": { + "DOWNLOADABLE_LINK_PRODUCT_ID_SORT_ORDER": true + }, + "constraint": { + "PRIMARY": true, + "DOWNLOADABLE_LINK_PRODUCT_ID_CATALOG_PRODUCT_ENTITY_ENTITY_ID": true + } + }, + "downloadable_link_price": { + "column": { + "price_id": true, + "link_id": true, + "website_id": true, + "price": true + }, + "index": { + "DOWNLOADABLE_LINK_PRICE_LINK_ID": true, + "DOWNLOADABLE_LINK_PRICE_WEBSITE_ID": true + }, + "constraint": { + "PRIMARY": true, + "DOWNLOADABLE_LINK_PRICE_LINK_ID_DOWNLOADABLE_LINK_LINK_ID": true, + "DOWNLOADABLE_LINK_PRICE_WEBSITE_ID_STORE_WEBSITE_WEBSITE_ID": true + } + }, + "downloadable_link_purchased": { + "column": { + "purchased_id": true, + "order_id": true, + "order_increment_id": true, + "order_item_id": true, + "created_at": true, + "updated_at": true, + "customer_id": true, + "product_name": true, + "product_sku": true, + "link_section_title": true + }, + "index": { + "DOWNLOADABLE_LINK_PURCHASED_ORDER_ID": true, + "DOWNLOADABLE_LINK_PURCHASED_ORDER_ITEM_ID": true, + "DOWNLOADABLE_LINK_PURCHASED_CUSTOMER_ID": true + }, + "constraint": { + "PRIMARY": true, + "DL_LNK_PURCHASED_CSTR_ID_CSTR_ENTT_ENTT_ID": true, + "DOWNLOADABLE_LINK_PURCHASED_ORDER_ID_SALES_ORDER_ENTITY_ID": true + } + }, + "downloadable_link_purchased_item": { + "column": { + "item_id": true, + "purchased_id": true, + "order_item_id": true, + "product_id": true, + "link_hash": true, + "number_of_downloads_bought": true, + "number_of_downloads_used": true, + "link_id": true, + "link_title": true, + "is_shareable": true, + "link_url": true, + "link_file": true, + "link_type": true, + "status": true, + "created_at": true, + "updated_at": true + }, + "index": { + "DOWNLOADABLE_LINK_PURCHASED_ITEM_LINK_HASH": true, + "DOWNLOADABLE_LINK_PURCHASED_ITEM_ORDER_ITEM_ID": true, + "DOWNLOADABLE_LINK_PURCHASED_ITEM_PURCHASED_ID": true + }, + "constraint": { + "PRIMARY": true, + "DL_LNK_PURCHASED_ITEM_PURCHASED_ID_DL_LNK_PURCHASED_PURCHASED_ID": true, + "DL_LNK_PURCHASED_ITEM_ORDER_ITEM_ID_SALES_ORDER_ITEM_ITEM_ID": true + } + }, + "downloadable_link_title": { + "column": { + "title_id": true, + "link_id": true, + "store_id": true, + "title": true + }, + "index": { + "DOWNLOADABLE_LINK_TITLE_STORE_ID": true + }, + "constraint": { + "PRIMARY": true, + "DOWNLOADABLE_LINK_TITLE_LINK_ID_DOWNLOADABLE_LINK_LINK_ID": true, + "DOWNLOADABLE_LINK_TITLE_STORE_ID_STORE_STORE_ID": true, + "DOWNLOADABLE_LINK_TITLE_LINK_ID_STORE_ID": true + } + }, + "downloadable_sample": { + "column": { + "sample_id": true, + "product_id": true, + "sample_url": true, + "sample_file": true, + "sample_type": true, + "sort_order": true + }, + "index": { + "DOWNLOADABLE_SAMPLE_PRODUCT_ID": true + }, + "constraint": { + "PRIMARY": true, + "DOWNLOADABLE_SAMPLE_PRODUCT_ID_CATALOG_PRODUCT_ENTITY_ENTITY_ID": true + } + }, + "downloadable_sample_title": { + "column": { + "title_id": true, + "sample_id": true, + "store_id": true, + "title": true + }, + "index": { + "DOWNLOADABLE_SAMPLE_TITLE_STORE_ID": true + }, + "constraint": { + "PRIMARY": true, + "DL_SAMPLE_TTL_SAMPLE_ID_DL_SAMPLE_SAMPLE_ID": true, + "DOWNLOADABLE_SAMPLE_TITLE_STORE_ID_STORE_STORE_ID": true, + "DOWNLOADABLE_SAMPLE_TITLE_SAMPLE_ID_STORE_ID": true + } + }, + "catalog_product_index_price_downlod_idx": { + "column": { + "entity_id": true, + "customer_group_id": true, + "website_id": true, + "min_price": true, + "max_price": true + }, + "constraint": { + "PRIMARY": true + } + }, + "catalog_product_index_price_downlod_tmp": { + "column": { + "entity_id": true, + "customer_group_id": true, + "website_id": true, + "min_price": true, + "max_price": true + }, + "constraint": { + "PRIMARY": true + } } - } } \ No newline at end of file diff --git a/app/code/Magento/Eav/etc/db_schema_whitelist.json b/app/code/Magento/Eav/etc/db_schema_whitelist.json index cf06b06d833d5..b3f1aca50df01 100644 --- a/app/code/Magento/Eav/etc/db_schema_whitelist.json +++ b/app/code/Magento/Eav/etc/db_schema_whitelist.json @@ -1,390 +1,390 @@ { - "eav_entity_type": { - "column": { - "entity_type_id": true, - "entity_type_code": true, - "entity_model": true, - "attribute_model": true, - "entity_table": true, - "value_table_prefix": true, - "entity_id_field": true, - "is_data_sharing": true, - "data_sharing_key": true, - "default_attribute_set_id": true, - "increment_model": true, - "increment_per_store": true, - "increment_pad_length": true, - "increment_pad_char": true, - "additional_attribute_table": true, - "entity_attribute_collection": true - }, - "index": { - "EAV_ENTITY_TYPE_ENTITY_TYPE_CODE": true - }, - "constraint": { - "PRIMARY": true - } - }, - "eav_entity": { - "column": { - "entity_id": true, - "entity_type_id": true, - "attribute_set_id": true, - "increment_id": true, - "parent_id": true, - "store_id": true, - "created_at": true, - "updated_at": true, - "is_active": true - }, - "index": { - "EAV_ENTITY_ENTITY_TYPE_ID": true, - "EAV_ENTITY_STORE_ID": true - }, - "constraint": { - "PRIMARY": true, - "EAV_ENTITY_ENTITY_TYPE_ID_EAV_ENTITY_TYPE_ENTITY_TYPE_ID": true, - "EAV_ENTITY_STORE_ID_STORE_STORE_ID": true - } - }, - "eav_entity_datetime": { - "column": { - "value_id": true, - "entity_type_id": true, - "attribute_id": true, - "store_id": true, - "entity_id": true, - "value": true - }, - "index": { - "EAV_ENTITY_DATETIME_STORE_ID": true, - "EAV_ENTITY_DATETIME_ATTRIBUTE_ID_VALUE": true, - "EAV_ENTITY_DATETIME_ENTITY_TYPE_ID_VALUE": true - }, - "constraint": { - "PRIMARY": true, - "EAV_ENTITY_DATETIME_ENTITY_ID_EAV_ENTITY_ENTITY_ID": true, - "EAV_ENTT_DTIME_ENTT_TYPE_ID_EAV_ENTT_TYPE_ENTT_TYPE_ID": true, - "EAV_ENTITY_DATETIME_STORE_ID_STORE_STORE_ID": true, - "EAV_ENTITY_DATETIME_ENTITY_ID_ATTRIBUTE_ID_STORE_ID": true - } - }, - "eav_entity_decimal": { - "column": { - "value_id": true, - "entity_type_id": true, - "attribute_id": true, - "store_id": true, - "entity_id": true, - "value": true - }, - "index": { - "EAV_ENTITY_DECIMAL_STORE_ID": true, - "EAV_ENTITY_DECIMAL_ATTRIBUTE_ID_VALUE": true, - "EAV_ENTITY_DECIMAL_ENTITY_TYPE_ID_VALUE": true - }, - "constraint": { - "PRIMARY": true, - "EAV_ENTITY_DECIMAL_ENTITY_ID_EAV_ENTITY_ENTITY_ID": true, - "EAV_ENTITY_DECIMAL_ENTITY_TYPE_ID_EAV_ENTITY_TYPE_ENTITY_TYPE_ID": true, - "EAV_ENTITY_DECIMAL_STORE_ID_STORE_STORE_ID": true, - "EAV_ENTITY_DECIMAL_ENTITY_ID_ATTRIBUTE_ID_STORE_ID": true - } - }, - "eav_entity_int": { - "column": { - "value_id": true, - "entity_type_id": true, - "attribute_id": true, - "store_id": true, - "entity_id": true, - "value": true - }, - "index": { - "EAV_ENTITY_INT_STORE_ID": true, - "EAV_ENTITY_INT_ATTRIBUTE_ID_VALUE": true, - "EAV_ENTITY_INT_ENTITY_TYPE_ID_VALUE": true - }, - "constraint": { - "PRIMARY": true, - "EAV_ENTITY_INT_ENTITY_ID_EAV_ENTITY_ENTITY_ID": true, - "EAV_ENTITY_INT_ENTITY_TYPE_ID_EAV_ENTITY_TYPE_ENTITY_TYPE_ID": true, - "EAV_ENTITY_INT_STORE_ID_STORE_STORE_ID": true, - "EAV_ENTITY_INT_ENTITY_ID_ATTRIBUTE_ID_STORE_ID": true - } - }, - "eav_entity_text": { - "column": { - "value_id": true, - "entity_type_id": true, - "attribute_id": true, - "store_id": true, - "entity_id": true, - "value": true - }, - "index": { - "EAV_ENTITY_TEXT_ENTITY_TYPE_ID": true, - "EAV_ENTITY_TEXT_ATTRIBUTE_ID": true, - "EAV_ENTITY_TEXT_STORE_ID": true - }, - "constraint": { - "PRIMARY": true, - "EAV_ENTITY_TEXT_ENTITY_ID_EAV_ENTITY_ENTITY_ID": true, - "EAV_ENTITY_TEXT_ENTITY_TYPE_ID_EAV_ENTITY_TYPE_ENTITY_TYPE_ID": true, - "EAV_ENTITY_TEXT_STORE_ID_STORE_STORE_ID": true, - "EAV_ENTITY_TEXT_ENTITY_ID_ATTRIBUTE_ID_STORE_ID": true - } - }, - "eav_entity_varchar": { - "column": { - "value_id": true, - "entity_type_id": true, - "attribute_id": true, - "store_id": true, - "entity_id": true, - "value": true - }, - "index": { - "EAV_ENTITY_VARCHAR_STORE_ID": true, - "EAV_ENTITY_VARCHAR_ATTRIBUTE_ID_VALUE": true, - "EAV_ENTITY_VARCHAR_ENTITY_TYPE_ID_VALUE": true - }, - "constraint": { - "PRIMARY": true, - "EAV_ENTITY_VARCHAR_ENTITY_ID_EAV_ENTITY_ENTITY_ID": true, - "EAV_ENTITY_VARCHAR_ENTITY_TYPE_ID_EAV_ENTITY_TYPE_ENTITY_TYPE_ID": true, - "EAV_ENTITY_VARCHAR_STORE_ID_STORE_STORE_ID": true, - "EAV_ENTITY_VARCHAR_ENTITY_ID_ATTRIBUTE_ID_STORE_ID": true - } - }, - "eav_attribute": { - "column": { - "attribute_id": true, - "entity_type_id": true, - "attribute_code": true, - "attribute_model": true, - "backend_model": true, - "backend_type": true, - "backend_table": true, - "frontend_model": true, - "frontend_input": true, - "frontend_label": true, - "frontend_class": true, - "source_model": true, - "is_required": true, - "is_user_defined": true, - "default_value": true, - "is_unique": true, - "note": true - }, - "constraint": { - "PRIMARY": true, - "EAV_ATTRIBUTE_ENTITY_TYPE_ID_EAV_ENTITY_TYPE_ENTITY_TYPE_ID": true, - "EAV_ATTRIBUTE_ENTITY_TYPE_ID_ATTRIBUTE_CODE": true - } - }, - "eav_entity_store": { - "column": { - "entity_store_id": true, - "entity_type_id": true, - "store_id": true, - "increment_prefix": true, - "increment_last_id": true - }, - "index": { - "EAV_ENTITY_STORE_ENTITY_TYPE_ID": true, - "EAV_ENTITY_STORE_STORE_ID": true - }, - "constraint": { - "PRIMARY": true, - "EAV_ENTITY_STORE_ENTITY_TYPE_ID_EAV_ENTITY_TYPE_ENTITY_TYPE_ID": true, - "EAV_ENTITY_STORE_STORE_ID_STORE_STORE_ID": true - } - }, - "eav_attribute_set": { - "column": { - "attribute_set_id": true, - "entity_type_id": true, - "attribute_set_name": true, - "sort_order": true - }, - "index": { - "EAV_ATTRIBUTE_SET_ENTITY_TYPE_ID_SORT_ORDER": true - }, - "constraint": { - "PRIMARY": true, - "EAV_ATTRIBUTE_SET_ENTITY_TYPE_ID_EAV_ENTITY_TYPE_ENTITY_TYPE_ID": true, - "EAV_ATTRIBUTE_SET_ENTITY_TYPE_ID_ATTRIBUTE_SET_NAME": true - } - }, - "eav_attribute_group": { - "column": { - "attribute_group_id": true, - "attribute_set_id": true, - "attribute_group_name": true, - "sort_order": true, - "default_id": true, - "attribute_group_code": true, - "tab_group_code": true - }, - "index": { - "EAV_ATTRIBUTE_GROUP_ATTRIBUTE_SET_ID_SORT_ORDER": true - }, - "constraint": { - "PRIMARY": true, - "EAV_ATTR_GROUP_ATTR_SET_ID_EAV_ATTR_SET_ATTR_SET_ID": true, - "EAV_ATTRIBUTE_GROUP_ATTRIBUTE_SET_ID_ATTRIBUTE_GROUP_NAME": true, - "EAV_ATTRIBUTE_GROUP_ATTRIBUTE_SET_ID_ATTRIBUTE_GROUP_CODE": true, - "CATALOG_CATEGORY_PRODUCT_ATTRIBUTE_SET_ID_ATTRIBUTE_GROUP_CODE": true - } - }, - "eav_entity_attribute": { - "column": { - "entity_attribute_id": true, - "entity_type_id": true, - "attribute_set_id": true, - "attribute_group_id": true, - "attribute_id": true, - "sort_order": true - }, - "index": { - "EAV_ENTITY_ATTRIBUTE_ATTRIBUTE_SET_ID_SORT_ORDER": true, - "EAV_ENTITY_ATTRIBUTE_ATTRIBUTE_ID": true - }, - "constraint": { - "PRIMARY": true, - "EAV_ENTITY_ATTRIBUTE_ATTRIBUTE_ID_EAV_ATTRIBUTE_ATTRIBUTE_ID": true, - "EAV_ENTT_ATTR_ATTR_GROUP_ID_EAV_ATTR_GROUP_ATTR_GROUP_ID": true, - "EAV_ENTITY_ATTRIBUTE_ATTRIBUTE_SET_ID_ATTRIBUTE_ID": true, - "EAV_ENTITY_ATTRIBUTE_ATTRIBUTE_GROUP_ID_ATTRIBUTE_ID": true - } - }, - "eav_attribute_option": { - "column": { - "option_id": true, - "attribute_id": true, - "sort_order": true - }, - "index": { - "EAV_ATTRIBUTE_OPTION_ATTRIBUTE_ID": true - }, - "constraint": { - "PRIMARY": true, - "EAV_ATTRIBUTE_OPTION_ATTRIBUTE_ID_EAV_ATTRIBUTE_ATTRIBUTE_ID": true - } - }, - "eav_attribute_option_value": { - "column": { - "value_id": true, - "option_id": true, - "store_id": true, - "value": true - }, - "index": { - "EAV_ATTRIBUTE_OPTION_VALUE_OPTION_ID": true, - "EAV_ATTRIBUTE_OPTION_VALUE_STORE_ID": true - }, - "constraint": { - "PRIMARY": true, - "EAV_ATTR_OPT_VAL_OPT_ID_EAV_ATTR_OPT_OPT_ID": true, - "EAV_ATTRIBUTE_OPTION_VALUE_STORE_ID_STORE_STORE_ID": true - } - }, - "eav_attribute_label": { - "column": { - "attribute_label_id": true, - "attribute_id": true, - "store_id": true, - "value": true - }, - "index": { - "EAV_ATTRIBUTE_LABEL_STORE_ID": true, - "EAV_ATTRIBUTE_LABEL_ATTRIBUTE_ID_STORE_ID": true - }, - "constraint": { - "PRIMARY": true, - "EAV_ATTRIBUTE_LABEL_ATTRIBUTE_ID_EAV_ATTRIBUTE_ATTRIBUTE_ID": true, - "EAV_ATTRIBUTE_LABEL_STORE_ID_STORE_STORE_ID": true - } - }, - "eav_form_type": { - "column": { - "type_id": true, - "code": true, - "label": true, - "is_system": true, - "theme": true, - "store_id": true - }, - "index": { - "EAV_FORM_TYPE_STORE_ID": true - }, - "constraint": { - "PRIMARY": true, - "EAV_FORM_TYPE_STORE_ID_STORE_STORE_ID": true, - "EAV_FORM_TYPE_CODE_THEME_STORE_ID": true - } - }, - "eav_form_type_entity": { - "column": { - "type_id": true, - "entity_type_id": true - }, - "index": { - "EAV_FORM_TYPE_ENTITY_ENTITY_TYPE_ID": true - }, - "constraint": { - "PRIMARY": true, - "EAV_FORM_TYPE_ENTT_ENTT_TYPE_ID_EAV_ENTT_TYPE_ENTT_TYPE_ID": true, - "EAV_FORM_TYPE_ENTITY_TYPE_ID_EAV_FORM_TYPE_TYPE_ID": true - } - }, - "eav_form_fieldset": { - "column": { - "fieldset_id": true, - "type_id": true, - "code": true, - "sort_order": true - }, - "constraint": { - "PRIMARY": true, - "EAV_FORM_FIELDSET_TYPE_ID_EAV_FORM_TYPE_TYPE_ID": true, - "EAV_FORM_FIELDSET_TYPE_ID_CODE": true - } - }, - "eav_form_fieldset_label": { - "column": { - "fieldset_id": true, - "store_id": true, - "label": true - }, - "index": { - "EAV_FORM_FIELDSET_LABEL_STORE_ID": true - }, - "constraint": { - "PRIMARY": true, - "EAV_FORM_FSET_LBL_FSET_ID_EAV_FORM_FSET_FSET_ID": true, - "EAV_FORM_FIELDSET_LABEL_STORE_ID_STORE_STORE_ID": true - } - }, - "eav_form_element": { - "column": { - "element_id": true, - "type_id": true, - "fieldset_id": true, - "attribute_id": true, - "sort_order": true - }, - "index": { - "EAV_FORM_ELEMENT_FIELDSET_ID": true, - "EAV_FORM_ELEMENT_ATTRIBUTE_ID": true - }, - "constraint": { - "PRIMARY": true, - "EAV_FORM_ELEMENT_ATTRIBUTE_ID_EAV_ATTRIBUTE_ATTRIBUTE_ID": true, - "EAV_FORM_ELEMENT_FIELDSET_ID_EAV_FORM_FIELDSET_FIELDSET_ID": true, - "EAV_FORM_ELEMENT_TYPE_ID_EAV_FORM_TYPE_TYPE_ID": true, - "EAV_FORM_ELEMENT_TYPE_ID_ATTRIBUTE_ID": true + "eav_entity_type": { + "column": { + "entity_type_id": true, + "entity_type_code": true, + "entity_model": true, + "attribute_model": true, + "entity_table": true, + "value_table_prefix": true, + "entity_id_field": true, + "is_data_sharing": true, + "data_sharing_key": true, + "default_attribute_set_id": true, + "increment_model": true, + "increment_per_store": true, + "increment_pad_length": true, + "increment_pad_char": true, + "additional_attribute_table": true, + "entity_attribute_collection": true + }, + "index": { + "EAV_ENTITY_TYPE_ENTITY_TYPE_CODE": true + }, + "constraint": { + "PRIMARY": true + } + }, + "eav_entity": { + "column": { + "entity_id": true, + "entity_type_id": true, + "attribute_set_id": true, + "increment_id": true, + "parent_id": true, + "store_id": true, + "created_at": true, + "updated_at": true, + "is_active": true + }, + "index": { + "EAV_ENTITY_ENTITY_TYPE_ID": true, + "EAV_ENTITY_STORE_ID": true + }, + "constraint": { + "PRIMARY": true, + "EAV_ENTITY_ENTITY_TYPE_ID_EAV_ENTITY_TYPE_ENTITY_TYPE_ID": true, + "EAV_ENTITY_STORE_ID_STORE_STORE_ID": true + } + }, + "eav_entity_datetime": { + "column": { + "value_id": true, + "entity_type_id": true, + "attribute_id": true, + "store_id": true, + "entity_id": true, + "value": true + }, + "index": { + "EAV_ENTITY_DATETIME_STORE_ID": true, + "EAV_ENTITY_DATETIME_ATTRIBUTE_ID_VALUE": true, + "EAV_ENTITY_DATETIME_ENTITY_TYPE_ID_VALUE": true + }, + "constraint": { + "PRIMARY": true, + "EAV_ENTITY_DATETIME_ENTITY_ID_EAV_ENTITY_ENTITY_ID": true, + "EAV_ENTT_DTIME_ENTT_TYPE_ID_EAV_ENTT_TYPE_ENTT_TYPE_ID": true, + "EAV_ENTITY_DATETIME_STORE_ID_STORE_STORE_ID": true, + "EAV_ENTITY_DATETIME_ENTITY_ID_ATTRIBUTE_ID_STORE_ID": true + } + }, + "eav_entity_decimal": { + "column": { + "value_id": true, + "entity_type_id": true, + "attribute_id": true, + "store_id": true, + "entity_id": true, + "value": true + }, + "index": { + "EAV_ENTITY_DECIMAL_STORE_ID": true, + "EAV_ENTITY_DECIMAL_ATTRIBUTE_ID_VALUE": true, + "EAV_ENTITY_DECIMAL_ENTITY_TYPE_ID_VALUE": true + }, + "constraint": { + "PRIMARY": true, + "EAV_ENTITY_DECIMAL_ENTITY_ID_EAV_ENTITY_ENTITY_ID": true, + "EAV_ENTITY_DECIMAL_ENTITY_TYPE_ID_EAV_ENTITY_TYPE_ENTITY_TYPE_ID": true, + "EAV_ENTITY_DECIMAL_STORE_ID_STORE_STORE_ID": true, + "EAV_ENTITY_DECIMAL_ENTITY_ID_ATTRIBUTE_ID_STORE_ID": true + } + }, + "eav_entity_int": { + "column": { + "value_id": true, + "entity_type_id": true, + "attribute_id": true, + "store_id": true, + "entity_id": true, + "value": true + }, + "index": { + "EAV_ENTITY_INT_STORE_ID": true, + "EAV_ENTITY_INT_ATTRIBUTE_ID_VALUE": true, + "EAV_ENTITY_INT_ENTITY_TYPE_ID_VALUE": true + }, + "constraint": { + "PRIMARY": true, + "EAV_ENTITY_INT_ENTITY_ID_EAV_ENTITY_ENTITY_ID": true, + "EAV_ENTITY_INT_ENTITY_TYPE_ID_EAV_ENTITY_TYPE_ENTITY_TYPE_ID": true, + "EAV_ENTITY_INT_STORE_ID_STORE_STORE_ID": true, + "EAV_ENTITY_INT_ENTITY_ID_ATTRIBUTE_ID_STORE_ID": true + } + }, + "eav_entity_text": { + "column": { + "value_id": true, + "entity_type_id": true, + "attribute_id": true, + "store_id": true, + "entity_id": true, + "value": true + }, + "index": { + "EAV_ENTITY_TEXT_ENTITY_TYPE_ID": true, + "EAV_ENTITY_TEXT_ATTRIBUTE_ID": true, + "EAV_ENTITY_TEXT_STORE_ID": true + }, + "constraint": { + "PRIMARY": true, + "EAV_ENTITY_TEXT_ENTITY_ID_EAV_ENTITY_ENTITY_ID": true, + "EAV_ENTITY_TEXT_ENTITY_TYPE_ID_EAV_ENTITY_TYPE_ENTITY_TYPE_ID": true, + "EAV_ENTITY_TEXT_STORE_ID_STORE_STORE_ID": true, + "EAV_ENTITY_TEXT_ENTITY_ID_ATTRIBUTE_ID_STORE_ID": true + } + }, + "eav_entity_varchar": { + "column": { + "value_id": true, + "entity_type_id": true, + "attribute_id": true, + "store_id": true, + "entity_id": true, + "value": true + }, + "index": { + "EAV_ENTITY_VARCHAR_STORE_ID": true, + "EAV_ENTITY_VARCHAR_ATTRIBUTE_ID_VALUE": true, + "EAV_ENTITY_VARCHAR_ENTITY_TYPE_ID_VALUE": true + }, + "constraint": { + "PRIMARY": true, + "EAV_ENTITY_VARCHAR_ENTITY_ID_EAV_ENTITY_ENTITY_ID": true, + "EAV_ENTITY_VARCHAR_ENTITY_TYPE_ID_EAV_ENTITY_TYPE_ENTITY_TYPE_ID": true, + "EAV_ENTITY_VARCHAR_STORE_ID_STORE_STORE_ID": true, + "EAV_ENTITY_VARCHAR_ENTITY_ID_ATTRIBUTE_ID_STORE_ID": true + } + }, + "eav_attribute": { + "column": { + "attribute_id": true, + "entity_type_id": true, + "attribute_code": true, + "attribute_model": true, + "backend_model": true, + "backend_type": true, + "backend_table": true, + "frontend_model": true, + "frontend_input": true, + "frontend_label": true, + "frontend_class": true, + "source_model": true, + "is_required": true, + "is_user_defined": true, + "default_value": true, + "is_unique": true, + "note": true + }, + "constraint": { + "PRIMARY": true, + "EAV_ATTRIBUTE_ENTITY_TYPE_ID_EAV_ENTITY_TYPE_ENTITY_TYPE_ID": true, + "EAV_ATTRIBUTE_ENTITY_TYPE_ID_ATTRIBUTE_CODE": true + } + }, + "eav_entity_store": { + "column": { + "entity_store_id": true, + "entity_type_id": true, + "store_id": true, + "increment_prefix": true, + "increment_last_id": true + }, + "index": { + "EAV_ENTITY_STORE_ENTITY_TYPE_ID": true, + "EAV_ENTITY_STORE_STORE_ID": true + }, + "constraint": { + "PRIMARY": true, + "EAV_ENTITY_STORE_ENTITY_TYPE_ID_EAV_ENTITY_TYPE_ENTITY_TYPE_ID": true, + "EAV_ENTITY_STORE_STORE_ID_STORE_STORE_ID": true + } + }, + "eav_attribute_set": { + "column": { + "attribute_set_id": true, + "entity_type_id": true, + "attribute_set_name": true, + "sort_order": true + }, + "index": { + "EAV_ATTRIBUTE_SET_ENTITY_TYPE_ID_SORT_ORDER": true + }, + "constraint": { + "PRIMARY": true, + "EAV_ATTRIBUTE_SET_ENTITY_TYPE_ID_EAV_ENTITY_TYPE_ENTITY_TYPE_ID": true, + "EAV_ATTRIBUTE_SET_ENTITY_TYPE_ID_ATTRIBUTE_SET_NAME": true + } + }, + "eav_attribute_group": { + "column": { + "attribute_group_id": true, + "attribute_set_id": true, + "attribute_group_name": true, + "sort_order": true, + "default_id": true, + "attribute_group_code": true, + "tab_group_code": true + }, + "index": { + "EAV_ATTRIBUTE_GROUP_ATTRIBUTE_SET_ID_SORT_ORDER": true + }, + "constraint": { + "PRIMARY": true, + "EAV_ATTR_GROUP_ATTR_SET_ID_EAV_ATTR_SET_ATTR_SET_ID": true, + "EAV_ATTRIBUTE_GROUP_ATTRIBUTE_SET_ID_ATTRIBUTE_GROUP_NAME": true, + "EAV_ATTRIBUTE_GROUP_ATTRIBUTE_SET_ID_ATTRIBUTE_GROUP_CODE": true, + "CATALOG_CATEGORY_PRODUCT_ATTRIBUTE_SET_ID_ATTRIBUTE_GROUP_CODE": true + } + }, + "eav_entity_attribute": { + "column": { + "entity_attribute_id": true, + "entity_type_id": true, + "attribute_set_id": true, + "attribute_group_id": true, + "attribute_id": true, + "sort_order": true + }, + "index": { + "EAV_ENTITY_ATTRIBUTE_ATTRIBUTE_SET_ID_SORT_ORDER": true, + "EAV_ENTITY_ATTRIBUTE_ATTRIBUTE_ID": true + }, + "constraint": { + "PRIMARY": true, + "EAV_ENTITY_ATTRIBUTE_ATTRIBUTE_ID_EAV_ATTRIBUTE_ATTRIBUTE_ID": true, + "EAV_ENTT_ATTR_ATTR_GROUP_ID_EAV_ATTR_GROUP_ATTR_GROUP_ID": true, + "EAV_ENTITY_ATTRIBUTE_ATTRIBUTE_SET_ID_ATTRIBUTE_ID": true, + "EAV_ENTITY_ATTRIBUTE_ATTRIBUTE_GROUP_ID_ATTRIBUTE_ID": true + } + }, + "eav_attribute_option": { + "column": { + "option_id": true, + "attribute_id": true, + "sort_order": true + }, + "index": { + "EAV_ATTRIBUTE_OPTION_ATTRIBUTE_ID": true + }, + "constraint": { + "PRIMARY": true, + "EAV_ATTRIBUTE_OPTION_ATTRIBUTE_ID_EAV_ATTRIBUTE_ATTRIBUTE_ID": true + } + }, + "eav_attribute_option_value": { + "column": { + "value_id": true, + "option_id": true, + "store_id": true, + "value": true + }, + "index": { + "EAV_ATTRIBUTE_OPTION_VALUE_OPTION_ID": true, + "EAV_ATTRIBUTE_OPTION_VALUE_STORE_ID": true + }, + "constraint": { + "PRIMARY": true, + "EAV_ATTR_OPT_VAL_OPT_ID_EAV_ATTR_OPT_OPT_ID": true, + "EAV_ATTRIBUTE_OPTION_VALUE_STORE_ID_STORE_STORE_ID": true + } + }, + "eav_attribute_label": { + "column": { + "attribute_label_id": true, + "attribute_id": true, + "store_id": true, + "value": true + }, + "index": { + "EAV_ATTRIBUTE_LABEL_STORE_ID": true, + "EAV_ATTRIBUTE_LABEL_ATTRIBUTE_ID_STORE_ID": true + }, + "constraint": { + "PRIMARY": true, + "EAV_ATTRIBUTE_LABEL_ATTRIBUTE_ID_EAV_ATTRIBUTE_ATTRIBUTE_ID": true, + "EAV_ATTRIBUTE_LABEL_STORE_ID_STORE_STORE_ID": true + } + }, + "eav_form_type": { + "column": { + "type_id": true, + "code": true, + "label": true, + "is_system": true, + "theme": true, + "store_id": true + }, + "index": { + "EAV_FORM_TYPE_STORE_ID": true + }, + "constraint": { + "PRIMARY": true, + "EAV_FORM_TYPE_STORE_ID_STORE_STORE_ID": true, + "EAV_FORM_TYPE_CODE_THEME_STORE_ID": true + } + }, + "eav_form_type_entity": { + "column": { + "type_id": true, + "entity_type_id": true + }, + "index": { + "EAV_FORM_TYPE_ENTITY_ENTITY_TYPE_ID": true + }, + "constraint": { + "PRIMARY": true, + "EAV_FORM_TYPE_ENTT_ENTT_TYPE_ID_EAV_ENTT_TYPE_ENTT_TYPE_ID": true, + "EAV_FORM_TYPE_ENTITY_TYPE_ID_EAV_FORM_TYPE_TYPE_ID": true + } + }, + "eav_form_fieldset": { + "column": { + "fieldset_id": true, + "type_id": true, + "code": true, + "sort_order": true + }, + "constraint": { + "PRIMARY": true, + "EAV_FORM_FIELDSET_TYPE_ID_EAV_FORM_TYPE_TYPE_ID": true, + "EAV_FORM_FIELDSET_TYPE_ID_CODE": true + } + }, + "eav_form_fieldset_label": { + "column": { + "fieldset_id": true, + "store_id": true, + "label": true + }, + "index": { + "EAV_FORM_FIELDSET_LABEL_STORE_ID": true + }, + "constraint": { + "PRIMARY": true, + "EAV_FORM_FSET_LBL_FSET_ID_EAV_FORM_FSET_FSET_ID": true, + "EAV_FORM_FIELDSET_LABEL_STORE_ID_STORE_STORE_ID": true + } + }, + "eav_form_element": { + "column": { + "element_id": true, + "type_id": true, + "fieldset_id": true, + "attribute_id": true, + "sort_order": true + }, + "index": { + "EAV_FORM_ELEMENT_FIELDSET_ID": true, + "EAV_FORM_ELEMENT_ATTRIBUTE_ID": true + }, + "constraint": { + "PRIMARY": true, + "EAV_FORM_ELEMENT_ATTRIBUTE_ID_EAV_ATTRIBUTE_ATTRIBUTE_ID": true, + "EAV_FORM_ELEMENT_FIELDSET_ID_EAV_FORM_FIELDSET_FIELDSET_ID": true, + "EAV_FORM_ELEMENT_TYPE_ID_EAV_FORM_TYPE_TYPE_ID": true, + "EAV_FORM_ELEMENT_TYPE_ID_ATTRIBUTE_ID": true + } } - } -} +} \ No newline at end of file diff --git a/app/code/Magento/Email/etc/db_schema_whitelist.json b/app/code/Magento/Email/etc/db_schema_whitelist.json index 2ad9cddc70f96..471a51771b854 100644 --- a/app/code/Magento/Email/etc/db_schema_whitelist.json +++ b/app/code/Magento/Email/etc/db_schema_whitelist.json @@ -1,26 +1,26 @@ { - "email_template": { - "column": { - "template_id": true, - "template_code": true, - "template_text": true, - "template_styles": true, - "template_type": true, - "template_subject": true, - "template_sender_name": true, - "template_sender_email": true, - "added_at": true, - "modified_at": true, - "orig_template_code": true, - "orig_template_variables": true - }, - "index": { - "EMAIL_TEMPLATE_ADDED_AT": true, - "EMAIL_TEMPLATE_MODIFIED_AT": true - }, - "constraint": { - "PRIMARY": true, - "EMAIL_TEMPLATE_TEMPLATE_CODE": true + "email_template": { + "column": { + "template_id": true, + "template_code": true, + "template_text": true, + "template_styles": true, + "template_type": true, + "template_subject": true, + "template_sender_name": true, + "template_sender_email": true, + "added_at": true, + "modified_at": true, + "orig_template_code": true, + "orig_template_variables": true + }, + "index": { + "EMAIL_TEMPLATE_ADDED_AT": true, + "EMAIL_TEMPLATE_MODIFIED_AT": true + }, + "constraint": { + "PRIMARY": true, + "EMAIL_TEMPLATE_TEMPLATE_CODE": true + } } - } } \ No newline at end of file diff --git a/app/code/Magento/GiftMessage/etc/db_schema_whitelist.json b/app/code/Magento/GiftMessage/etc/db_schema_whitelist.json index 959049be1930d..e3fed1cadd1da 100644 --- a/app/code/Magento/GiftMessage/etc/db_schema_whitelist.json +++ b/app/code/Magento/GiftMessage/etc/db_schema_whitelist.json @@ -1,45 +1,45 @@ { - "gift_message": { - "column": { - "gift_message_id": true, - "customer_id": true, - "sender": true, - "recipient": true, - "message": true + "gift_message": { + "column": { + "gift_message_id": true, + "customer_id": true, + "sender": true, + "recipient": true, + "message": true + }, + "constraint": { + "PRIMARY": true + } }, - "constraint": { - "PRIMARY": true - } - }, - "quote": { - "column": { - "gift_message_id": true - } - }, - "quote_address": { - "column": { - "gift_message_id": true - } - }, - "quote_item": { - "column": { - "gift_message_id": true - } - }, - "quote_address_item": { - "column": { - "gift_message_id": true - } - }, - "sales_order": { - "column": { - "gift_message_id": true - } - }, - "sales_order_item": { - "column": { - "gift_message_id": true, - "gift_message_available": true + "quote": { + "column": { + "gift_message_id": true + } + }, + "quote_address": { + "column": { + "gift_message_id": true + } + }, + "quote_item": { + "column": { + "gift_message_id": true + } + }, + "quote_address_item": { + "column": { + "gift_message_id": true + } + }, + "sales_order": { + "column": { + "gift_message_id": true + } + }, + "sales_order_item": { + "column": { + "gift_message_id": true, + "gift_message_available": true + } } - } } \ No newline at end of file diff --git a/app/code/Magento/GoogleOptimizer/etc/db_schema_whitelist.json b/app/code/Magento/GoogleOptimizer/etc/db_schema_whitelist.json index e112a591cd1c8..20d2d1404a047 100644 --- a/app/code/Magento/GoogleOptimizer/etc/db_schema_whitelist.json +++ b/app/code/Magento/GoogleOptimizer/etc/db_schema_whitelist.json @@ -1,16 +1,16 @@ { - "googleoptimizer_code": { - "column": { - "code_id": true, - "entity_id": true, - "entity_type": true, - "store_id": true, - "experiment_script": true - }, - "constraint": { - "PRIMARY": true, - "GOOGLEOPTIMIZER_CODE_STORE_ID_STORE_STORE_ID": true, - "GOOGLEOPTIMIZER_CODE_STORE_ID_ENTITY_ID_ENTITY_TYPE": true + "googleoptimizer_code": { + "column": { + "code_id": true, + "entity_id": true, + "entity_type": true, + "store_id": true, + "experiment_script": true + }, + "constraint": { + "PRIMARY": true, + "GOOGLEOPTIMIZER_CODE_STORE_ID_STORE_STORE_ID": true, + "GOOGLEOPTIMIZER_CODE_STORE_ID_ENTITY_ID_ENTITY_TYPE": true + } } - } } \ No newline at end of file diff --git a/app/code/Magento/ImportExport/etc/db_schema_whitelist.json b/app/code/Magento/ImportExport/etc/db_schema_whitelist.json index d8f51dd4ef387..e78535d2c7585 100644 --- a/app/code/Magento/ImportExport/etc/db_schema_whitelist.json +++ b/app/code/Magento/ImportExport/etc/db_schema_whitelist.json @@ -1,27 +1,27 @@ { - "importexport_importdata": { - "column": { - "id": true, - "entity": true, - "behavior": true, - "data": true + "importexport_importdata": { + "column": { + "id": true, + "entity": true, + "behavior": true, + "data": true + }, + "constraint": { + "PRIMARY": true + } }, - "constraint": { - "PRIMARY": true + "import_history": { + "column": { + "history_id": true, + "started_at": true, + "user_id": true, + "imported_file": true, + "execution_time": true, + "summary": true, + "error_file": true + }, + "constraint": { + "PRIMARY": true + } } - }, - "import_history": { - "column": { - "history_id": true, - "started_at": true, - "user_id": true, - "imported_file": true, - "execution_time": true, - "summary": true, - "error_file": true - }, - "constraint": { - "PRIMARY": true - } - } } \ No newline at end of file diff --git a/app/code/Magento/Indexer/etc/db_schema_whitelist.json b/app/code/Magento/Indexer/etc/db_schema_whitelist.json index e1b78c94b230a..8c9b55729a737 100644 --- a/app/code/Magento/Indexer/etc/db_schema_whitelist.json +++ b/app/code/Magento/Indexer/etc/db_schema_whitelist.json @@ -1,34 +1,34 @@ { - "indexer_state": { - "column": { - "state_id": true, - "indexer_id": true, - "status": true, - "updated": true, - "hash_config": true + "indexer_state": { + "column": { + "state_id": true, + "indexer_id": true, + "status": true, + "updated": true, + "hash_config": true + }, + "index": { + "INDEXER_STATE_INDEXER_ID": true + }, + "constraint": { + "PRIMARY": true + } }, - "index": { - "INDEXER_STATE_INDEXER_ID": true - }, - "constraint": { - "PRIMARY": true - } - }, - "mview_state": { - "column": { - "state_id": true, - "view_id": true, - "mode": true, - "status": true, - "updated": true, - "version_id": true - }, - "index": { - "MVIEW_STATE_VIEW_ID": true, - "MVIEW_STATE_MODE": true - }, - "constraint": { - "PRIMARY": true + "mview_state": { + "column": { + "state_id": true, + "view_id": true, + "mode": true, + "status": true, + "updated": true, + "version_id": true + }, + "index": { + "MVIEW_STATE_VIEW_ID": true, + "MVIEW_STATE_MODE": true + }, + "constraint": { + "PRIMARY": true + } } - } } \ No newline at end of file diff --git a/app/code/Magento/Integration/etc/db_schema_whitelist.json b/app/code/Magento/Integration/etc/db_schema_whitelist.json index 6513778060288..a7649eeb4ee1e 100644 --- a/app/code/Magento/Integration/etc/db_schema_whitelist.json +++ b/app/code/Magento/Integration/etc/db_schema_whitelist.json @@ -1,97 +1,97 @@ { - "oauth_consumer": { - "column": { - "entity_id": true, - "created_at": true, - "updated_at": true, - "name": true, - "key": true, - "secret": true, - "callback_url": true, - "rejected_callback_url": true + "oauth_consumer": { + "column": { + "entity_id": true, + "created_at": true, + "updated_at": true, + "name": true, + "key": true, + "secret": true, + "callback_url": true, + "rejected_callback_url": true + }, + "index": { + "OAUTH_CONSUMER_CREATED_AT": true, + "OAUTH_CONSUMER_UPDATED_AT": true + }, + "constraint": { + "PRIMARY": true, + "OAUTH_CONSUMER_KEY": true, + "OAUTH_CONSUMER_SECRET": true + } }, - "index": { - "OAUTH_CONSUMER_CREATED_AT": true, - "OAUTH_CONSUMER_UPDATED_AT": true + "oauth_token": { + "column": { + "entity_id": true, + "consumer_id": true, + "admin_id": true, + "customer_id": true, + "type": true, + "token": true, + "secret": true, + "verifier": true, + "callback_url": true, + "revoked": true, + "authorized": true, + "user_type": true, + "created_at": true + }, + "index": { + "OAUTH_TOKEN_CONSUMER_ID": true + }, + "constraint": { + "PRIMARY": true, + "OAUTH_TOKEN_ADMIN_ID_ADMIN_USER_USER_ID": true, + "OAUTH_TOKEN_CONSUMER_ID_OAUTH_CONSUMER_ENTITY_ID": true, + "OAUTH_TOKEN_CUSTOMER_ID_CUSTOMER_ENTITY_ENTITY_ID": true, + "OAUTH_TOKEN_TOKEN": true + } }, - "constraint": { - "PRIMARY": true, - "OAUTH_CONSUMER_KEY": true, - "OAUTH_CONSUMER_SECRET": true - } - }, - "oauth_token": { - "column": { - "entity_id": true, - "consumer_id": true, - "admin_id": true, - "customer_id": true, - "type": true, - "token": true, - "secret": true, - "verifier": true, - "callback_url": true, - "revoked": true, - "authorized": true, - "user_type": true, - "created_at": true - }, - "index": { - "OAUTH_TOKEN_CONSUMER_ID": true - }, - "constraint": { - "PRIMARY": true, - "OAUTH_TOKEN_ADMIN_ID_ADMIN_USER_USER_ID": true, - "OAUTH_TOKEN_CONSUMER_ID_OAUTH_CONSUMER_ENTITY_ID": true, - "OAUTH_TOKEN_CUSTOMER_ID_CUSTOMER_ENTITY_ENTITY_ID": true, - "OAUTH_TOKEN_TOKEN": true - } - }, - "oauth_nonce": { - "column": { - "nonce": true, - "timestamp": true, - "consumer_id": true + "oauth_nonce": { + "column": { + "nonce": true, + "timestamp": true, + "consumer_id": true + }, + "constraint": { + "OAUTH_NONCE_CONSUMER_ID_OAUTH_CONSUMER_ENTITY_ID": true, + "OAUTH_NONCE_NONCE_CONSUMER_ID": true + }, + "index": { + "OAUTH_NONCE_TIMESTAMP": true + } }, - "constraint": { - "OAUTH_NONCE_CONSUMER_ID_OAUTH_CONSUMER_ENTITY_ID": true, - "OAUTH_NONCE_NONCE_CONSUMER_ID": true - }, - "index": { - "OAUTH_NONCE_TIMESTAMP": true - } - }, - "integration": { - "column": { - "integration_id": true, - "name": true, - "email": true, - "endpoint": true, - "status": true, - "consumer_id": true, - "created_at": true, - "updated_at": true, - "setup_type": true, - "identity_link_url": true - }, - "constraint": { - "PRIMARY": true, - "INTEGRATION_CONSUMER_ID_OAUTH_CONSUMER_ENTITY_ID": true, - "INTEGRATION_NAME": true, - "INTEGRATION_CONSUMER_ID": true - } - }, - "oauth_token_request_log": { - "column": { - "log_id": true, - "user_name": true, - "user_type": true, - "failures_count": true, - "lock_expires_at": true + "integration": { + "column": { + "integration_id": true, + "name": true, + "email": true, + "endpoint": true, + "status": true, + "consumer_id": true, + "created_at": true, + "updated_at": true, + "setup_type": true, + "identity_link_url": true + }, + "constraint": { + "PRIMARY": true, + "INTEGRATION_CONSUMER_ID_OAUTH_CONSUMER_ENTITY_ID": true, + "INTEGRATION_NAME": true, + "INTEGRATION_CONSUMER_ID": true + } }, - "constraint": { - "PRIMARY": true, - "OAUTH_TOKEN_REQUEST_LOG_USER_NAME_USER_TYPE": true + "oauth_token_request_log": { + "column": { + "log_id": true, + "user_name": true, + "user_type": true, + "failures_count": true, + "lock_expires_at": true + }, + "constraint": { + "PRIMARY": true, + "OAUTH_TOKEN_REQUEST_LOG_USER_NAME_USER_TYPE": true + } } - } } \ No newline at end of file diff --git a/app/code/Magento/MessageQueue/etc/db_schema_whitelist.json b/app/code/Magento/MessageQueue/etc/db_schema_whitelist.json index 14c30198e87e4..f31981d2ec40f 100644 --- a/app/code/Magento/MessageQueue/etc/db_schema_whitelist.json +++ b/app/code/Magento/MessageQueue/etc/db_schema_whitelist.json @@ -1,13 +1,13 @@ { - "queue_lock": { - "column": { - "id": true, - "message_code": true, - "created_at": true - }, - "constraint": { - "PRIMARY": true, - "QUEUE_LOCK_MESSAGE_CODE": true + "queue_lock": { + "column": { + "id": true, + "message_code": true, + "created_at": true + }, + "constraint": { + "PRIMARY": true, + "QUEUE_LOCK_MESSAGE_CODE": true + } } - } } \ No newline at end of file diff --git a/app/code/Magento/MysqlMq/etc/db_schema_whitelist.json b/app/code/Magento/MysqlMq/etc/db_schema_whitelist.json index 4d5a919320fe9..711d19345f408 100644 --- a/app/code/Magento/MysqlMq/etc/db_schema_whitelist.json +++ b/app/code/Magento/MysqlMq/etc/db_schema_whitelist.json @@ -1,43 +1,43 @@ { - "queue": { - "column": { - "id": true, - "name": true + "queue": { + "column": { + "id": true, + "name": true + }, + "constraint": { + "PRIMARY": true, + "QUEUE_NAME": true + } }, - "constraint": { - "PRIMARY": true, - "QUEUE_NAME": true - } - }, - "queue_message": { - "column": { - "id": true, - "topic_name": true, - "body": true - }, - "constraint": { - "PRIMARY": true - } - }, - "queue_message_status": { - "column": { - "id": true, - "queue_id": true, - "message_id": true, - "updated_at": true, - "status": true, - "number_of_trials": true - }, - "index": { - "QUEUE_MESSAGE_STATUS_STATUS_UPDATED_AT": true + "queue_message": { + "column": { + "id": true, + "topic_name": true, + "body": true + }, + "constraint": { + "PRIMARY": true + } }, - "constraint": { - "PRIMARY": true, - "QUEUE_MESSAGE_STATUS_MESSAGE_ID_QUEUE_MESSAGE_ID": true, - "QUEUE_MESSAGE_ID_QUEUE_MESSAGE_STATUS_MESSAGE_ID": true, - "QUEUE_MESSAGE_STATUS_QUEUE_ID_QUEUE_ID": true, - "QUEUE_ID_QUEUE_MESSAGE_STATUS_QUEUE_ID": true, - "QUEUE_MESSAGE_STATUS_QUEUE_ID_MESSAGE_ID": true + "queue_message_status": { + "column": { + "id": true, + "queue_id": true, + "message_id": true, + "updated_at": true, + "status": true, + "number_of_trials": true + }, + "index": { + "QUEUE_MESSAGE_STATUS_STATUS_UPDATED_AT": true + }, + "constraint": { + "PRIMARY": true, + "QUEUE_MESSAGE_STATUS_MESSAGE_ID_QUEUE_MESSAGE_ID": true, + "QUEUE_MESSAGE_ID_QUEUE_MESSAGE_STATUS_MESSAGE_ID": true, + "QUEUE_MESSAGE_STATUS_QUEUE_ID_QUEUE_ID": true, + "QUEUE_ID_QUEUE_MESSAGE_STATUS_QUEUE_ID": true, + "QUEUE_MESSAGE_STATUS_QUEUE_ID_MESSAGE_ID": true + } } - } -} +} \ No newline at end of file diff --git a/app/code/Magento/NewRelicReporting/etc/db_schema_whitelist.json b/app/code/Magento/NewRelicReporting/etc/db_schema_whitelist.json index f5bf0afbb3e61..aa59e6cf831ea 100644 --- a/app/code/Magento/NewRelicReporting/etc/db_schema_whitelist.json +++ b/app/code/Magento/NewRelicReporting/etc/db_schema_whitelist.json @@ -1,61 +1,61 @@ { - "reporting_counts": { - "column": { - "entity_id": true, - "type": true, - "count": true, - "updated_at": true + "reporting_counts": { + "column": { + "entity_id": true, + "type": true, + "count": true, + "updated_at": true + }, + "constraint": { + "PRIMARY": true + } }, - "constraint": { - "PRIMARY": true - } - }, - "reporting_module_status": { - "column": { - "entity_id": true, - "name": true, - "active": true, - "setup_version": true, - "state": true, - "updated_at": true + "reporting_module_status": { + "column": { + "entity_id": true, + "name": true, + "active": true, + "setup_version": true, + "state": true, + "updated_at": true + }, + "constraint": { + "PRIMARY": true + } }, - "constraint": { - "PRIMARY": true - } - }, - "reporting_orders": { - "column": { - "entity_id": true, - "customer_id": true, - "total": true, - "total_base": true, - "item_count": true, - "updated_at": true + "reporting_orders": { + "column": { + "entity_id": true, + "customer_id": true, + "total": true, + "total_base": true, + "item_count": true, + "updated_at": true + }, + "constraint": { + "PRIMARY": true + } }, - "constraint": { - "PRIMARY": true - } - }, - "reporting_users": { - "column": { - "entity_id": true, - "type": true, - "action": true, - "updated_at": true - }, - "constraint": { - "PRIMARY": true - } - }, - "reporting_system_updates": { - "column": { - "entity_id": true, - "type": true, - "action": true, - "updated_at": true + "reporting_users": { + "column": { + "entity_id": true, + "type": true, + "action": true, + "updated_at": true + }, + "constraint": { + "PRIMARY": true + } }, - "constraint": { - "PRIMARY": true + "reporting_system_updates": { + "column": { + "entity_id": true, + "type": true, + "action": true, + "updated_at": true + }, + "constraint": { + "PRIMARY": true + } } - } } \ No newline at end of file diff --git a/app/code/Magento/Newsletter/etc/db_schema_whitelist.json b/app/code/Magento/Newsletter/etc/db_schema_whitelist.json index 27a42a55a174c..27666096e426e 100644 --- a/app/code/Magento/Newsletter/etc/db_schema_whitelist.json +++ b/app/code/Magento/Newsletter/etc/db_schema_whitelist.json @@ -1,116 +1,116 @@ { - "newsletter_subscriber": { - "column": { - "subscriber_id": true, - "store_id": true, - "change_status_at": true, - "customer_id": true, - "subscriber_email": true, - "subscriber_status": true, - "subscriber_confirm_code": true + "newsletter_subscriber": { + "column": { + "subscriber_id": true, + "store_id": true, + "change_status_at": true, + "customer_id": true, + "subscriber_email": true, + "subscriber_status": true, + "subscriber_confirm_code": true + }, + "index": { + "NEWSLETTER_SUBSCRIBER_CUSTOMER_ID": true, + "NEWSLETTER_SUBSCRIBER_STORE_ID": true, + "NEWSLETTER_SUBSCRIBER_SUBSCRIBER_EMAIL": true + }, + "constraint": { + "PRIMARY": true, + "NEWSLETTER_SUBSCRIBER_STORE_ID_STORE_STORE_ID": true + } }, - "index": { - "NEWSLETTER_SUBSCRIBER_CUSTOMER_ID": true, - "NEWSLETTER_SUBSCRIBER_STORE_ID": true, - "NEWSLETTER_SUBSCRIBER_SUBSCRIBER_EMAIL": true + "newsletter_template": { + "column": { + "template_id": true, + "template_code": true, + "template_text": true, + "template_styles": true, + "template_type": true, + "template_subject": true, + "template_sender_name": true, + "template_sender_email": true, + "template_actual": true, + "added_at": true, + "modified_at": true + }, + "index": { + "NEWSLETTER_TEMPLATE_TEMPLATE_ACTUAL": true, + "NEWSLETTER_TEMPLATE_ADDED_AT": true, + "NEWSLETTER_TEMPLATE_MODIFIED_AT": true + }, + "constraint": { + "PRIMARY": true + } }, - "constraint": { - "PRIMARY": true, - "NEWSLETTER_SUBSCRIBER_STORE_ID_STORE_STORE_ID": true - } - }, - "newsletter_template": { - "column": { - "template_id": true, - "template_code": true, - "template_text": true, - "template_styles": true, - "template_type": true, - "template_subject": true, - "template_sender_name": true, - "template_sender_email": true, - "template_actual": true, - "added_at": true, - "modified_at": true - }, - "index": { - "NEWSLETTER_TEMPLATE_TEMPLATE_ACTUAL": true, - "NEWSLETTER_TEMPLATE_ADDED_AT": true, - "NEWSLETTER_TEMPLATE_MODIFIED_AT": true - }, - "constraint": { - "PRIMARY": true - } - }, - "newsletter_queue": { - "column": { - "queue_id": true, - "template_id": true, - "newsletter_type": true, - "newsletter_text": true, - "newsletter_styles": true, - "newsletter_subject": true, - "newsletter_sender_name": true, - "newsletter_sender_email": true, - "queue_status": true, - "queue_start_at": true, - "queue_finish_at": true - }, - "index": { - "NEWSLETTER_QUEUE_TEMPLATE_ID": true - }, - "constraint": { - "PRIMARY": true, - "NEWSLETTER_QUEUE_TEMPLATE_ID_NEWSLETTER_TEMPLATE_TEMPLATE_ID": true - } - }, - "newsletter_queue_link": { - "column": { - "queue_link_id": true, - "queue_id": true, - "subscriber_id": true, - "letter_sent_at": true - }, - "index": { - "NEWSLETTER_QUEUE_LINK_SUBSCRIBER_ID": true, - "NEWSLETTER_QUEUE_LINK_QUEUE_ID_LETTER_SENT_AT": true - }, - "constraint": { - "PRIMARY": true, - "NEWSLETTER_QUEUE_LINK_QUEUE_ID_NEWSLETTER_QUEUE_QUEUE_ID": true, - "NLTTR_QUEUE_LNK_SUBSCRIBER_ID_NLTTR_SUBSCRIBER_SUBSCRIBER_ID": true - } - }, - "newsletter_queue_store_link": { - "column": { - "queue_id": true, - "store_id": true - }, - "index": { - "NEWSLETTER_QUEUE_STORE_LINK_STORE_ID": true + "newsletter_queue": { + "column": { + "queue_id": true, + "template_id": true, + "newsletter_type": true, + "newsletter_text": true, + "newsletter_styles": true, + "newsletter_subject": true, + "newsletter_sender_name": true, + "newsletter_sender_email": true, + "queue_status": true, + "queue_start_at": true, + "queue_finish_at": true + }, + "index": { + "NEWSLETTER_QUEUE_TEMPLATE_ID": true + }, + "constraint": { + "PRIMARY": true, + "NEWSLETTER_QUEUE_TEMPLATE_ID_NEWSLETTER_TEMPLATE_TEMPLATE_ID": true + } }, - "constraint": { - "PRIMARY": true, - "NEWSLETTER_QUEUE_STORE_LINK_QUEUE_ID_NEWSLETTER_QUEUE_QUEUE_ID": true, - "NEWSLETTER_QUEUE_STORE_LINK_STORE_ID_STORE_STORE_ID": true - } - }, - "newsletter_problem": { - "column": { - "problem_id": true, - "subscriber_id": true, - "queue_id": true, - "problem_error_code": true, - "problem_error_text": true + "newsletter_queue_link": { + "column": { + "queue_link_id": true, + "queue_id": true, + "subscriber_id": true, + "letter_sent_at": true + }, + "index": { + "NEWSLETTER_QUEUE_LINK_SUBSCRIBER_ID": true, + "NEWSLETTER_QUEUE_LINK_QUEUE_ID_LETTER_SENT_AT": true + }, + "constraint": { + "PRIMARY": true, + "NEWSLETTER_QUEUE_LINK_QUEUE_ID_NEWSLETTER_QUEUE_QUEUE_ID": true, + "NLTTR_QUEUE_LNK_SUBSCRIBER_ID_NLTTR_SUBSCRIBER_SUBSCRIBER_ID": true + } }, - "index": { - "NEWSLETTER_PROBLEM_SUBSCRIBER_ID": true, - "NEWSLETTER_PROBLEM_QUEUE_ID": true + "newsletter_queue_store_link": { + "column": { + "queue_id": true, + "store_id": true + }, + "index": { + "NEWSLETTER_QUEUE_STORE_LINK_STORE_ID": true + }, + "constraint": { + "PRIMARY": true, + "NEWSLETTER_QUEUE_STORE_LINK_QUEUE_ID_NEWSLETTER_QUEUE_QUEUE_ID": true, + "NEWSLETTER_QUEUE_STORE_LINK_STORE_ID_STORE_STORE_ID": true + } }, - "constraint": { - "PRIMARY": true, - "NEWSLETTER_PROBLEM_QUEUE_ID_NEWSLETTER_QUEUE_QUEUE_ID": true, - "NLTTR_PROBLEM_SUBSCRIBER_ID_NLTTR_SUBSCRIBER_SUBSCRIBER_ID": true + "newsletter_problem": { + "column": { + "problem_id": true, + "subscriber_id": true, + "queue_id": true, + "problem_error_code": true, + "problem_error_text": true + }, + "index": { + "NEWSLETTER_PROBLEM_SUBSCRIBER_ID": true, + "NEWSLETTER_PROBLEM_QUEUE_ID": true + }, + "constraint": { + "PRIMARY": true, + "NEWSLETTER_PROBLEM_QUEUE_ID_NEWSLETTER_QUEUE_QUEUE_ID": true, + "NLTTR_PROBLEM_SUBSCRIBER_ID_NLTTR_SUBSCRIBER_SUBSCRIBER_ID": true + } } - } -} +} \ No newline at end of file diff --git a/app/code/Magento/OfflineShipping/etc/db_schema_whitelist.json b/app/code/Magento/OfflineShipping/etc/db_schema_whitelist.json index 8a189e711c222..72da62b8159c6 100644 --- a/app/code/Magento/OfflineShipping/etc/db_schema_whitelist.json +++ b/app/code/Magento/OfflineShipping/etc/db_schema_whitelist.json @@ -1,44 +1,44 @@ { - "shipping_tablerate": { - "column": { - "pk": true, - "website_id": true, - "dest_country_id": true, - "dest_region_id": true, - "dest_zip": true, - "condition_name": true, - "condition_value": true, - "price": true, - "cost": true + "shipping_tablerate": { + "column": { + "pk": true, + "website_id": true, + "dest_country_id": true, + "dest_region_id": true, + "dest_zip": true, + "condition_name": true, + "condition_value": true, + "price": true, + "cost": true + }, + "constraint": { + "PRIMARY": true, + "UNQ_D60821CDB2AFACEE1566CFC02D0D4CAA": true + } }, - "constraint": { - "PRIMARY": true, - "UNQ_D60821CDB2AFACEE1566CFC02D0D4CAA": true - } - }, - "salesrule": { - "column": { - "simple_free_shipping": true - } - }, - "sales_order_item": { - "column": { - "free_shipping": true - } - }, - "quote_address": { - "column": { - "free_shipping": true - } - }, - "quote_item": { - "column": { - "free_shipping": true - } - }, - "quote_address_item": { - "column": { - "free_shipping": true + "salesrule": { + "column": { + "simple_free_shipping": true + } + }, + "sales_order_item": { + "column": { + "free_shipping": true + } + }, + "quote_address": { + "column": { + "free_shipping": true + } + }, + "quote_item": { + "column": { + "free_shipping": true + } + }, + "quote_address_item": { + "column": { + "free_shipping": true + } } - } } \ No newline at end of file diff --git a/app/code/Magento/Paypal/etc/db_schema_whitelist.json b/app/code/Magento/Paypal/etc/db_schema_whitelist.json index 64aa8456b5432..8caacbf308232 100644 --- a/app/code/Magento/Paypal/etc/db_schema_whitelist.json +++ b/app/code/Magento/Paypal/etc/db_schema_whitelist.json @@ -1,120 +1,120 @@ { - "paypal_billing_agreement": { - "column": { - "agreement_id": true, - "customer_id": true, - "method_code": true, - "reference_id": true, - "status": true, - "created_at": true, - "updated_at": true, - "store_id": true, - "agreement_label": true + "paypal_billing_agreement": { + "column": { + "agreement_id": true, + "customer_id": true, + "method_code": true, + "reference_id": true, + "status": true, + "created_at": true, + "updated_at": true, + "store_id": true, + "agreement_label": true + }, + "index": { + "PAYPAL_BILLING_AGREEMENT_CUSTOMER_ID": true, + "PAYPAL_BILLING_AGREEMENT_STORE_ID": true + }, + "constraint": { + "PRIMARY": true, + "PAYPAL_BILLING_AGREEMENT_CUSTOMER_ID_CUSTOMER_ENTITY_ENTITY_ID": true, + "PAYPAL_BILLING_AGREEMENT_STORE_ID_STORE_STORE_ID": true + } }, - "index": { - "PAYPAL_BILLING_AGREEMENT_CUSTOMER_ID": true, - "PAYPAL_BILLING_AGREEMENT_STORE_ID": true + "paypal_billing_agreement_order": { + "column": { + "agreement_id": true, + "order_id": true + }, + "index": { + "PAYPAL_BILLING_AGREEMENT_ORDER_ORDER_ID": true + }, + "constraint": { + "PRIMARY": true, + "PAYPAL_BILLING_AGRT_ORDER_AGRT_ID_PAYPAL_BILLING_AGRT_AGRT_ID": true, + "PAYPAL_BILLING_AGREEMENT_ORDER_ORDER_ID_SALES_ORDER_ENTITY_ID": true + } }, - "constraint": { - "PRIMARY": true, - "PAYPAL_BILLING_AGREEMENT_CUSTOMER_ID_CUSTOMER_ENTITY_ENTITY_ID": true, - "PAYPAL_BILLING_AGREEMENT_STORE_ID_STORE_STORE_ID": true - } - }, - "paypal_billing_agreement_order": { - "column": { - "agreement_id": true, - "order_id": true - }, - "index": { - "PAYPAL_BILLING_AGREEMENT_ORDER_ORDER_ID": true - }, - "constraint": { - "PRIMARY": true, - "PAYPAL_BILLING_AGRT_ORDER_AGRT_ID_PAYPAL_BILLING_AGRT_AGRT_ID": true, - "PAYPAL_BILLING_AGREEMENT_ORDER_ORDER_ID_SALES_ORDER_ENTITY_ID": true - } - }, - "paypal_settlement_report": { - "column": { - "report_id": true, - "report_date": true, - "account_id": true, - "filename": true, - "last_modified": true - }, - "constraint": { - "PRIMARY": true, - "PAYPAL_SETTLEMENT_REPORT_REPORT_DATE_ACCOUNT_ID": true - } - }, - "paypal_settlement_report_row": { - "column": { - "row_id": true, - "report_id": true, - "transaction_id": true, - "invoice_id": true, - "paypal_reference_id": true, - "paypal_reference_id_type": true, - "transaction_event_code": true, - "transaction_initiation_date": true, - "transaction_completion_date": true, - "transaction_debit_or_credit": true, - "gross_transaction_amount": true, - "gross_transaction_currency": true, - "fee_debit_or_credit": true, - "fee_amount": true, - "fee_currency": true, - "custom_field": true, - "consumer_id": true, - "payment_tracking_id": true, - "store_id": true + "paypal_settlement_report": { + "column": { + "report_id": true, + "report_date": true, + "account_id": true, + "filename": true, + "last_modified": true + }, + "constraint": { + "PRIMARY": true, + "PAYPAL_SETTLEMENT_REPORT_REPORT_DATE_ACCOUNT_ID": true + } }, - "index": { - "PAYPAL_SETTLEMENT_REPORT_ROW_REPORT_ID": true + "paypal_settlement_report_row": { + "column": { + "row_id": true, + "report_id": true, + "transaction_id": true, + "invoice_id": true, + "paypal_reference_id": true, + "paypal_reference_id_type": true, + "transaction_event_code": true, + "transaction_initiation_date": true, + "transaction_completion_date": true, + "transaction_debit_or_credit": true, + "gross_transaction_amount": true, + "gross_transaction_currency": true, + "fee_debit_or_credit": true, + "fee_amount": true, + "fee_currency": true, + "custom_field": true, + "consumer_id": true, + "payment_tracking_id": true, + "store_id": true + }, + "index": { + "PAYPAL_SETTLEMENT_REPORT_ROW_REPORT_ID": true + }, + "constraint": { + "PRIMARY": true, + "FK_E183E488F593E0DE10C6EBFFEBAC9B55": true + } }, - "constraint": { - "PRIMARY": true, - "FK_E183E488F593E0DE10C6EBFFEBAC9B55": true - } - }, - "paypal_cert": { - "column": { - "cert_id": true, - "website_id": true, - "content": true, - "updated_at": true + "paypal_cert": { + "column": { + "cert_id": true, + "website_id": true, + "content": true, + "updated_at": true + }, + "index": { + "PAYPAL_CERT_WEBSITE_ID": true + }, + "constraint": { + "PRIMARY": true, + "PAYPAL_CERT_WEBSITE_ID_STORE_WEBSITE_WEBSITE_ID": true + } }, - "index": { - "PAYPAL_CERT_WEBSITE_ID": true + "paypal_payment_transaction": { + "column": { + "transaction_id": true, + "txn_id": true, + "additional_information": true, + "created_at": true + }, + "constraint": { + "PRIMARY": true, + "PAYPAL_PAYMENT_TRANSACTION_TXN_ID": true + } }, - "constraint": { - "PRIMARY": true, - "PAYPAL_CERT_WEBSITE_ID_STORE_WEBSITE_WEBSITE_ID": true - } - }, - "paypal_payment_transaction": { - "column": { - "transaction_id": true, - "txn_id": true, - "additional_information": true, - "created_at": true + "quote_payment": { + "column": { + "paypal_payer_id": true, + "paypal_payer_status": true, + "paypal_correlation_id": true + } }, - "constraint": { - "PRIMARY": true, - "PAYPAL_PAYMENT_TRANSACTION_TXN_ID": true - } - }, - "quote_payment": { - "column": { - "paypal_payer_id": true, - "paypal_payer_status": true, - "paypal_correlation_id": true - } - }, - "sales_order": { - "column": { - "paypal_ipn_customer_notified": true + "sales_order": { + "column": { + "paypal_ipn_customer_notified": true + } } - } } \ No newline at end of file diff --git a/app/code/Magento/Persistent/etc/db_schema_whitelist.json b/app/code/Magento/Persistent/etc/db_schema_whitelist.json index 93da6b440faa6..50a4567d4a6f1 100644 --- a/app/code/Magento/Persistent/etc/db_schema_whitelist.json +++ b/app/code/Magento/Persistent/etc/db_schema_whitelist.json @@ -1,27 +1,27 @@ { - "persistent_session": { - "column": { - "persistent_id": true, - "key": true, - "customer_id": true, - "website_id": true, - "info": true, - "updated_at": true + "persistent_session": { + "column": { + "persistent_id": true, + "key": true, + "customer_id": true, + "website_id": true, + "info": true, + "updated_at": true + }, + "index": { + "PERSISTENT_SESSION_UPDATED_AT": true + }, + "constraint": { + "PRIMARY": true, + "PERSISTENT_SESSION_CUSTOMER_ID_CUSTOMER_ENTITY_ENTITY_ID": true, + "PERSISTENT_SESSION_WEBSITE_ID_STORE_WEBSITE_WEBSITE_ID": true, + "PERSISTENT_SESSION_KEY": true, + "PERSISTENT_SESSION_CUSTOMER_ID": true + } }, - "index": { - "PERSISTENT_SESSION_UPDATED_AT": true - }, - "constraint": { - "PRIMARY": true, - "PERSISTENT_SESSION_CUSTOMER_ID_CUSTOMER_ENTITY_ENTITY_ID": true, - "PERSISTENT_SESSION_WEBSITE_ID_STORE_WEBSITE_WEBSITE_ID": true, - "PERSISTENT_SESSION_KEY": true, - "PERSISTENT_SESSION_CUSTOMER_ID": true - } - }, - "quote": { - "column": { - "is_persistent": true + "quote": { + "column": { + "is_persistent": true + } } - } } \ No newline at end of file diff --git a/app/code/Magento/ProductAlert/etc/db_schema_whitelist.json b/app/code/Magento/ProductAlert/etc/db_schema_whitelist.json index 31dd3857dff4e..266d00e04c5bc 100644 --- a/app/code/Magento/ProductAlert/etc/db_schema_whitelist.json +++ b/app/code/Magento/ProductAlert/etc/db_schema_whitelist.json @@ -1,51 +1,51 @@ { - "product_alert_price": { - "column": { - "alert_price_id": true, - "customer_id": true, - "product_id": true, - "price": true, - "website_id": true, - "add_date": true, - "last_send_date": true, - "send_count": true, - "status": true + "product_alert_price": { + "column": { + "alert_price_id": true, + "customer_id": true, + "product_id": true, + "price": true, + "website_id": true, + "add_date": true, + "last_send_date": true, + "send_count": true, + "status": true + }, + "index": { + "PRODUCT_ALERT_PRICE_CUSTOMER_ID": true, + "PRODUCT_ALERT_PRICE_PRODUCT_ID": true, + "PRODUCT_ALERT_PRICE_WEBSITE_ID": true + }, + "constraint": { + "PRIMARY": true, + "PRODUCT_ALERT_PRICE_CUSTOMER_ID_CUSTOMER_ENTITY_ENTITY_ID": true, + "PRODUCT_ALERT_PRICE_PRODUCT_ID_CATALOG_PRODUCT_ENTITY_ENTITY_ID": true, + "PRODUCT_ALERT_PRICE_WEBSITE_ID_STORE_WEBSITE_WEBSITE_ID": true, + "PRODUCT_ALERT_PRICE_PRODUCT_ID_SEQUENCE_PRODUCT_SEQUENCE_VALUE": true + } }, - "index": { - "PRODUCT_ALERT_PRICE_CUSTOMER_ID": true, - "PRODUCT_ALERT_PRICE_PRODUCT_ID": true, - "PRODUCT_ALERT_PRICE_WEBSITE_ID": true - }, - "constraint": { - "PRIMARY": true, - "PRODUCT_ALERT_PRICE_CUSTOMER_ID_CUSTOMER_ENTITY_ENTITY_ID": true, - "PRODUCT_ALERT_PRICE_PRODUCT_ID_CATALOG_PRODUCT_ENTITY_ENTITY_ID": true, - "PRODUCT_ALERT_PRICE_WEBSITE_ID_STORE_WEBSITE_WEBSITE_ID": true, - "PRODUCT_ALERT_PRICE_PRODUCT_ID_SEQUENCE_PRODUCT_SEQUENCE_VALUE": true - } - }, - "product_alert_stock": { - "column": { - "alert_stock_id": true, - "customer_id": true, - "product_id": true, - "website_id": true, - "add_date": true, - "send_date": true, - "send_count": true, - "status": true - }, - "index": { - "PRODUCT_ALERT_STOCK_CUSTOMER_ID": true, - "PRODUCT_ALERT_STOCK_PRODUCT_ID": true, - "PRODUCT_ALERT_STOCK_WEBSITE_ID": true - }, - "constraint": { - "PRIMARY": true, - "PRODUCT_ALERT_STOCK_WEBSITE_ID_STORE_WEBSITE_WEBSITE_ID": true, - "PRODUCT_ALERT_STOCK_CUSTOMER_ID_CUSTOMER_ENTITY_ENTITY_ID": true, - "PRODUCT_ALERT_STOCK_PRODUCT_ID_CATALOG_PRODUCT_ENTITY_ENTITY_ID": true, - "PRODUCT_ALERT_STOCK_PRODUCT_ID_SEQUENCE_PRODUCT_SEQUENCE_VALUE": true + "product_alert_stock": { + "column": { + "alert_stock_id": true, + "customer_id": true, + "product_id": true, + "website_id": true, + "add_date": true, + "send_date": true, + "send_count": true, + "status": true + }, + "index": { + "PRODUCT_ALERT_STOCK_CUSTOMER_ID": true, + "PRODUCT_ALERT_STOCK_PRODUCT_ID": true, + "PRODUCT_ALERT_STOCK_WEBSITE_ID": true + }, + "constraint": { + "PRIMARY": true, + "PRODUCT_ALERT_STOCK_WEBSITE_ID_STORE_WEBSITE_WEBSITE_ID": true, + "PRODUCT_ALERT_STOCK_CUSTOMER_ID_CUSTOMER_ENTITY_ENTITY_ID": true, + "PRODUCT_ALERT_STOCK_PRODUCT_ID_CATALOG_PRODUCT_ENTITY_ENTITY_ID": true, + "PRODUCT_ALERT_STOCK_PRODUCT_ID_SEQUENCE_PRODUCT_SEQUENCE_VALUE": true + } } - } } \ No newline at end of file diff --git a/app/code/Magento/ProductVideo/etc/db_schema_whitelist.json b/app/code/Magento/ProductVideo/etc/db_schema_whitelist.json index b0c73baecd077..78fa6538da07c 100644 --- a/app/code/Magento/ProductVideo/etc/db_schema_whitelist.json +++ b/app/code/Magento/ProductVideo/etc/db_schema_whitelist.json @@ -1,18 +1,18 @@ { - "catalog_product_entity_media_gallery_value_video": { - "column": { - "value_id": true, - "store_id": true, - "provider": true, - "url": true, - "title": true, - "description": true, - "metadata": true - }, - "constraint": { - "FK_6FDF205946906B0E653E60AA769899F8": true, - "CAT_PRD_ENTT_MDA_GLR_VAL_VIDEO_STORE_ID_STORE_STORE_ID": true, - "CAT_PRD_ENTT_MDA_GLR_VAL_VIDEO_VAL_ID_STORE_ID": true + "catalog_product_entity_media_gallery_value_video": { + "column": { + "value_id": true, + "store_id": true, + "provider": true, + "url": true, + "title": true, + "description": true, + "metadata": true + }, + "constraint": { + "FK_6FDF205946906B0E653E60AA769899F8": true, + "CAT_PRD_ENTT_MDA_GLR_VAL_VIDEO_STORE_ID_STORE_STORE_ID": true, + "CAT_PRD_ENTT_MDA_GLR_VAL_VIDEO_VAL_ID_STORE_ID": true + } } - } } \ No newline at end of file diff --git a/app/code/Magento/Quote/etc/db_schema_whitelist.json b/app/code/Magento/Quote/etc/db_schema_whitelist.json index f7898c9d15dc0..c2cc34293dcb5 100644 --- a/app/code/Magento/Quote/etc/db_schema_whitelist.json +++ b/app/code/Magento/Quote/etc/db_schema_whitelist.json @@ -1,329 +1,329 @@ { - "quote": { - "column": { - "entity_id": true, - "store_id": true, - "created_at": true, - "updated_at": true, - "converted_at": true, - "is_active": true, - "is_virtual": true, - "is_multi_shipping": true, - "items_count": true, - "items_qty": true, - "orig_order_id": true, - "store_to_base_rate": true, - "store_to_quote_rate": true, - "base_currency_code": true, - "store_currency_code": true, - "quote_currency_code": true, - "grand_total": true, - "base_grand_total": true, - "checkout_method": true, - "customer_id": true, - "customer_tax_class_id": true, - "customer_group_id": true, - "customer_email": true, - "customer_prefix": true, - "customer_firstname": true, - "customer_middlename": true, - "customer_lastname": true, - "customer_suffix": true, - "customer_dob": true, - "customer_note": true, - "customer_note_notify": true, - "customer_is_guest": true, - "remote_ip": true, - "applied_rule_ids": true, - "reserved_order_id": true, - "password_hash": true, - "coupon_code": true, - "global_currency_code": true, - "base_to_global_rate": true, - "base_to_quote_rate": true, - "customer_taxvat": true, - "customer_gender": true, - "subtotal": true, - "base_subtotal": true, - "subtotal_with_discount": true, - "base_subtotal_with_discount": true, - "is_changed": true, - "trigger_recollect": true, - "ext_shipping_info": true + "quote": { + "column": { + "entity_id": true, + "store_id": true, + "created_at": true, + "updated_at": true, + "converted_at": true, + "is_active": true, + "is_virtual": true, + "is_multi_shipping": true, + "items_count": true, + "items_qty": true, + "orig_order_id": true, + "store_to_base_rate": true, + "store_to_quote_rate": true, + "base_currency_code": true, + "store_currency_code": true, + "quote_currency_code": true, + "grand_total": true, + "base_grand_total": true, + "checkout_method": true, + "customer_id": true, + "customer_tax_class_id": true, + "customer_group_id": true, + "customer_email": true, + "customer_prefix": true, + "customer_firstname": true, + "customer_middlename": true, + "customer_lastname": true, + "customer_suffix": true, + "customer_dob": true, + "customer_note": true, + "customer_note_notify": true, + "customer_is_guest": true, + "remote_ip": true, + "applied_rule_ids": true, + "reserved_order_id": true, + "password_hash": true, + "coupon_code": true, + "global_currency_code": true, + "base_to_global_rate": true, + "base_to_quote_rate": true, + "customer_taxvat": true, + "customer_gender": true, + "subtotal": true, + "base_subtotal": true, + "subtotal_with_discount": true, + "base_subtotal_with_discount": true, + "is_changed": true, + "trigger_recollect": true, + "ext_shipping_info": true + }, + "index": { + "QUOTE_CUSTOMER_ID_STORE_ID_IS_ACTIVE": true, + "QUOTE_STORE_ID": true + }, + "constraint": { + "PRIMARY": true, + "QUOTE_STORE_ID_STORE_STORE_ID": true + } }, - "index": { - "QUOTE_CUSTOMER_ID_STORE_ID_IS_ACTIVE": true, - "QUOTE_STORE_ID": true + "quote_address": { + "column": { + "address_id": true, + "quote_id": true, + "created_at": true, + "updated_at": true, + "customer_id": true, + "save_in_address_book": true, + "customer_address_id": true, + "address_type": true, + "email": true, + "prefix": true, + "firstname": true, + "middlename": true, + "lastname": true, + "suffix": true, + "company": true, + "street": true, + "city": true, + "region": true, + "region_id": true, + "postcode": true, + "country_id": true, + "telephone": true, + "fax": true, + "same_as_billing": true, + "collect_shipping_rates": true, + "shipping_method": true, + "shipping_description": true, + "weight": true, + "subtotal": true, + "base_subtotal": true, + "subtotal_with_discount": true, + "base_subtotal_with_discount": true, + "tax_amount": true, + "base_tax_amount": true, + "shipping_amount": true, + "base_shipping_amount": true, + "shipping_tax_amount": true, + "base_shipping_tax_amount": true, + "discount_amount": true, + "base_discount_amount": true, + "grand_total": true, + "base_grand_total": true, + "customer_notes": true, + "applied_taxes": true, + "discount_description": true, + "shipping_discount_amount": true, + "base_shipping_discount_amount": true, + "subtotal_incl_tax": true, + "base_subtotal_total_incl_tax": true, + "discount_tax_compensation_amount": true, + "base_discount_tax_compensation_amount": true, + "shipping_discount_tax_compensation_amount": true, + "base_shipping_discount_tax_compensation_amnt": true, + "shipping_incl_tax": true, + "base_shipping_incl_tax": true, + "vat_id": true, + "vat_is_valid": true, + "vat_request_id": true, + "vat_request_date": true, + "vat_request_success": true + }, + "index": { + "QUOTE_ADDRESS_QUOTE_ID": true + }, + "constraint": { + "PRIMARY": true, + "QUOTE_ADDRESS_QUOTE_ID_QUOTE_ENTITY_ID": true + } }, - "constraint": { - "PRIMARY": true, - "QUOTE_STORE_ID_STORE_STORE_ID": true - } - }, - "quote_address": { - "column": { - "address_id": true, - "quote_id": true, - "created_at": true, - "updated_at": true, - "customer_id": true, - "save_in_address_book": true, - "customer_address_id": true, - "address_type": true, - "email": true, - "prefix": true, - "firstname": true, - "middlename": true, - "lastname": true, - "suffix": true, - "company": true, - "street": true, - "city": true, - "region": true, - "region_id": true, - "postcode": true, - "country_id": true, - "telephone": true, - "fax": true, - "same_as_billing": true, - "collect_shipping_rates": true, - "shipping_method": true, - "shipping_description": true, - "weight": true, - "subtotal": true, - "base_subtotal": true, - "subtotal_with_discount": true, - "base_subtotal_with_discount": true, - "tax_amount": true, - "base_tax_amount": true, - "shipping_amount": true, - "base_shipping_amount": true, - "shipping_tax_amount": true, - "base_shipping_tax_amount": true, - "discount_amount": true, - "base_discount_amount": true, - "grand_total": true, - "base_grand_total": true, - "customer_notes": true, - "applied_taxes": true, - "discount_description": true, - "shipping_discount_amount": true, - "base_shipping_discount_amount": true, - "subtotal_incl_tax": true, - "base_subtotal_total_incl_tax": true, - "discount_tax_compensation_amount": true, - "base_discount_tax_compensation_amount": true, - "shipping_discount_tax_compensation_amount": true, - "base_shipping_discount_tax_compensation_amnt": true, - "shipping_incl_tax": true, - "base_shipping_incl_tax": true, - "vat_id": true, - "vat_is_valid": true, - "vat_request_id": true, - "vat_request_date": true, - "vat_request_success": true - }, - "index": { - "QUOTE_ADDRESS_QUOTE_ID": true - }, - "constraint": { - "PRIMARY": true, - "QUOTE_ADDRESS_QUOTE_ID_QUOTE_ENTITY_ID": true - } - }, - "quote_item": { - "column": { - "item_id": true, - "quote_id": true, - "created_at": true, - "updated_at": true, - "product_id": true, - "store_id": true, - "parent_item_id": true, - "is_virtual": true, - "sku": true, - "name": true, - "description": true, - "applied_rule_ids": true, - "additional_data": true, - "is_qty_decimal": true, - "no_discount": true, - "weight": true, - "qty": true, - "price": true, - "base_price": true, - "custom_price": true, - "discount_percent": true, - "discount_amount": true, - "base_discount_amount": true, - "tax_percent": true, - "tax_amount": true, - "base_tax_amount": true, - "row_total": true, - "base_row_total": true, - "row_total_with_discount": true, - "row_weight": true, - "product_type": true, - "base_tax_before_discount": true, - "tax_before_discount": true, - "original_custom_price": true, - "redirect_url": true, - "base_cost": true, - "price_incl_tax": true, - "base_price_incl_tax": true, - "row_total_incl_tax": true, - "base_row_total_incl_tax": true, - "discount_tax_compensation_amount": true, - "base_discount_tax_compensation_amount": true - }, - "index": { - "QUOTE_ITEM_PARENT_ITEM_ID": true, - "QUOTE_ITEM_PRODUCT_ID": true, - "QUOTE_ITEM_QUOTE_ID": true, - "QUOTE_ITEM_STORE_ID": true - }, - "constraint": { - "PRIMARY": true, - "QUOTE_ITEM_PARENT_ITEM_ID_QUOTE_ITEM_ITEM_ID": true, - "QUOTE_ITEM_QUOTE_ID_QUOTE_ENTITY_ID": true, - "QUOTE_ITEM_STORE_ID_STORE_STORE_ID": true - } - }, - "quote_address_item": { - "column": { - "address_item_id": true, - "parent_item_id": true, - "quote_address_id": true, - "quote_item_id": true, - "created_at": true, - "updated_at": true, - "applied_rule_ids": true, - "additional_data": true, - "weight": true, - "qty": true, - "discount_amount": true, - "tax_amount": true, - "row_total": true, - "base_row_total": true, - "row_total_with_discount": true, - "base_discount_amount": true, - "base_tax_amount": true, - "row_weight": true, - "product_id": true, - "super_product_id": true, - "parent_product_id": true, - "sku": true, - "image": true, - "name": true, - "description": true, - "is_qty_decimal": true, - "price": true, - "discount_percent": true, - "no_discount": true, - "tax_percent": true, - "base_price": true, - "base_cost": true, - "price_incl_tax": true, - "base_price_incl_tax": true, - "row_total_incl_tax": true, - "base_row_total_incl_tax": true, - "discount_tax_compensation_amount": true, - "base_discount_tax_compensation_amount": true - }, - "index": { - "QUOTE_ADDRESS_ITEM_QUOTE_ADDRESS_ID": true, - "QUOTE_ADDRESS_ITEM_PARENT_ITEM_ID": true, - "QUOTE_ADDRESS_ITEM_QUOTE_ITEM_ID": true + "quote_item": { + "column": { + "item_id": true, + "quote_id": true, + "created_at": true, + "updated_at": true, + "product_id": true, + "store_id": true, + "parent_item_id": true, + "is_virtual": true, + "sku": true, + "name": true, + "description": true, + "applied_rule_ids": true, + "additional_data": true, + "is_qty_decimal": true, + "no_discount": true, + "weight": true, + "qty": true, + "price": true, + "base_price": true, + "custom_price": true, + "discount_percent": true, + "discount_amount": true, + "base_discount_amount": true, + "tax_percent": true, + "tax_amount": true, + "base_tax_amount": true, + "row_total": true, + "base_row_total": true, + "row_total_with_discount": true, + "row_weight": true, + "product_type": true, + "base_tax_before_discount": true, + "tax_before_discount": true, + "original_custom_price": true, + "redirect_url": true, + "base_cost": true, + "price_incl_tax": true, + "base_price_incl_tax": true, + "row_total_incl_tax": true, + "base_row_total_incl_tax": true, + "discount_tax_compensation_amount": true, + "base_discount_tax_compensation_amount": true + }, + "index": { + "QUOTE_ITEM_PARENT_ITEM_ID": true, + "QUOTE_ITEM_PRODUCT_ID": true, + "QUOTE_ITEM_QUOTE_ID": true, + "QUOTE_ITEM_STORE_ID": true + }, + "constraint": { + "PRIMARY": true, + "QUOTE_ITEM_PARENT_ITEM_ID_QUOTE_ITEM_ITEM_ID": true, + "QUOTE_ITEM_QUOTE_ID_QUOTE_ENTITY_ID": true, + "QUOTE_ITEM_STORE_ID_STORE_STORE_ID": true + } }, - "constraint": { - "PRIMARY": true, - "QUOTE_ADDRESS_ITEM_QUOTE_ADDRESS_ID_QUOTE_ADDRESS_ADDRESS_ID": true, - "QUOTE_ADDR_ITEM_PARENT_ITEM_ID_QUOTE_ADDR_ITEM_ADDR_ITEM_ID": true, - "QUOTE_ADDRESS_ITEM_QUOTE_ITEM_ID_QUOTE_ITEM_ITEM_ID": true - } - }, - "quote_item_option": { - "column": { - "option_id": true, - "item_id": true, - "product_id": true, - "code": true, - "value": true - }, - "index": { - "QUOTE_ITEM_OPTION_ITEM_ID": true - }, - "constraint": { - "PRIMARY": true, - "QUOTE_ITEM_OPTION_ITEM_ID_QUOTE_ITEM_ITEM_ID": true - } - }, - "quote_payment": { - "column": { - "payment_id": true, - "quote_id": true, - "created_at": true, - "updated_at": true, - "method": true, - "cc_type": true, - "cc_number_enc": true, - "cc_last_4": true, - "cc_cid_enc": true, - "cc_owner": true, - "cc_exp_month": true, - "cc_exp_year": true, - "cc_ss_owner": true, - "cc_ss_start_month": true, - "cc_ss_start_year": true, - "po_number": true, - "additional_data": true, - "cc_ss_issue": true, - "additional_information": true + "quote_address_item": { + "column": { + "address_item_id": true, + "parent_item_id": true, + "quote_address_id": true, + "quote_item_id": true, + "created_at": true, + "updated_at": true, + "applied_rule_ids": true, + "additional_data": true, + "weight": true, + "qty": true, + "discount_amount": true, + "tax_amount": true, + "row_total": true, + "base_row_total": true, + "row_total_with_discount": true, + "base_discount_amount": true, + "base_tax_amount": true, + "row_weight": true, + "product_id": true, + "super_product_id": true, + "parent_product_id": true, + "sku": true, + "image": true, + "name": true, + "description": true, + "is_qty_decimal": true, + "price": true, + "discount_percent": true, + "no_discount": true, + "tax_percent": true, + "base_price": true, + "base_cost": true, + "price_incl_tax": true, + "base_price_incl_tax": true, + "row_total_incl_tax": true, + "base_row_total_incl_tax": true, + "discount_tax_compensation_amount": true, + "base_discount_tax_compensation_amount": true + }, + "index": { + "QUOTE_ADDRESS_ITEM_QUOTE_ADDRESS_ID": true, + "QUOTE_ADDRESS_ITEM_PARENT_ITEM_ID": true, + "QUOTE_ADDRESS_ITEM_QUOTE_ITEM_ID": true + }, + "constraint": { + "PRIMARY": true, + "QUOTE_ADDRESS_ITEM_QUOTE_ADDRESS_ID_QUOTE_ADDRESS_ADDRESS_ID": true, + "QUOTE_ADDR_ITEM_PARENT_ITEM_ID_QUOTE_ADDR_ITEM_ADDR_ITEM_ID": true, + "QUOTE_ADDRESS_ITEM_QUOTE_ITEM_ID_QUOTE_ITEM_ITEM_ID": true + } }, - "index": { - "QUOTE_PAYMENT_QUOTE_ID": true + "quote_item_option": { + "column": { + "option_id": true, + "item_id": true, + "product_id": true, + "code": true, + "value": true + }, + "index": { + "QUOTE_ITEM_OPTION_ITEM_ID": true + }, + "constraint": { + "PRIMARY": true, + "QUOTE_ITEM_OPTION_ITEM_ID_QUOTE_ITEM_ITEM_ID": true + } }, - "constraint": { - "PRIMARY": true, - "QUOTE_PAYMENT_QUOTE_ID_QUOTE_ENTITY_ID": true - } - }, - "quote_shipping_rate": { - "column": { - "rate_id": true, - "address_id": true, - "created_at": true, - "updated_at": true, - "carrier": true, - "carrier_title": true, - "code": true, - "method": true, - "method_description": true, - "price": true, - "error_message": true, - "method_title": true - }, - "index": { - "QUOTE_SHIPPING_RATE_ADDRESS_ID": true - }, - "constraint": { - "PRIMARY": true, - "QUOTE_SHIPPING_RATE_ADDRESS_ID_QUOTE_ADDRESS_ADDRESS_ID": true - } - }, - "quote_id_mask": { - "column": { - "entity_id": true, - "quote_id": true, - "masked_id": true + "quote_payment": { + "column": { + "payment_id": true, + "quote_id": true, + "created_at": true, + "updated_at": true, + "method": true, + "cc_type": true, + "cc_number_enc": true, + "cc_last_4": true, + "cc_cid_enc": true, + "cc_owner": true, + "cc_exp_month": true, + "cc_exp_year": true, + "cc_ss_owner": true, + "cc_ss_start_month": true, + "cc_ss_start_year": true, + "po_number": true, + "additional_data": true, + "cc_ss_issue": true, + "additional_information": true + }, + "index": { + "QUOTE_PAYMENT_QUOTE_ID": true + }, + "constraint": { + "PRIMARY": true, + "QUOTE_PAYMENT_QUOTE_ID_QUOTE_ENTITY_ID": true + } }, - "index": { - "QUOTE_ID_MASK_QUOTE_ID": true, - "QUOTE_ID_MASK_MASKED_ID": true + "quote_shipping_rate": { + "column": { + "rate_id": true, + "address_id": true, + "created_at": true, + "updated_at": true, + "carrier": true, + "carrier_title": true, + "code": true, + "method": true, + "method_description": true, + "price": true, + "error_message": true, + "method_title": true + }, + "index": { + "QUOTE_SHIPPING_RATE_ADDRESS_ID": true + }, + "constraint": { + "PRIMARY": true, + "QUOTE_SHIPPING_RATE_ADDRESS_ID_QUOTE_ADDRESS_ADDRESS_ID": true + } }, - "constraint": { - "PRIMARY": true, - "QUOTE_ID_MASK_QUOTE_ID_QUOTE_ENTITY_ID": true + "quote_id_mask": { + "column": { + "entity_id": true, + "quote_id": true, + "masked_id": true + }, + "index": { + "QUOTE_ID_MASK_QUOTE_ID": true, + "QUOTE_ID_MASK_MASKED_ID": true + }, + "constraint": { + "PRIMARY": true, + "QUOTE_ID_MASK_QUOTE_ID_QUOTE_ENTITY_ID": true + } } - } } \ No newline at end of file diff --git a/app/code/Magento/ReleaseNotification/etc/db_schema_whitelist.json b/app/code/Magento/ReleaseNotification/etc/db_schema_whitelist.json index d44e071b00c7c..5edb2b7010be6 100644 --- a/app/code/Magento/ReleaseNotification/etc/db_schema_whitelist.json +++ b/app/code/Magento/ReleaseNotification/etc/db_schema_whitelist.json @@ -1,14 +1,14 @@ { - "release_notification_viewer_log": { - "column": { - "id": true, - "viewer_id": true, - "last_view_version": true - }, - "constraint": { - "PRIMARY": true, - "RELEASE_NOTIFICATION_VIEWER_LOG_VIEWER_ID_ADMIN_USER_USER_ID": true, - "RELEASE_NOTIFICATION_VIEWER_LOG_VIEWER_ID": true + "release_notification_viewer_log": { + "column": { + "id": true, + "viewer_id": true, + "last_view_version": true + }, + "constraint": { + "PRIMARY": true, + "RELEASE_NOTIFICATION_VIEWER_LOG_VIEWER_ID_ADMIN_USER_USER_ID": true, + "RELEASE_NOTIFICATION_VIEWER_LOG_VIEWER_ID": true + } } - } } \ No newline at end of file diff --git a/app/code/Magento/Reports/etc/db_schema_whitelist.json b/app/code/Magento/Reports/etc/db_schema_whitelist.json index 458b2ea8fa803..8f55ef4fdbee6 100644 --- a/app/code/Magento/Reports/etc/db_schema_whitelist.json +++ b/app/code/Magento/Reports/etc/db_schema_whitelist.json @@ -1,152 +1,152 @@ { - "report_compared_product_index": { - "column": { - "index_id": true, - "visitor_id": true, - "customer_id": true, - "product_id": true, - "store_id": true, - "added_at": true + "report_compared_product_index": { + "column": { + "index_id": true, + "visitor_id": true, + "customer_id": true, + "product_id": true, + "store_id": true, + "added_at": true + }, + "index": { + "REPORT_COMPARED_PRODUCT_INDEX_STORE_ID": true, + "REPORT_COMPARED_PRODUCT_INDEX_ADDED_AT": true, + "REPORT_COMPARED_PRODUCT_INDEX_PRODUCT_ID": true + }, + "constraint": { + "PRIMARY": true, + "REPORT_CMPD_PRD_IDX_CSTR_ID_CSTR_ENTT_ENTT_ID": true, + "REPORT_CMPD_PRD_IDX_PRD_ID_CAT_PRD_ENTT_ENTT_ID": true, + "REPORT_COMPARED_PRODUCT_INDEX_STORE_ID_STORE_STORE_ID": true, + "REPORT_COMPARED_PRODUCT_INDEX_VISITOR_ID_PRODUCT_ID": true, + "REPORT_COMPARED_PRODUCT_INDEX_CUSTOMER_ID_PRODUCT_ID": true, + "REPORT_CMPD_PRD_IDX_PRD_ID_SEQUENCE_PRD_SEQUENCE_VAL": true + } }, - "index": { - "REPORT_COMPARED_PRODUCT_INDEX_STORE_ID": true, - "REPORT_COMPARED_PRODUCT_INDEX_ADDED_AT": true, - "REPORT_COMPARED_PRODUCT_INDEX_PRODUCT_ID": true + "report_viewed_product_index": { + "column": { + "index_id": true, + "visitor_id": true, + "customer_id": true, + "product_id": true, + "store_id": true, + "added_at": true + }, + "index": { + "REPORT_VIEWED_PRODUCT_INDEX_STORE_ID": true, + "REPORT_VIEWED_PRODUCT_INDEX_ADDED_AT": true, + "REPORT_VIEWED_PRODUCT_INDEX_PRODUCT_ID": true + }, + "constraint": { + "PRIMARY": true, + "REPORT_VIEWED_PRD_IDX_CSTR_ID_CSTR_ENTT_ENTT_ID": true, + "REPORT_VIEWED_PRD_IDX_PRD_ID_CAT_PRD_ENTT_ENTT_ID": true, + "REPORT_VIEWED_PRODUCT_INDEX_STORE_ID_STORE_STORE_ID": true, + "REPORT_VIEWED_PRODUCT_INDEX_VISITOR_ID_PRODUCT_ID": true, + "REPORT_VIEWED_PRODUCT_INDEX_CUSTOMER_ID_PRODUCT_ID": true, + "REPORT_VIEWED_PRD_IDX_PRD_ID_SEQUENCE_PRD_SEQUENCE_VAL": true + } }, - "constraint": { - "PRIMARY": true, - "REPORT_CMPD_PRD_IDX_CSTR_ID_CSTR_ENTT_ENTT_ID": true, - "REPORT_CMPD_PRD_IDX_PRD_ID_CAT_PRD_ENTT_ENTT_ID": true, - "REPORT_COMPARED_PRODUCT_INDEX_STORE_ID_STORE_STORE_ID": true, - "REPORT_COMPARED_PRODUCT_INDEX_VISITOR_ID_PRODUCT_ID": true, - "REPORT_COMPARED_PRODUCT_INDEX_CUSTOMER_ID_PRODUCT_ID": true, - "REPORT_CMPD_PRD_IDX_PRD_ID_SEQUENCE_PRD_SEQUENCE_VAL": true - } - }, - "report_viewed_product_index": { - "column": { - "index_id": true, - "visitor_id": true, - "customer_id": true, - "product_id": true, - "store_id": true, - "added_at": true - }, - "index": { - "REPORT_VIEWED_PRODUCT_INDEX_STORE_ID": true, - "REPORT_VIEWED_PRODUCT_INDEX_ADDED_AT": true, - "REPORT_VIEWED_PRODUCT_INDEX_PRODUCT_ID": true + "report_event_types": { + "column": { + "event_type_id": true, + "event_name": true, + "customer_login": true + }, + "constraint": { + "PRIMARY": true + } }, - "constraint": { - "PRIMARY": true, - "REPORT_VIEWED_PRD_IDX_CSTR_ID_CSTR_ENTT_ENTT_ID": true, - "REPORT_VIEWED_PRD_IDX_PRD_ID_CAT_PRD_ENTT_ENTT_ID": true, - "REPORT_VIEWED_PRODUCT_INDEX_STORE_ID_STORE_STORE_ID": true, - "REPORT_VIEWED_PRODUCT_INDEX_VISITOR_ID_PRODUCT_ID": true, - "REPORT_VIEWED_PRODUCT_INDEX_CUSTOMER_ID_PRODUCT_ID": true, - "REPORT_VIEWED_PRD_IDX_PRD_ID_SEQUENCE_PRD_SEQUENCE_VAL": true - } - }, - "report_event_types": { - "column": { - "event_type_id": true, - "event_name": true, - "customer_login": true + "report_event": { + "column": { + "event_id": true, + "logged_at": true, + "event_type_id": true, + "object_id": true, + "subject_id": true, + "subtype": true, + "store_id": true + }, + "index": { + "REPORT_EVENT_EVENT_TYPE_ID": true, + "REPORT_EVENT_SUBJECT_ID": true, + "REPORT_EVENT_OBJECT_ID": true, + "REPORT_EVENT_SUBTYPE": true, + "REPORT_EVENT_STORE_ID": true + }, + "constraint": { + "PRIMARY": true, + "REPORT_EVENT_STORE_ID_STORE_STORE_ID": true, + "REPORT_EVENT_EVENT_TYPE_ID_REPORT_EVENT_TYPES_EVENT_TYPE_ID": true + } }, - "constraint": { - "PRIMARY": true - } - }, - "report_event": { - "column": { - "event_id": true, - "logged_at": true, - "event_type_id": true, - "object_id": true, - "subject_id": true, - "subtype": true, - "store_id": true - }, - "index": { - "REPORT_EVENT_EVENT_TYPE_ID": true, - "REPORT_EVENT_SUBJECT_ID": true, - "REPORT_EVENT_OBJECT_ID": true, - "REPORT_EVENT_SUBTYPE": true, - "REPORT_EVENT_STORE_ID": true - }, - "constraint": { - "PRIMARY": true, - "REPORT_EVENT_STORE_ID_STORE_STORE_ID": true, - "REPORT_EVENT_EVENT_TYPE_ID_REPORT_EVENT_TYPES_EVENT_TYPE_ID": true - } - }, - "report_viewed_product_aggregated_daily": { - "column": { - "id": true, - "period": true, - "store_id": true, - "product_id": true, - "product_name": true, - "product_price": true, - "views_num": true, - "rating_pos": true - }, - "index": { - "REPORT_VIEWED_PRODUCT_AGGREGATED_DAILY_STORE_ID": true, - "REPORT_VIEWED_PRODUCT_AGGREGATED_DAILY_PRODUCT_ID": true - }, - "constraint": { - "PRIMARY": true, - "REPORT_VIEWED_PRODUCT_AGGREGATED_DAILY_STORE_ID_STORE_STORE_ID": true, - "REPORT_VIEWED_PRD_AGGRED_DAILY_PRD_ID_CAT_PRD_ENTT_ENTT_ID": true, - "REPORT_VIEWED_PRD_AGGRED_DAILY_PERIOD_STORE_ID_PRD_ID": true, - "REPORT_VIEWED_PRD_AGGRED_DAILY_PRD_ID_SEQUENCE_PRD_SEQUENCE_VAL": true - } - }, - "report_viewed_product_aggregated_monthly": { - "column": { - "id": true, - "period": true, - "store_id": true, - "product_id": true, - "product_name": true, - "product_price": true, - "views_num": true, - "rating_pos": true - }, - "index": { - "REPORT_VIEWED_PRODUCT_AGGREGATED_MONTHLY_STORE_ID": true, - "REPORT_VIEWED_PRODUCT_AGGREGATED_MONTHLY_PRODUCT_ID": true - }, - "constraint": { - "PRIMARY": true, - "REPORT_VIEWED_PRODUCT_AGGREGATED_MONTHLY_STORE_ID_STORE_STORE_ID": true, - "REPORT_VIEWED_PRD_AGGRED_MONTHLY_PRD_ID_CAT_PRD_ENTT_ENTT_ID": true, - "REPORT_VIEWED_PRD_AGGRED_MONTHLY_PERIOD_STORE_ID_PRD_ID": true, - "FK_0140003A30AFC1A9188D723C4634BA5D": true - } - }, - "report_viewed_product_aggregated_yearly": { - "column": { - "id": true, - "period": true, - "store_id": true, - "product_id": true, - "product_name": true, - "product_price": true, - "views_num": true, - "rating_pos": true + "report_viewed_product_aggregated_daily": { + "column": { + "id": true, + "period": true, + "store_id": true, + "product_id": true, + "product_name": true, + "product_price": true, + "views_num": true, + "rating_pos": true + }, + "index": { + "REPORT_VIEWED_PRODUCT_AGGREGATED_DAILY_STORE_ID": true, + "REPORT_VIEWED_PRODUCT_AGGREGATED_DAILY_PRODUCT_ID": true + }, + "constraint": { + "PRIMARY": true, + "REPORT_VIEWED_PRODUCT_AGGREGATED_DAILY_STORE_ID_STORE_STORE_ID": true, + "REPORT_VIEWED_PRD_AGGRED_DAILY_PRD_ID_CAT_PRD_ENTT_ENTT_ID": true, + "REPORT_VIEWED_PRD_AGGRED_DAILY_PERIOD_STORE_ID_PRD_ID": true, + "REPORT_VIEWED_PRD_AGGRED_DAILY_PRD_ID_SEQUENCE_PRD_SEQUENCE_VAL": true + } }, - "index": { - "REPORT_VIEWED_PRODUCT_AGGREGATED_YEARLY_STORE_ID": true, - "REPORT_VIEWED_PRODUCT_AGGREGATED_YEARLY_PRODUCT_ID": true + "report_viewed_product_aggregated_monthly": { + "column": { + "id": true, + "period": true, + "store_id": true, + "product_id": true, + "product_name": true, + "product_price": true, + "views_num": true, + "rating_pos": true + }, + "index": { + "REPORT_VIEWED_PRODUCT_AGGREGATED_MONTHLY_STORE_ID": true, + "REPORT_VIEWED_PRODUCT_AGGREGATED_MONTHLY_PRODUCT_ID": true + }, + "constraint": { + "PRIMARY": true, + "REPORT_VIEWED_PRODUCT_AGGREGATED_MONTHLY_STORE_ID_STORE_STORE_ID": true, + "REPORT_VIEWED_PRD_AGGRED_MONTHLY_PRD_ID_CAT_PRD_ENTT_ENTT_ID": true, + "REPORT_VIEWED_PRD_AGGRED_MONTHLY_PERIOD_STORE_ID_PRD_ID": true, + "FK_0140003A30AFC1A9188D723C4634BA5D": true + } }, - "constraint": { - "PRIMARY": true, - "REPORT_VIEWED_PRODUCT_AGGREGATED_YEARLY_STORE_ID_STORE_STORE_ID": true, - "REPORT_VIEWED_PRD_AGGRED_YEARLY_PRD_ID_CAT_PRD_ENTT_ENTT_ID": true, - "REPORT_VIEWED_PRD_AGGRED_YEARLY_PERIOD_STORE_ID_PRD_ID": true, - "REPORT_VIEWED_PRD_AGGRED_YEARLY_PRD_ID_SEQUENCE_PRD_SEQUENCE_VAL": true + "report_viewed_product_aggregated_yearly": { + "column": { + "id": true, + "period": true, + "store_id": true, + "product_id": true, + "product_name": true, + "product_price": true, + "views_num": true, + "rating_pos": true + }, + "index": { + "REPORT_VIEWED_PRODUCT_AGGREGATED_YEARLY_STORE_ID": true, + "REPORT_VIEWED_PRODUCT_AGGREGATED_YEARLY_PRODUCT_ID": true + }, + "constraint": { + "PRIMARY": true, + "REPORT_VIEWED_PRODUCT_AGGREGATED_YEARLY_STORE_ID_STORE_STORE_ID": true, + "REPORT_VIEWED_PRD_AGGRED_YEARLY_PRD_ID_CAT_PRD_ENTT_ENTT_ID": true, + "REPORT_VIEWED_PRD_AGGRED_YEARLY_PERIOD_STORE_ID_PRD_ID": true, + "REPORT_VIEWED_PRD_AGGRED_YEARLY_PRD_ID_SEQUENCE_PRD_SEQUENCE_VAL": true + } } - } } \ No newline at end of file diff --git a/app/code/Magento/Review/etc/db_schema_whitelist.json b/app/code/Magento/Review/etc/db_schema_whitelist.json index 93ffab116b4da..b7781570c4a3d 100644 --- a/app/code/Magento/Review/etc/db_schema_whitelist.json +++ b/app/code/Magento/Review/etc/db_schema_whitelist.json @@ -1,207 +1,207 @@ { - "review_entity": { - "column": { - "entity_id": true, - "entity_code": true - }, - "constraint": { - "PRIMARY": true - } - }, - "review_status": { - "column": { - "status_id": true, - "status_code": true - }, - "constraint": { - "PRIMARY": true - } - }, - "review": { - "column": { - "review_id": true, - "created_at": true, - "entity_id": true, - "entity_pk_value": true, - "status_id": true - }, - "index": { - "REVIEW_ENTITY_ID": true, - "REVIEW_STATUS_ID": true, - "REVIEW_ENTITY_PK_VALUE": true - }, - "constraint": { - "PRIMARY": true, - "REVIEW_ENTITY_ID_REVIEW_ENTITY_ENTITY_ID": true, - "REVIEW_STATUS_ID_REVIEW_STATUS_STATUS_ID": true - } - }, - "review_detail": { - "column": { - "detail_id": true, - "review_id": true, - "store_id": true, - "title": true, - "detail": true, - "nickname": true, - "customer_id": true - }, - "index": { - "REVIEW_DETAIL_REVIEW_ID": true, - "REVIEW_DETAIL_STORE_ID": true, - "REVIEW_DETAIL_CUSTOMER_ID": true - }, - "constraint": { - "PRIMARY": true, - "REVIEW_DETAIL_CUSTOMER_ID_CUSTOMER_ENTITY_ENTITY_ID": true, - "REVIEW_DETAIL_REVIEW_ID_REVIEW_REVIEW_ID": true, - "REVIEW_DETAIL_STORE_ID_STORE_STORE_ID": true - } - }, - "review_entity_summary": { - "column": { - "primary_id": true, - "entity_pk_value": true, - "entity_type": true, - "reviews_count": true, - "rating_summary": true, - "store_id": true - }, - "index": { - "REVIEW_ENTITY_SUMMARY_STORE_ID": true - }, - "constraint": { - "PRIMARY": true, - "REVIEW_ENTITY_SUMMARY_STORE_ID_STORE_STORE_ID": true - } - }, - "review_store": { - "column": { - "review_id": true, - "store_id": true - }, - "index": { - "REVIEW_STORE_STORE_ID": true - }, - "constraint": { - "PRIMARY": true, - "REVIEW_STORE_REVIEW_ID_REVIEW_REVIEW_ID": true, - "REVIEW_STORE_STORE_ID_STORE_STORE_ID": true - } - }, - "rating_entity": { - "column": { - "entity_id": true, - "entity_code": true - }, - "constraint": { - "PRIMARY": true, - "RATING_ENTITY_ENTITY_CODE": true - } - }, - "rating": { - "column": { - "rating_id": true, - "entity_id": true, - "rating_code": true, - "position": true, - "is_active": true - }, - "index": { - "RATING_ENTITY_ID": true - }, - "constraint": { - "PRIMARY": true, - "RATING_ENTITY_ID_RATING_ENTITY_ENTITY_ID": true, - "RATING_RATING_CODE": true - } - }, - "rating_option": { - "column": { - "option_id": true, - "rating_id": true, - "code": true, - "value": true, - "position": true - }, - "index": { - "RATING_OPTION_RATING_ID": true - }, - "constraint": { - "PRIMARY": true, - "RATING_OPTION_RATING_ID_RATING_RATING_ID": true - } - }, - "rating_option_vote": { - "column": { - "vote_id": true, - "option_id": true, - "remote_ip": true, - "remote_ip_long": true, - "customer_id": true, - "entity_pk_value": true, - "rating_id": true, - "review_id": true, - "percent": true, - "value": true - }, - "index": { - "RATING_OPTION_VOTE_OPTION_ID": true - }, - "constraint": { - "PRIMARY": true, - "RATING_OPTION_VOTE_OPTION_ID_RATING_OPTION_OPTION_ID": true, - "RATING_OPTION_VOTE_REVIEW_ID_REVIEW_REVIEW_ID": true - } - }, - "rating_option_vote_aggregated": { - "column": { - "primary_id": true, - "rating_id": true, - "entity_pk_value": true, - "vote_count": true, - "vote_value_sum": true, - "percent": true, - "percent_approved": true, - "store_id": true - }, - "index": { - "RATING_OPTION_VOTE_AGGREGATED_RATING_ID": true, - "RATING_OPTION_VOTE_AGGREGATED_STORE_ID": true - }, - "constraint": { - "PRIMARY": true, - "RATING_OPTION_VOTE_AGGREGATED_RATING_ID_RATING_RATING_ID": true, - "RATING_OPTION_VOTE_AGGREGATED_STORE_ID_STORE_STORE_ID": true - } - }, - "rating_store": { - "column": { - "rating_id": true, - "store_id": true - }, - "index": { - "RATING_STORE_STORE_ID": true - }, - "constraint": { - "PRIMARY": true, - "RATING_STORE_STORE_ID_STORE_STORE_ID": true, - "RATING_STORE_RATING_ID_RATING_RATING_ID": true - } - }, - "rating_title": { - "column": { - "rating_id": true, - "store_id": true, - "value": true - }, - "index": { - "RATING_TITLE_STORE_ID": true - }, - "constraint": { - "PRIMARY": true, - "RATING_TITLE_RATING_ID_RATING_RATING_ID": true, - "RATING_TITLE_STORE_ID_STORE_STORE_ID": true + "review_entity": { + "column": { + "entity_id": true, + "entity_code": true + }, + "constraint": { + "PRIMARY": true + } + }, + "review_status": { + "column": { + "status_id": true, + "status_code": true + }, + "constraint": { + "PRIMARY": true + } + }, + "review": { + "column": { + "review_id": true, + "created_at": true, + "entity_id": true, + "entity_pk_value": true, + "status_id": true + }, + "index": { + "REVIEW_ENTITY_ID": true, + "REVIEW_STATUS_ID": true, + "REVIEW_ENTITY_PK_VALUE": true + }, + "constraint": { + "PRIMARY": true, + "REVIEW_ENTITY_ID_REVIEW_ENTITY_ENTITY_ID": true, + "REVIEW_STATUS_ID_REVIEW_STATUS_STATUS_ID": true + } + }, + "review_detail": { + "column": { + "detail_id": true, + "review_id": true, + "store_id": true, + "title": true, + "detail": true, + "nickname": true, + "customer_id": true + }, + "index": { + "REVIEW_DETAIL_REVIEW_ID": true, + "REVIEW_DETAIL_STORE_ID": true, + "REVIEW_DETAIL_CUSTOMER_ID": true + }, + "constraint": { + "PRIMARY": true, + "REVIEW_DETAIL_CUSTOMER_ID_CUSTOMER_ENTITY_ENTITY_ID": true, + "REVIEW_DETAIL_REVIEW_ID_REVIEW_REVIEW_ID": true, + "REVIEW_DETAIL_STORE_ID_STORE_STORE_ID": true + } + }, + "review_entity_summary": { + "column": { + "primary_id": true, + "entity_pk_value": true, + "entity_type": true, + "reviews_count": true, + "rating_summary": true, + "store_id": true + }, + "index": { + "REVIEW_ENTITY_SUMMARY_STORE_ID": true + }, + "constraint": { + "PRIMARY": true, + "REVIEW_ENTITY_SUMMARY_STORE_ID_STORE_STORE_ID": true + } + }, + "review_store": { + "column": { + "review_id": true, + "store_id": true + }, + "index": { + "REVIEW_STORE_STORE_ID": true + }, + "constraint": { + "PRIMARY": true, + "REVIEW_STORE_REVIEW_ID_REVIEW_REVIEW_ID": true, + "REVIEW_STORE_STORE_ID_STORE_STORE_ID": true + } + }, + "rating_entity": { + "column": { + "entity_id": true, + "entity_code": true + }, + "constraint": { + "PRIMARY": true, + "RATING_ENTITY_ENTITY_CODE": true + } + }, + "rating": { + "column": { + "rating_id": true, + "entity_id": true, + "rating_code": true, + "position": true, + "is_active": true + }, + "index": { + "RATING_ENTITY_ID": true + }, + "constraint": { + "PRIMARY": true, + "RATING_ENTITY_ID_RATING_ENTITY_ENTITY_ID": true, + "RATING_RATING_CODE": true + } + }, + "rating_option": { + "column": { + "option_id": true, + "rating_id": true, + "code": true, + "value": true, + "position": true + }, + "index": { + "RATING_OPTION_RATING_ID": true + }, + "constraint": { + "PRIMARY": true, + "RATING_OPTION_RATING_ID_RATING_RATING_ID": true + } + }, + "rating_option_vote": { + "column": { + "vote_id": true, + "option_id": true, + "remote_ip": true, + "remote_ip_long": true, + "customer_id": true, + "entity_pk_value": true, + "rating_id": true, + "review_id": true, + "percent": true, + "value": true + }, + "index": { + "RATING_OPTION_VOTE_OPTION_ID": true + }, + "constraint": { + "PRIMARY": true, + "RATING_OPTION_VOTE_OPTION_ID_RATING_OPTION_OPTION_ID": true, + "RATING_OPTION_VOTE_REVIEW_ID_REVIEW_REVIEW_ID": true + } + }, + "rating_option_vote_aggregated": { + "column": { + "primary_id": true, + "rating_id": true, + "entity_pk_value": true, + "vote_count": true, + "vote_value_sum": true, + "percent": true, + "percent_approved": true, + "store_id": true + }, + "index": { + "RATING_OPTION_VOTE_AGGREGATED_RATING_ID": true, + "RATING_OPTION_VOTE_AGGREGATED_STORE_ID": true + }, + "constraint": { + "PRIMARY": true, + "RATING_OPTION_VOTE_AGGREGATED_RATING_ID_RATING_RATING_ID": true, + "RATING_OPTION_VOTE_AGGREGATED_STORE_ID_STORE_STORE_ID": true + } + }, + "rating_store": { + "column": { + "rating_id": true, + "store_id": true + }, + "index": { + "RATING_STORE_STORE_ID": true + }, + "constraint": { + "PRIMARY": true, + "RATING_STORE_STORE_ID_STORE_STORE_ID": true, + "RATING_STORE_RATING_ID_RATING_RATING_ID": true + } + }, + "rating_title": { + "column": { + "rating_id": true, + "store_id": true, + "value": true + }, + "index": { + "RATING_TITLE_STORE_ID": true + }, + "constraint": { + "PRIMARY": true, + "RATING_TITLE_RATING_ID_RATING_RATING_ID": true, + "RATING_TITLE_STORE_ID_STORE_STORE_ID": true + } } - } } \ No newline at end of file diff --git a/app/code/Magento/Sales/etc/db_schema_whitelist.json b/app/code/Magento/Sales/etc/db_schema_whitelist.json index 415ee7f0b26c1..8790523c97c21 100644 --- a/app/code/Magento/Sales/etc/db_schema_whitelist.json +++ b/app/code/Magento/Sales/etc/db_schema_whitelist.json @@ -1,1248 +1,1248 @@ { - "sales_order": { - "column": { - "entity_id": true, - "state": true, - "status": true, - "coupon_code": true, - "protect_code": true, - "shipping_description": true, - "is_virtual": true, - "store_id": true, - "customer_id": true, - "base_discount_amount": true, - "base_discount_canceled": true, - "base_discount_invoiced": true, - "base_discount_refunded": true, - "base_grand_total": true, - "base_shipping_amount": true, - "base_shipping_canceled": true, - "base_shipping_invoiced": true, - "base_shipping_refunded": true, - "base_shipping_tax_amount": true, - "base_shipping_tax_refunded": true, - "base_subtotal": true, - "base_subtotal_canceled": true, - "base_subtotal_invoiced": true, - "base_subtotal_refunded": true, - "base_tax_amount": true, - "base_tax_canceled": true, - "base_tax_invoiced": true, - "base_tax_refunded": true, - "base_to_global_rate": true, - "base_to_order_rate": true, - "base_total_canceled": true, - "base_total_invoiced": true, - "base_total_invoiced_cost": true, - "base_total_offline_refunded": true, - "base_total_online_refunded": true, - "base_total_paid": true, - "base_total_qty_ordered": true, - "base_total_refunded": true, - "discount_amount": true, - "discount_canceled": true, - "discount_invoiced": true, - "discount_refunded": true, - "grand_total": true, - "shipping_amount": true, - "shipping_canceled": true, - "shipping_invoiced": true, - "shipping_refunded": true, - "shipping_tax_amount": true, - "shipping_tax_refunded": true, - "store_to_base_rate": true, - "store_to_order_rate": true, - "subtotal": true, - "subtotal_canceled": true, - "subtotal_invoiced": true, - "subtotal_refunded": true, - "tax_amount": true, - "tax_canceled": true, - "tax_invoiced": true, - "tax_refunded": true, - "total_canceled": true, - "total_invoiced": true, - "total_offline_refunded": true, - "total_online_refunded": true, - "total_paid": true, - "total_qty_ordered": true, - "total_refunded": true, - "can_ship_partially": true, - "can_ship_partially_item": true, - "customer_is_guest": true, - "customer_note_notify": true, - "billing_address_id": true, - "customer_group_id": true, - "edit_increment": true, - "email_sent": true, - "send_email": true, - "forced_shipment_with_invoice": true, - "payment_auth_expiration": true, - "quote_address_id": true, - "quote_id": true, - "shipping_address_id": true, - "adjustment_negative": true, - "adjustment_positive": true, - "base_adjustment_negative": true, - "base_adjustment_positive": true, - "base_shipping_discount_amount": true, - "base_subtotal_incl_tax": true, - "base_total_due": true, - "payment_authorization_amount": true, - "shipping_discount_amount": true, - "subtotal_incl_tax": true, - "total_due": true, - "weight": true, - "customer_dob": true, - "increment_id": true, - "applied_rule_ids": true, - "base_currency_code": true, - "customer_email": true, - "customer_firstname": true, - "customer_lastname": true, - "customer_middlename": true, - "customer_prefix": true, - "customer_suffix": true, - "customer_taxvat": true, - "discount_description": true, - "ext_customer_id": true, - "ext_order_id": true, - "global_currency_code": true, - "hold_before_state": true, - "hold_before_status": true, - "order_currency_code": true, - "original_increment_id": true, - "relation_child_id": true, - "relation_child_real_id": true, - "relation_parent_id": true, - "relation_parent_real_id": true, - "remote_ip": true, - "shipping_method": true, - "store_currency_code": true, - "store_name": true, - "x_forwarded_for": true, - "customer_note": true, - "created_at": true, - "updated_at": true, - "total_item_count": true, - "customer_gender": true, - "discount_tax_compensation_amount": true, - "base_discount_tax_compensation_amount": true, - "shipping_discount_tax_compensation_amount": true, - "base_shipping_discount_tax_compensation_amnt": true, - "discount_tax_compensation_invoiced": true, - "base_discount_tax_compensation_invoiced": true, - "discount_tax_compensation_refunded": true, - "base_discount_tax_compensation_refunded": true, - "shipping_incl_tax": true, - "base_shipping_incl_tax": true, - "coupon_rule_name": true - }, - "index": { - "SALES_ORDER_STATUS": true, - "SALES_ORDER_STATE": true, - "SALES_ORDER_STORE_ID": true, - "SALES_ORDER_CREATED_AT": true, - "SALES_ORDER_CUSTOMER_ID": true, - "SALES_ORDER_EXT_ORDER_ID": true, - "SALES_ORDER_QUOTE_ID": true, - "SALES_ORDER_UPDATED_AT": true, - "SALES_ORDER_SEND_EMAIL": true, - "SALES_ORDER_EMAIL_SENT": true - }, - "constraint": { - "PRIMARY": true, - "SALES_ORDER_CUSTOMER_ID_CUSTOMER_ENTITY_ENTITY_ID": true, - "SALES_ORDER_STORE_ID_STORE_STORE_ID": true, - "SALES_ORDER_INCREMENT_ID_STORE_ID": true - } - }, - "sales_order_grid": { - "column": { - "entity_id": true, - "status": true, - "store_id": true, - "store_name": true, - "customer_id": true, - "base_grand_total": true, - "base_total_paid": true, - "grand_total": true, - "total_paid": true, - "increment_id": true, - "base_currency_code": true, - "order_currency_code": true, - "shipping_name": true, - "billing_name": true, - "created_at": true, - "updated_at": true, - "billing_address": true, - "shipping_address": true, - "shipping_information": true, - "customer_email": true, - "customer_group": true, - "subtotal": true, - "shipping_and_handling": true, - "customer_name": true, - "payment_method": true, - "total_refunded": true - }, - "index": { - "SALES_ORDER_GRID_STATUS": true, - "SALES_ORDER_GRID_STORE_ID": true, - "SALES_ORDER_GRID_BASE_GRAND_TOTAL": true, - "SALES_ORDER_GRID_BASE_TOTAL_PAID": true, - "SALES_ORDER_GRID_GRAND_TOTAL": true, - "SALES_ORDER_GRID_TOTAL_PAID": true, - "SALES_ORDER_GRID_SHIPPING_NAME": true, - "SALES_ORDER_GRID_BILLING_NAME": true, - "SALES_ORDER_GRID_CREATED_AT": true, - "SALES_ORDER_GRID_CUSTOMER_ID": true, - "SALES_ORDER_GRID_UPDATED_AT": true, - "FTI_65B9E9925EC58F0C7C2E2F6379C233E7": true - }, - "constraint": { - "PRIMARY": true, - "SALES_ORDER_GRID_INCREMENT_ID_STORE_ID": true - } - }, - "sales_order_address": { - "column": { - "entity_id": true, - "parent_id": true, - "customer_address_id": true, - "quote_address_id": true, - "region_id": true, - "customer_id": true, - "fax": true, - "region": true, - "postcode": true, - "lastname": true, - "street": true, - "city": true, - "email": true, - "telephone": true, - "country_id": true, - "firstname": true, - "address_type": true, - "prefix": true, - "middlename": true, - "suffix": true, - "company": true, - "vat_id": true, - "vat_is_valid": true, - "vat_request_id": true, - "vat_request_date": true, - "vat_request_success": true - }, - "index": { - "SALES_ORDER_ADDRESS_PARENT_ID": true - }, - "constraint": { - "PRIMARY": true, - "SALES_ORDER_ADDRESS_PARENT_ID_SALES_ORDER_ENTITY_ID": true - } - }, - "sales_order_status_history": { - "column": { - "entity_id": true, - "parent_id": true, - "is_customer_notified": true, - "is_visible_on_front": true, - "comment": true, - "status": true, - "created_at": true, - "entity_name": true - }, - "index": { - "SALES_ORDER_STATUS_HISTORY_PARENT_ID": true, - "SALES_ORDER_STATUS_HISTORY_CREATED_AT": true - }, - "constraint": { - "PRIMARY": true, - "SALES_ORDER_STATUS_HISTORY_PARENT_ID_SALES_ORDER_ENTITY_ID": true - } - }, - "sales_order_item": { - "column": { - "item_id": true, - "order_id": true, - "parent_item_id": true, - "quote_item_id": true, - "store_id": true, - "created_at": true, - "updated_at": true, - "product_id": true, - "product_type": true, - "product_options": true, - "weight": true, - "is_virtual": true, - "sku": true, - "name": true, - "description": true, - "applied_rule_ids": true, - "additional_data": true, - "is_qty_decimal": true, - "no_discount": true, - "qty_backordered": true, - "qty_canceled": true, - "qty_invoiced": true, - "qty_ordered": true, - "qty_refunded": true, - "qty_shipped": true, - "base_cost": true, - "price": true, - "base_price": true, - "original_price": true, - "base_original_price": true, - "tax_percent": true, - "tax_amount": true, - "base_tax_amount": true, - "tax_invoiced": true, - "base_tax_invoiced": true, - "discount_percent": true, - "discount_amount": true, - "base_discount_amount": true, - "discount_invoiced": true, - "base_discount_invoiced": true, - "amount_refunded": true, - "base_amount_refunded": true, - "row_total": true, - "base_row_total": true, - "row_invoiced": true, - "base_row_invoiced": true, - "row_weight": true, - "base_tax_before_discount": true, - "tax_before_discount": true, - "ext_order_item_id": true, - "locked_do_invoice": true, - "locked_do_ship": true, - "price_incl_tax": true, - "base_price_incl_tax": true, - "row_total_incl_tax": true, - "base_row_total_incl_tax": true, - "discount_tax_compensation_amount": true, - "base_discount_tax_compensation_amount": true, - "discount_tax_compensation_invoiced": true, - "base_discount_tax_compensation_invoiced": true, - "discount_tax_compensation_refunded": true, - "base_discount_tax_compensation_refunded": true, - "tax_canceled": true, - "discount_tax_compensation_canceled": true, - "tax_refunded": true, - "base_tax_refunded": true, - "discount_refunded": true, - "base_discount_refunded": true - }, - "index": { - "SALES_ORDER_ITEM_ORDER_ID": true, - "SALES_ORDER_ITEM_STORE_ID": true - }, - "constraint": { - "PRIMARY": true, - "SALES_ORDER_ITEM_ORDER_ID_SALES_ORDER_ENTITY_ID": true, - "SALES_ORDER_ITEM_STORE_ID_STORE_STORE_ID": true - } - }, - "sales_order_payment": { - "column": { - "entity_id": true, - "parent_id": true, - "base_shipping_captured": true, - "shipping_captured": true, - "amount_refunded": true, - "base_amount_paid": true, - "amount_canceled": true, - "base_amount_authorized": true, - "base_amount_paid_online": true, - "base_amount_refunded_online": true, - "base_shipping_amount": true, - "shipping_amount": true, - "amount_paid": true, - "amount_authorized": true, - "base_amount_ordered": true, - "base_shipping_refunded": true, - "shipping_refunded": true, - "base_amount_refunded": true, - "amount_ordered": true, - "base_amount_canceled": true, - "quote_payment_id": true, - "additional_data": true, - "cc_exp_month": true, - "cc_ss_start_year": true, - "echeck_bank_name": true, - "method": true, - "cc_debug_request_body": true, - "cc_secure_verify": true, - "protection_eligibility": true, - "cc_approval": true, - "cc_last_4": true, - "cc_status_description": true, - "echeck_type": true, - "cc_debug_response_serialized": true, - "cc_ss_start_month": true, - "echeck_account_type": true, - "last_trans_id": true, - "cc_cid_status": true, - "cc_owner": true, - "cc_type": true, - "po_number": true, - "cc_exp_year": true, - "cc_status": true, - "echeck_routing_number": true, - "account_status": true, - "anet_trans_method": true, - "cc_debug_response_body": true, - "cc_ss_issue": true, - "echeck_account_name": true, - "cc_avs_status": true, - "cc_number_enc": true, - "cc_trans_id": true, - "address_status": true, - "additional_information": true - }, - "index": { - "SALES_ORDER_PAYMENT_PARENT_ID": true - }, - "constraint": { - "PRIMARY": true, - "SALES_ORDER_PAYMENT_PARENT_ID_SALES_ORDER_ENTITY_ID": true - } - }, - "sales_shipment": { - "column": { - "entity_id": true, - "store_id": true, - "total_weight": true, - "total_qty": true, - "email_sent": true, - "send_email": true, - "order_id": true, - "customer_id": true, - "shipping_address_id": true, - "billing_address_id": true, - "shipment_status": true, - "increment_id": true, - "created_at": true, - "updated_at": true, - "packages": true, - "shipping_label": true, - "customer_note": true, - "customer_note_notify": true - }, - "index": { - "SALES_SHIPMENT_STORE_ID": true, - "SALES_SHIPMENT_TOTAL_QTY": true, - "SALES_SHIPMENT_ORDER_ID": true, - "SALES_SHIPMENT_CREATED_AT": true, - "SALES_SHIPMENT_UPDATED_AT": true, - "SALES_SHIPMENT_SEND_EMAIL": true, - "SALES_SHIPMENT_EMAIL_SENT": true - }, - "constraint": { - "PRIMARY": true, - "SALES_SHIPMENT_ORDER_ID_SALES_ORDER_ENTITY_ID": true, - "SALES_SHIPMENT_STORE_ID_STORE_STORE_ID": true, - "SALES_SHIPMENT_INCREMENT_ID_STORE_ID": true - } - }, - "sales_shipment_grid": { - "column": { - "entity_id": true, - "increment_id": true, - "store_id": true, - "order_increment_id": true, - "order_id": true, - "order_created_at": true, - "customer_name": true, - "total_qty": true, - "shipment_status": true, - "order_status": true, - "billing_address": true, - "shipping_address": true, - "billing_name": true, - "shipping_name": true, - "customer_email": true, - "customer_group_id": true, - "payment_method": true, - "shipping_information": true, - "created_at": true, - "updated_at": true - }, - "index": { - "SALES_SHIPMENT_GRID_STORE_ID": true, - "SALES_SHIPMENT_GRID_TOTAL_QTY": true, - "SALES_SHIPMENT_GRID_ORDER_INCREMENT_ID": true, - "SALES_SHIPMENT_GRID_SHIPMENT_STATUS": true, - "SALES_SHIPMENT_GRID_ORDER_STATUS": true, - "SALES_SHIPMENT_GRID_CREATED_AT": true, - "SALES_SHIPMENT_GRID_UPDATED_AT": true, - "SALES_SHIPMENT_GRID_ORDER_CREATED_AT": true, - "SALES_SHIPMENT_GRID_SHIPPING_NAME": true, - "SALES_SHIPMENT_GRID_BILLING_NAME": true, - "FTI_086B40C8955F167B8EA76653437879B4": true - }, - "constraint": { - "PRIMARY": true, - "SALES_SHIPMENT_GRID_INCREMENT_ID_STORE_ID": true - } - }, - "sales_shipment_item": { - "column": { - "entity_id": true, - "parent_id": true, - "row_total": true, - "price": true, - "weight": true, - "qty": true, - "product_id": true, - "order_item_id": true, - "additional_data": true, - "description": true, - "name": true, - "sku": true - }, - "index": { - "SALES_SHIPMENT_ITEM_PARENT_ID": true - }, - "constraint": { - "PRIMARY": true, - "SALES_SHIPMENT_ITEM_PARENT_ID_SALES_SHIPMENT_ENTITY_ID": true - } - }, - "sales_shipment_track": { - "column": { - "entity_id": true, - "parent_id": true, - "weight": true, - "qty": true, - "order_id": true, - "track_number": true, - "description": true, - "title": true, - "carrier_code": true, - "created_at": true, - "updated_at": true - }, - "index": { - "SALES_SHIPMENT_TRACK_PARENT_ID": true, - "SALES_SHIPMENT_TRACK_ORDER_ID": true, - "SALES_SHIPMENT_TRACK_CREATED_AT": true - }, - "constraint": { - "PRIMARY": true, - "SALES_SHIPMENT_TRACK_PARENT_ID_SALES_SHIPMENT_ENTITY_ID": true - } - }, - "sales_shipment_comment": { - "column": { - "entity_id": true, - "parent_id": true, - "is_customer_notified": true, - "is_visible_on_front": true, - "comment": true, - "created_at": true - }, - "index": { - "SALES_SHIPMENT_COMMENT_CREATED_AT": true, - "SALES_SHIPMENT_COMMENT_PARENT_ID": true - }, - "constraint": { - "PRIMARY": true, - "SALES_SHIPMENT_COMMENT_PARENT_ID_SALES_SHIPMENT_ENTITY_ID": true - } - }, - "sales_invoice": { - "column": { - "entity_id": true, - "store_id": true, - "base_grand_total": true, - "shipping_tax_amount": true, - "tax_amount": true, - "base_tax_amount": true, - "store_to_order_rate": true, - "base_shipping_tax_amount": true, - "base_discount_amount": true, - "base_to_order_rate": true, - "grand_total": true, - "shipping_amount": true, - "subtotal_incl_tax": true, - "base_subtotal_incl_tax": true, - "store_to_base_rate": true, - "base_shipping_amount": true, - "total_qty": true, - "base_to_global_rate": true, - "subtotal": true, - "base_subtotal": true, - "discount_amount": true, - "billing_address_id": true, - "is_used_for_refund": true, - "order_id": true, - "email_sent": true, - "send_email": true, - "can_void_flag": true, - "state": true, - "shipping_address_id": true, - "store_currency_code": true, - "transaction_id": true, - "order_currency_code": true, - "base_currency_code": true, - "global_currency_code": true, - "increment_id": true, - "created_at": true, - "updated_at": true, - "discount_tax_compensation_amount": true, - "base_discount_tax_compensation_amount": true, - "shipping_discount_tax_compensation_amount": true, - "base_shipping_discount_tax_compensation_amnt": true, - "shipping_incl_tax": true, - "base_shipping_incl_tax": true, - "base_total_refunded": true, - "discount_description": true, - "customer_note": true, - "customer_note_notify": true - }, - "index": { - "SALES_INVOICE_STORE_ID": true, - "SALES_INVOICE_GRAND_TOTAL": true, - "SALES_INVOICE_ORDER_ID": true, - "SALES_INVOICE_STATE": true, - "SALES_INVOICE_CREATED_AT": true, - "SALES_INVOICE_UPDATED_AT": true, - "SALES_INVOICE_SEND_EMAIL": true, - "SALES_INVOICE_EMAIL_SENT": true - }, - "constraint": { - "PRIMARY": true, - "SALES_INVOICE_ORDER_ID_SALES_ORDER_ENTITY_ID": true, - "SALES_INVOICE_STORE_ID_STORE_STORE_ID": true, - "SALES_INVOICE_INCREMENT_ID_STORE_ID": true - } - }, - "sales_invoice_grid": { - "column": { - "entity_id": true, - "increment_id": true, - "state": true, - "store_id": true, - "store_name": true, - "order_id": true, - "order_increment_id": true, - "order_created_at": true, - "customer_name": true, - "customer_email": true, - "customer_group_id": true, - "payment_method": true, - "store_currency_code": true, - "order_currency_code": true, - "base_currency_code": true, - "global_currency_code": true, - "billing_name": true, - "billing_address": true, - "shipping_address": true, - "shipping_information": true, - "subtotal": true, - "shipping_and_handling": true, - "grand_total": true, - "created_at": true, - "updated_at": true, - "base_grand_total": true - }, - "index": { - "SALES_INVOICE_GRID_STORE_ID": true, - "SALES_INVOICE_GRID_GRAND_TOTAL": true, - "SALES_INVOICE_GRID_ORDER_ID": true, - "SALES_INVOICE_GRID_STATE": true, - "SALES_INVOICE_GRID_ORDER_INCREMENT_ID": true, - "SALES_INVOICE_GRID_CREATED_AT": true, - "SALES_INVOICE_GRID_UPDATED_AT": true, - "SALES_INVOICE_GRID_ORDER_CREATED_AT": true, - "SALES_INVOICE_GRID_BILLING_NAME": true, - "FTI_95D9C924DD6A8734EB8B5D01D60F90DE": true, - "SALES_INVOICE_GRID_BASE_GRAND_TOTAL": true - }, - "constraint": { - "PRIMARY": true, - "SALES_INVOICE_GRID_INCREMENT_ID_STORE_ID": true - } - }, - "sales_invoice_item": { - "column": { - "entity_id": true, - "parent_id": true, - "base_price": true, - "tax_amount": true, - "base_row_total": true, - "discount_amount": true, - "row_total": true, - "base_discount_amount": true, - "price_incl_tax": true, - "base_tax_amount": true, - "base_price_incl_tax": true, - "qty": true, - "base_cost": true, - "price": true, - "base_row_total_incl_tax": true, - "row_total_incl_tax": true, - "product_id": true, - "order_item_id": true, - "additional_data": true, - "description": true, - "sku": true, - "name": true, - "discount_tax_compensation_amount": true, - "base_discount_tax_compensation_amount": true, - "tax_ratio": true - }, - "index": { - "SALES_INVOICE_ITEM_PARENT_ID": true - }, - "constraint": { - "PRIMARY": true, - "SALES_INVOICE_ITEM_PARENT_ID_SALES_INVOICE_ENTITY_ID": true - } - }, - "sales_invoice_comment": { - "column": { - "entity_id": true, - "parent_id": true, - "is_customer_notified": true, - "is_visible_on_front": true, - "comment": true, - "created_at": true - }, - "index": { - "SALES_INVOICE_COMMENT_CREATED_AT": true, - "SALES_INVOICE_COMMENT_PARENT_ID": true - }, - "constraint": { - "PRIMARY": true, - "SALES_INVOICE_COMMENT_PARENT_ID_SALES_INVOICE_ENTITY_ID": true - } - }, - "sales_creditmemo": { - "column": { - "entity_id": true, - "store_id": true, - "adjustment_positive": true, - "base_shipping_tax_amount": true, - "store_to_order_rate": true, - "base_discount_amount": true, - "base_to_order_rate": true, - "grand_total": true, - "base_adjustment_negative": true, - "base_subtotal_incl_tax": true, - "shipping_amount": true, - "subtotal_incl_tax": true, - "adjustment_negative": true, - "base_shipping_amount": true, - "store_to_base_rate": true, - "base_to_global_rate": true, - "base_adjustment": true, - "base_subtotal": true, - "discount_amount": true, - "subtotal": true, - "adjustment": true, - "base_grand_total": true, - "base_adjustment_positive": true, - "base_tax_amount": true, - "shipping_tax_amount": true, - "tax_amount": true, - "order_id": true, - "email_sent": true, - "send_email": true, - "creditmemo_status": true, - "state": true, - "shipping_address_id": true, - "billing_address_id": true, - "invoice_id": true, - "store_currency_code": true, - "order_currency_code": true, - "base_currency_code": true, - "global_currency_code": true, - "transaction_id": true, - "increment_id": true, - "created_at": true, - "updated_at": true, - "discount_tax_compensation_amount": true, - "base_discount_tax_compensation_amount": true, - "shipping_discount_tax_compensation_amount": true, - "base_shipping_discount_tax_compensation_amnt": true, - "shipping_incl_tax": true, - "base_shipping_incl_tax": true, - "discount_description": true, - "customer_note": true, - "customer_note_notify": true - }, - "index": { - "SALES_CREDITMEMO_STORE_ID": true, - "SALES_CREDITMEMO_ORDER_ID": true, - "SALES_CREDITMEMO_CREDITMEMO_STATUS": true, - "SALES_CREDITMEMO_STATE": true, - "SALES_CREDITMEMO_CREATED_AT": true, - "SALES_CREDITMEMO_UPDATED_AT": true, - "SALES_CREDITMEMO_SEND_EMAIL": true, - "SALES_CREDITMEMO_EMAIL_SENT": true - }, - "constraint": { - "PRIMARY": true, - "SALES_CREDITMEMO_ORDER_ID_SALES_ORDER_ENTITY_ID": true, - "SALES_CREDITMEMO_STORE_ID_STORE_STORE_ID": true, - "SALES_CREDITMEMO_INCREMENT_ID_STORE_ID": true - } - }, - "sales_creditmemo_grid": { - "column": { - "entity_id": true, - "increment_id": true, - "created_at": true, - "updated_at": true, - "order_id": true, - "order_increment_id": true, - "order_created_at": true, - "billing_name": true, - "state": true, - "base_grand_total": true, - "order_status": true, - "store_id": true, - "billing_address": true, - "shipping_address": true, - "customer_name": true, - "customer_email": true, - "customer_group_id": true, - "payment_method": true, - "shipping_information": true, - "subtotal": true, - "shipping_and_handling": true, - "adjustment_positive": true, - "adjustment_negative": true, - "order_base_grand_total": true - }, - "index": { - "SALES_CREDITMEMO_GRID_ORDER_INCREMENT_ID": true, - "SALES_CREDITMEMO_GRID_CREATED_AT": true, - "SALES_CREDITMEMO_GRID_UPDATED_AT": true, - "SALES_CREDITMEMO_GRID_ORDER_CREATED_AT": true, - "SALES_CREDITMEMO_GRID_STATE": true, - "SALES_CREDITMEMO_GRID_BILLING_NAME": true, - "SALES_CREDITMEMO_GRID_ORDER_STATUS": true, - "SALES_CREDITMEMO_GRID_BASE_GRAND_TOTAL": true, - "SALES_CREDITMEMO_GRID_STORE_ID": true, - "SALES_CREDITMEMO_GRID_ORDER_BASE_GRAND_TOTAL": true, - "SALES_CREDITMEMO_GRID_ORDER_ID": true, - "FTI_32B7BA885941A8254EE84AE650ABDC86": true - }, - "constraint": { - "PRIMARY": true, - "SALES_CREDITMEMO_GRID_INCREMENT_ID_STORE_ID": true - } - }, - "sales_creditmemo_item": { - "column": { - "entity_id": true, - "parent_id": true, - "base_price": true, - "tax_amount": true, - "base_row_total": true, - "discount_amount": true, - "row_total": true, - "base_discount_amount": true, - "price_incl_tax": true, - "base_tax_amount": true, - "base_price_incl_tax": true, - "qty": true, - "base_cost": true, - "price": true, - "base_row_total_incl_tax": true, - "row_total_incl_tax": true, - "product_id": true, - "order_item_id": true, - "additional_data": true, - "description": true, - "sku": true, - "name": true, - "discount_tax_compensation_amount": true, - "base_discount_tax_compensation_amount": true, - "tax_ratio": true - }, - "index": { - "SALES_CREDITMEMO_ITEM_PARENT_ID": true - }, - "constraint": { - "PRIMARY": true, - "SALES_CREDITMEMO_ITEM_PARENT_ID_SALES_CREDITMEMO_ENTITY_ID": true - } - }, - "sales_creditmemo_comment": { - "column": { - "entity_id": true, - "parent_id": true, - "is_customer_notified": true, - "is_visible_on_front": true, - "comment": true, - "created_at": true - }, - "index": { - "SALES_CREDITMEMO_COMMENT_CREATED_AT": true, - "SALES_CREDITMEMO_COMMENT_PARENT_ID": true - }, - "constraint": { - "PRIMARY": true, - "SALES_CREDITMEMO_COMMENT_PARENT_ID_SALES_CREDITMEMO_ENTITY_ID": true - } - }, - "sales_invoiced_aggregated": { - "column": { - "id": true, - "period": true, - "store_id": true, - "order_status": true, - "orders_count": true, - "orders_invoiced": true, - "invoiced": true, - "invoiced_captured": true, - "invoiced_not_captured": true - }, - "index": { - "SALES_INVOICED_AGGREGATED_STORE_ID": true - }, - "constraint": { - "PRIMARY": true, - "SALES_INVOICED_AGGREGATED_STORE_ID_STORE_STORE_ID": true, - "SALES_INVOICED_AGGREGATED_PERIOD_STORE_ID_ORDER_STATUS": true - } - }, - "sales_invoiced_aggregated_order": { - "column": { - "id": true, - "period": true, - "store_id": true, - "order_status": true, - "orders_count": true, - "orders_invoiced": true, - "invoiced": true, - "invoiced_captured": true, - "invoiced_not_captured": true - }, - "index": { - "SALES_INVOICED_AGGREGATED_ORDER_STORE_ID": true - }, - "constraint": { - "PRIMARY": true, - "SALES_INVOICED_AGGREGATED_ORDER_STORE_ID_STORE_STORE_ID": true, - "SALES_INVOICED_AGGREGATED_ORDER_PERIOD_STORE_ID_ORDER_STATUS": true - } - }, - "sales_order_aggregated_created": { - "column": { - "id": true, - "period": true, - "store_id": true, - "order_status": true, - "orders_count": true, - "total_qty_ordered": true, - "total_qty_invoiced": true, - "total_income_amount": true, - "total_revenue_amount": true, - "total_profit_amount": true, - "total_invoiced_amount": true, - "total_canceled_amount": true, - "total_paid_amount": true, - "total_refunded_amount": true, - "total_tax_amount": true, - "total_tax_amount_actual": true, - "total_shipping_amount": true, - "total_shipping_amount_actual": true, - "total_discount_amount": true, - "total_discount_amount_actual": true - }, - "index": { - "SALES_ORDER_AGGREGATED_CREATED_STORE_ID": true - }, - "constraint": { - "PRIMARY": true, - "SALES_ORDER_AGGREGATED_CREATED_STORE_ID_STORE_STORE_ID": true, - "SALES_ORDER_AGGREGATED_CREATED_PERIOD_STORE_ID_ORDER_STATUS": true - } - }, - "sales_order_aggregated_updated": { - "column": { - "id": true, - "period": true, - "store_id": true, - "order_status": true, - "orders_count": true, - "total_qty_ordered": true, - "total_qty_invoiced": true, - "total_income_amount": true, - "total_revenue_amount": true, - "total_profit_amount": true, - "total_invoiced_amount": true, - "total_canceled_amount": true, - "total_paid_amount": true, - "total_refunded_amount": true, - "total_tax_amount": true, - "total_tax_amount_actual": true, - "total_shipping_amount": true, - "total_shipping_amount_actual": true, - "total_discount_amount": true, - "total_discount_amount_actual": true - }, - "index": { - "SALES_ORDER_AGGREGATED_UPDATED_STORE_ID": true - }, - "constraint": { - "PRIMARY": true, - "SALES_ORDER_AGGREGATED_UPDATED_STORE_ID_STORE_STORE_ID": true, - "SALES_ORDER_AGGREGATED_UPDATED_PERIOD_STORE_ID_ORDER_STATUS": true - } - }, - "sales_payment_transaction": { - "column": { - "transaction_id": true, - "parent_id": true, - "order_id": true, - "payment_id": true, - "txn_id": true, - "parent_txn_id": true, - "txn_type": true, - "is_closed": true, - "additional_information": true, - "created_at": true - }, - "index": { - "SALES_PAYMENT_TRANSACTION_PARENT_ID": true, - "SALES_PAYMENT_TRANSACTION_PAYMENT_ID": true - }, - "constraint": { - "PRIMARY": true, - "SALES_PAYMENT_TRANSACTION_ORDER_ID_SALES_ORDER_ENTITY_ID": true, - "FK_B99FF1A06402D725EBDB0F3A7ECD47A2": true, - "SALES_PAYMENT_TRANSACTION_PAYMENT_ID_SALES_ORDER_PAYMENT_ENTT_ID": true, - "SALES_PAYMENT_TRANSACTION_ORDER_ID_PAYMENT_ID_TXN_ID": true - } - }, - "sales_refunded_aggregated": { - "column": { - "id": true, - "period": true, - "store_id": true, - "order_status": true, - "orders_count": true, - "refunded": true, - "online_refunded": true, - "offline_refunded": true - }, - "index": { - "SALES_REFUNDED_AGGREGATED_STORE_ID": true - }, - "constraint": { - "PRIMARY": true, - "SALES_REFUNDED_AGGREGATED_STORE_ID_STORE_STORE_ID": true, - "SALES_REFUNDED_AGGREGATED_PERIOD_STORE_ID_ORDER_STATUS": true - } - }, - "sales_refunded_aggregated_order": { - "column": { - "id": true, - "period": true, - "store_id": true, - "order_status": true, - "orders_count": true, - "refunded": true, - "online_refunded": true, - "offline_refunded": true - }, - "index": { - "SALES_REFUNDED_AGGREGATED_ORDER_STORE_ID": true - }, - "constraint": { - "PRIMARY": true, - "SALES_REFUNDED_AGGREGATED_ORDER_STORE_ID_STORE_STORE_ID": true, - "SALES_REFUNDED_AGGREGATED_ORDER_PERIOD_STORE_ID_ORDER_STATUS": true - } - }, - "sales_shipping_aggregated": { - "column": { - "id": true, - "period": true, - "store_id": true, - "order_status": true, - "shipping_description": true, - "orders_count": true, - "total_shipping": true, - "total_shipping_actual": true - }, - "index": { - "SALES_SHIPPING_AGGREGATED_STORE_ID": true - }, - "constraint": { - "PRIMARY": true, - "SALES_SHIPPING_AGGREGATED_STORE_ID_STORE_STORE_ID": true, - "SALES_SHPP_AGGRED_PERIOD_STORE_ID_ORDER_STS_SHPP_DESCRIPTION": true - } - }, - "sales_shipping_aggregated_order": { - "column": { - "id": true, - "period": true, - "store_id": true, - "order_status": true, - "shipping_description": true, - "orders_count": true, - "total_shipping": true, - "total_shipping_actual": true - }, - "index": { - "SALES_SHIPPING_AGGREGATED_ORDER_STORE_ID": true - }, - "constraint": { - "PRIMARY": true, - "SALES_SHIPPING_AGGREGATED_ORDER_STORE_ID_STORE_STORE_ID": true, - "UNQ_C05FAE47282EEA68654D0924E946761F": true - } - }, - "sales_bestsellers_aggregated_daily": { - "column": { - "id": true, - "period": true, - "store_id": true, - "product_id": true, - "product_name": true, - "product_price": true, - "qty_ordered": true, - "rating_pos": true - }, - "index": { - "SALES_BESTSELLERS_AGGREGATED_DAILY_STORE_ID": true, - "SALES_BESTSELLERS_AGGREGATED_DAILY_PRODUCT_ID": true - }, - "constraint": { - "PRIMARY": true, - "SALES_BESTSELLERS_AGGREGATED_DAILY_STORE_ID_STORE_STORE_ID": true, - "SALES_BESTSELLERS_AGGREGATED_DAILY_PERIOD_STORE_ID_PRODUCT_ID": true - } - }, - "sales_bestsellers_aggregated_monthly": { - "column": { - "id": true, - "period": true, - "store_id": true, - "product_id": true, - "product_name": true, - "product_price": true, - "qty_ordered": true, - "rating_pos": true - }, - "index": { - "SALES_BESTSELLERS_AGGREGATED_MONTHLY_STORE_ID": true, - "SALES_BESTSELLERS_AGGREGATED_MONTHLY_PRODUCT_ID": true - }, - "constraint": { - "PRIMARY": true, - "SALES_BESTSELLERS_AGGREGATED_MONTHLY_STORE_ID_STORE_STORE_ID": true, - "SALES_BESTSELLERS_AGGREGATED_MONTHLY_PERIOD_STORE_ID_PRODUCT_ID": true - } - }, - "sales_bestsellers_aggregated_yearly": { - "column": { - "id": true, - "period": true, - "store_id": true, - "product_id": true, - "product_name": true, - "product_price": true, - "qty_ordered": true, - "rating_pos": true - }, - "index": { - "SALES_BESTSELLERS_AGGREGATED_YEARLY_STORE_ID": true, - "SALES_BESTSELLERS_AGGREGATED_YEARLY_PRODUCT_ID": true - }, - "constraint": { - "PRIMARY": true, - "SALES_BESTSELLERS_AGGREGATED_YEARLY_STORE_ID_STORE_STORE_ID": true, - "SALES_BESTSELLERS_AGGREGATED_YEARLY_PERIOD_STORE_ID_PRODUCT_ID": true - } - }, - "sales_order_tax": { - "column": { - "tax_id": true, - "order_id": true, - "code": true, - "title": true, - "percent": true, - "amount": true, - "priority": true, - "position": true, - "base_amount": true, - "process": true, - "base_real_amount": true - }, - "index": { - "SALES_ORDER_TAX_ORDER_ID_PRIORITY_POSITION": true - }, - "constraint": { - "PRIMARY": true - } - }, - "sales_order_tax_item": { - "column": { - "tax_item_id": true, - "tax_id": true, - "item_id": true, - "tax_percent": true, - "amount": true, - "base_amount": true, - "real_amount": true, - "real_base_amount": true, - "associated_item_id": true, - "taxable_item_type": true - }, - "index": { - "SALES_ORDER_TAX_ITEM_ITEM_ID": true - }, - "constraint": { - "PRIMARY": true, - "SALES_ORDER_TAX_ITEM_ASSOCIATED_ITEM_ID_SALES_ORDER_ITEM_ITEM_ID": true, - "SALES_ORDER_TAX_ITEM_TAX_ID_SALES_ORDER_TAX_TAX_ID": true, - "SALES_ORDER_TAX_ITEM_ITEM_ID_SALES_ORDER_ITEM_ITEM_ID": true, - "SALES_ORDER_TAX_ITEM_TAX_ID_ITEM_ID": true - } - }, - "sales_order_status": { - "column": { - "status": true, - "label": true - }, - "constraint": { - "PRIMARY": true - } - }, - "sales_order_status_state": { - "column": { - "status": true, - "state": true, - "is_default": true, - "visible_on_front": true - }, - "constraint": { - "PRIMARY": true, - "SALES_ORDER_STATUS_STATE_STATUS_SALES_ORDER_STATUS_STATUS": true - } - }, - "sales_order_status_label": { - "column": { - "status": true, - "store_id": true, - "label": true - }, - "index": { - "SALES_ORDER_STATUS_LABEL_STORE_ID": true - }, - "constraint": { - "PRIMARY": true, - "SALES_ORDER_STATUS_LABEL_STATUS_SALES_ORDER_STATUS_STATUS": true, - "SALES_ORDER_STATUS_LABEL_STORE_ID_STORE_STORE_ID": true + "sales_order": { + "column": { + "entity_id": true, + "state": true, + "status": true, + "coupon_code": true, + "protect_code": true, + "shipping_description": true, + "is_virtual": true, + "store_id": true, + "customer_id": true, + "base_discount_amount": true, + "base_discount_canceled": true, + "base_discount_invoiced": true, + "base_discount_refunded": true, + "base_grand_total": true, + "base_shipping_amount": true, + "base_shipping_canceled": true, + "base_shipping_invoiced": true, + "base_shipping_refunded": true, + "base_shipping_tax_amount": true, + "base_shipping_tax_refunded": true, + "base_subtotal": true, + "base_subtotal_canceled": true, + "base_subtotal_invoiced": true, + "base_subtotal_refunded": true, + "base_tax_amount": true, + "base_tax_canceled": true, + "base_tax_invoiced": true, + "base_tax_refunded": true, + "base_to_global_rate": true, + "base_to_order_rate": true, + "base_total_canceled": true, + "base_total_invoiced": true, + "base_total_invoiced_cost": true, + "base_total_offline_refunded": true, + "base_total_online_refunded": true, + "base_total_paid": true, + "base_total_qty_ordered": true, + "base_total_refunded": true, + "discount_amount": true, + "discount_canceled": true, + "discount_invoiced": true, + "discount_refunded": true, + "grand_total": true, + "shipping_amount": true, + "shipping_canceled": true, + "shipping_invoiced": true, + "shipping_refunded": true, + "shipping_tax_amount": true, + "shipping_tax_refunded": true, + "store_to_base_rate": true, + "store_to_order_rate": true, + "subtotal": true, + "subtotal_canceled": true, + "subtotal_invoiced": true, + "subtotal_refunded": true, + "tax_amount": true, + "tax_canceled": true, + "tax_invoiced": true, + "tax_refunded": true, + "total_canceled": true, + "total_invoiced": true, + "total_offline_refunded": true, + "total_online_refunded": true, + "total_paid": true, + "total_qty_ordered": true, + "total_refunded": true, + "can_ship_partially": true, + "can_ship_partially_item": true, + "customer_is_guest": true, + "customer_note_notify": true, + "billing_address_id": true, + "customer_group_id": true, + "edit_increment": true, + "email_sent": true, + "send_email": true, + "forced_shipment_with_invoice": true, + "payment_auth_expiration": true, + "quote_address_id": true, + "quote_id": true, + "shipping_address_id": true, + "adjustment_negative": true, + "adjustment_positive": true, + "base_adjustment_negative": true, + "base_adjustment_positive": true, + "base_shipping_discount_amount": true, + "base_subtotal_incl_tax": true, + "base_total_due": true, + "payment_authorization_amount": true, + "shipping_discount_amount": true, + "subtotal_incl_tax": true, + "total_due": true, + "weight": true, + "customer_dob": true, + "increment_id": true, + "applied_rule_ids": true, + "base_currency_code": true, + "customer_email": true, + "customer_firstname": true, + "customer_lastname": true, + "customer_middlename": true, + "customer_prefix": true, + "customer_suffix": true, + "customer_taxvat": true, + "discount_description": true, + "ext_customer_id": true, + "ext_order_id": true, + "global_currency_code": true, + "hold_before_state": true, + "hold_before_status": true, + "order_currency_code": true, + "original_increment_id": true, + "relation_child_id": true, + "relation_child_real_id": true, + "relation_parent_id": true, + "relation_parent_real_id": true, + "remote_ip": true, + "shipping_method": true, + "store_currency_code": true, + "store_name": true, + "x_forwarded_for": true, + "customer_note": true, + "created_at": true, + "updated_at": true, + "total_item_count": true, + "customer_gender": true, + "discount_tax_compensation_amount": true, + "base_discount_tax_compensation_amount": true, + "shipping_discount_tax_compensation_amount": true, + "base_shipping_discount_tax_compensation_amnt": true, + "discount_tax_compensation_invoiced": true, + "base_discount_tax_compensation_invoiced": true, + "discount_tax_compensation_refunded": true, + "base_discount_tax_compensation_refunded": true, + "shipping_incl_tax": true, + "base_shipping_incl_tax": true, + "coupon_rule_name": true + }, + "index": { + "SALES_ORDER_STATUS": true, + "SALES_ORDER_STATE": true, + "SALES_ORDER_STORE_ID": true, + "SALES_ORDER_CREATED_AT": true, + "SALES_ORDER_CUSTOMER_ID": true, + "SALES_ORDER_EXT_ORDER_ID": true, + "SALES_ORDER_QUOTE_ID": true, + "SALES_ORDER_UPDATED_AT": true, + "SALES_ORDER_SEND_EMAIL": true, + "SALES_ORDER_EMAIL_SENT": true + }, + "constraint": { + "PRIMARY": true, + "SALES_ORDER_CUSTOMER_ID_CUSTOMER_ENTITY_ENTITY_ID": true, + "SALES_ORDER_STORE_ID_STORE_STORE_ID": true, + "SALES_ORDER_INCREMENT_ID_STORE_ID": true + } + }, + "sales_order_grid": { + "column": { + "entity_id": true, + "status": true, + "store_id": true, + "store_name": true, + "customer_id": true, + "base_grand_total": true, + "base_total_paid": true, + "grand_total": true, + "total_paid": true, + "increment_id": true, + "base_currency_code": true, + "order_currency_code": true, + "shipping_name": true, + "billing_name": true, + "created_at": true, + "updated_at": true, + "billing_address": true, + "shipping_address": true, + "shipping_information": true, + "customer_email": true, + "customer_group": true, + "subtotal": true, + "shipping_and_handling": true, + "customer_name": true, + "payment_method": true, + "total_refunded": true + }, + "index": { + "SALES_ORDER_GRID_STATUS": true, + "SALES_ORDER_GRID_STORE_ID": true, + "SALES_ORDER_GRID_BASE_GRAND_TOTAL": true, + "SALES_ORDER_GRID_BASE_TOTAL_PAID": true, + "SALES_ORDER_GRID_GRAND_TOTAL": true, + "SALES_ORDER_GRID_TOTAL_PAID": true, + "SALES_ORDER_GRID_SHIPPING_NAME": true, + "SALES_ORDER_GRID_BILLING_NAME": true, + "SALES_ORDER_GRID_CREATED_AT": true, + "SALES_ORDER_GRID_CUSTOMER_ID": true, + "SALES_ORDER_GRID_UPDATED_AT": true, + "FTI_65B9E9925EC58F0C7C2E2F6379C233E7": true + }, + "constraint": { + "PRIMARY": true, + "SALES_ORDER_GRID_INCREMENT_ID_STORE_ID": true + } + }, + "sales_order_address": { + "column": { + "entity_id": true, + "parent_id": true, + "customer_address_id": true, + "quote_address_id": true, + "region_id": true, + "customer_id": true, + "fax": true, + "region": true, + "postcode": true, + "lastname": true, + "street": true, + "city": true, + "email": true, + "telephone": true, + "country_id": true, + "firstname": true, + "address_type": true, + "prefix": true, + "middlename": true, + "suffix": true, + "company": true, + "vat_id": true, + "vat_is_valid": true, + "vat_request_id": true, + "vat_request_date": true, + "vat_request_success": true + }, + "index": { + "SALES_ORDER_ADDRESS_PARENT_ID": true + }, + "constraint": { + "PRIMARY": true, + "SALES_ORDER_ADDRESS_PARENT_ID_SALES_ORDER_ENTITY_ID": true + } + }, + "sales_order_status_history": { + "column": { + "entity_id": true, + "parent_id": true, + "is_customer_notified": true, + "is_visible_on_front": true, + "comment": true, + "status": true, + "created_at": true, + "entity_name": true + }, + "index": { + "SALES_ORDER_STATUS_HISTORY_PARENT_ID": true, + "SALES_ORDER_STATUS_HISTORY_CREATED_AT": true + }, + "constraint": { + "PRIMARY": true, + "SALES_ORDER_STATUS_HISTORY_PARENT_ID_SALES_ORDER_ENTITY_ID": true + } + }, + "sales_order_item": { + "column": { + "item_id": true, + "order_id": true, + "parent_item_id": true, + "quote_item_id": true, + "store_id": true, + "created_at": true, + "updated_at": true, + "product_id": true, + "product_type": true, + "product_options": true, + "weight": true, + "is_virtual": true, + "sku": true, + "name": true, + "description": true, + "applied_rule_ids": true, + "additional_data": true, + "is_qty_decimal": true, + "no_discount": true, + "qty_backordered": true, + "qty_canceled": true, + "qty_invoiced": true, + "qty_ordered": true, + "qty_refunded": true, + "qty_shipped": true, + "base_cost": true, + "price": true, + "base_price": true, + "original_price": true, + "base_original_price": true, + "tax_percent": true, + "tax_amount": true, + "base_tax_amount": true, + "tax_invoiced": true, + "base_tax_invoiced": true, + "discount_percent": true, + "discount_amount": true, + "base_discount_amount": true, + "discount_invoiced": true, + "base_discount_invoiced": true, + "amount_refunded": true, + "base_amount_refunded": true, + "row_total": true, + "base_row_total": true, + "row_invoiced": true, + "base_row_invoiced": true, + "row_weight": true, + "base_tax_before_discount": true, + "tax_before_discount": true, + "ext_order_item_id": true, + "locked_do_invoice": true, + "locked_do_ship": true, + "price_incl_tax": true, + "base_price_incl_tax": true, + "row_total_incl_tax": true, + "base_row_total_incl_tax": true, + "discount_tax_compensation_amount": true, + "base_discount_tax_compensation_amount": true, + "discount_tax_compensation_invoiced": true, + "base_discount_tax_compensation_invoiced": true, + "discount_tax_compensation_refunded": true, + "base_discount_tax_compensation_refunded": true, + "tax_canceled": true, + "discount_tax_compensation_canceled": true, + "tax_refunded": true, + "base_tax_refunded": true, + "discount_refunded": true, + "base_discount_refunded": true + }, + "index": { + "SALES_ORDER_ITEM_ORDER_ID": true, + "SALES_ORDER_ITEM_STORE_ID": true + }, + "constraint": { + "PRIMARY": true, + "SALES_ORDER_ITEM_ORDER_ID_SALES_ORDER_ENTITY_ID": true, + "SALES_ORDER_ITEM_STORE_ID_STORE_STORE_ID": true + } + }, + "sales_order_payment": { + "column": { + "entity_id": true, + "parent_id": true, + "base_shipping_captured": true, + "shipping_captured": true, + "amount_refunded": true, + "base_amount_paid": true, + "amount_canceled": true, + "base_amount_authorized": true, + "base_amount_paid_online": true, + "base_amount_refunded_online": true, + "base_shipping_amount": true, + "shipping_amount": true, + "amount_paid": true, + "amount_authorized": true, + "base_amount_ordered": true, + "base_shipping_refunded": true, + "shipping_refunded": true, + "base_amount_refunded": true, + "amount_ordered": true, + "base_amount_canceled": true, + "quote_payment_id": true, + "additional_data": true, + "cc_exp_month": true, + "cc_ss_start_year": true, + "echeck_bank_name": true, + "method": true, + "cc_debug_request_body": true, + "cc_secure_verify": true, + "protection_eligibility": true, + "cc_approval": true, + "cc_last_4": true, + "cc_status_description": true, + "echeck_type": true, + "cc_debug_response_serialized": true, + "cc_ss_start_month": true, + "echeck_account_type": true, + "last_trans_id": true, + "cc_cid_status": true, + "cc_owner": true, + "cc_type": true, + "po_number": true, + "cc_exp_year": true, + "cc_status": true, + "echeck_routing_number": true, + "account_status": true, + "anet_trans_method": true, + "cc_debug_response_body": true, + "cc_ss_issue": true, + "echeck_account_name": true, + "cc_avs_status": true, + "cc_number_enc": true, + "cc_trans_id": true, + "address_status": true, + "additional_information": true + }, + "index": { + "SALES_ORDER_PAYMENT_PARENT_ID": true + }, + "constraint": { + "PRIMARY": true, + "SALES_ORDER_PAYMENT_PARENT_ID_SALES_ORDER_ENTITY_ID": true + } + }, + "sales_shipment": { + "column": { + "entity_id": true, + "store_id": true, + "total_weight": true, + "total_qty": true, + "email_sent": true, + "send_email": true, + "order_id": true, + "customer_id": true, + "shipping_address_id": true, + "billing_address_id": true, + "shipment_status": true, + "increment_id": true, + "created_at": true, + "updated_at": true, + "packages": true, + "shipping_label": true, + "customer_note": true, + "customer_note_notify": true + }, + "index": { + "SALES_SHIPMENT_STORE_ID": true, + "SALES_SHIPMENT_TOTAL_QTY": true, + "SALES_SHIPMENT_ORDER_ID": true, + "SALES_SHIPMENT_CREATED_AT": true, + "SALES_SHIPMENT_UPDATED_AT": true, + "SALES_SHIPMENT_SEND_EMAIL": true, + "SALES_SHIPMENT_EMAIL_SENT": true + }, + "constraint": { + "PRIMARY": true, + "SALES_SHIPMENT_ORDER_ID_SALES_ORDER_ENTITY_ID": true, + "SALES_SHIPMENT_STORE_ID_STORE_STORE_ID": true, + "SALES_SHIPMENT_INCREMENT_ID_STORE_ID": true + } + }, + "sales_shipment_grid": { + "column": { + "entity_id": true, + "increment_id": true, + "store_id": true, + "order_increment_id": true, + "order_id": true, + "order_created_at": true, + "customer_name": true, + "total_qty": true, + "shipment_status": true, + "order_status": true, + "billing_address": true, + "shipping_address": true, + "billing_name": true, + "shipping_name": true, + "customer_email": true, + "customer_group_id": true, + "payment_method": true, + "shipping_information": true, + "created_at": true, + "updated_at": true + }, + "index": { + "SALES_SHIPMENT_GRID_STORE_ID": true, + "SALES_SHIPMENT_GRID_TOTAL_QTY": true, + "SALES_SHIPMENT_GRID_ORDER_INCREMENT_ID": true, + "SALES_SHIPMENT_GRID_SHIPMENT_STATUS": true, + "SALES_SHIPMENT_GRID_ORDER_STATUS": true, + "SALES_SHIPMENT_GRID_CREATED_AT": true, + "SALES_SHIPMENT_GRID_UPDATED_AT": true, + "SALES_SHIPMENT_GRID_ORDER_CREATED_AT": true, + "SALES_SHIPMENT_GRID_SHIPPING_NAME": true, + "SALES_SHIPMENT_GRID_BILLING_NAME": true, + "FTI_086B40C8955F167B8EA76653437879B4": true + }, + "constraint": { + "PRIMARY": true, + "SALES_SHIPMENT_GRID_INCREMENT_ID_STORE_ID": true + } + }, + "sales_shipment_item": { + "column": { + "entity_id": true, + "parent_id": true, + "row_total": true, + "price": true, + "weight": true, + "qty": true, + "product_id": true, + "order_item_id": true, + "additional_data": true, + "description": true, + "name": true, + "sku": true + }, + "index": { + "SALES_SHIPMENT_ITEM_PARENT_ID": true + }, + "constraint": { + "PRIMARY": true, + "SALES_SHIPMENT_ITEM_PARENT_ID_SALES_SHIPMENT_ENTITY_ID": true + } + }, + "sales_shipment_track": { + "column": { + "entity_id": true, + "parent_id": true, + "weight": true, + "qty": true, + "order_id": true, + "track_number": true, + "description": true, + "title": true, + "carrier_code": true, + "created_at": true, + "updated_at": true + }, + "index": { + "SALES_SHIPMENT_TRACK_PARENT_ID": true, + "SALES_SHIPMENT_TRACK_ORDER_ID": true, + "SALES_SHIPMENT_TRACK_CREATED_AT": true + }, + "constraint": { + "PRIMARY": true, + "SALES_SHIPMENT_TRACK_PARENT_ID_SALES_SHIPMENT_ENTITY_ID": true + } + }, + "sales_shipment_comment": { + "column": { + "entity_id": true, + "parent_id": true, + "is_customer_notified": true, + "is_visible_on_front": true, + "comment": true, + "created_at": true + }, + "index": { + "SALES_SHIPMENT_COMMENT_CREATED_AT": true, + "SALES_SHIPMENT_COMMENT_PARENT_ID": true + }, + "constraint": { + "PRIMARY": true, + "SALES_SHIPMENT_COMMENT_PARENT_ID_SALES_SHIPMENT_ENTITY_ID": true + } + }, + "sales_invoice": { + "column": { + "entity_id": true, + "store_id": true, + "base_grand_total": true, + "shipping_tax_amount": true, + "tax_amount": true, + "base_tax_amount": true, + "store_to_order_rate": true, + "base_shipping_tax_amount": true, + "base_discount_amount": true, + "base_to_order_rate": true, + "grand_total": true, + "shipping_amount": true, + "subtotal_incl_tax": true, + "base_subtotal_incl_tax": true, + "store_to_base_rate": true, + "base_shipping_amount": true, + "total_qty": true, + "base_to_global_rate": true, + "subtotal": true, + "base_subtotal": true, + "discount_amount": true, + "billing_address_id": true, + "is_used_for_refund": true, + "order_id": true, + "email_sent": true, + "send_email": true, + "can_void_flag": true, + "state": true, + "shipping_address_id": true, + "store_currency_code": true, + "transaction_id": true, + "order_currency_code": true, + "base_currency_code": true, + "global_currency_code": true, + "increment_id": true, + "created_at": true, + "updated_at": true, + "discount_tax_compensation_amount": true, + "base_discount_tax_compensation_amount": true, + "shipping_discount_tax_compensation_amount": true, + "base_shipping_discount_tax_compensation_amnt": true, + "shipping_incl_tax": true, + "base_shipping_incl_tax": true, + "base_total_refunded": true, + "discount_description": true, + "customer_note": true, + "customer_note_notify": true + }, + "index": { + "SALES_INVOICE_STORE_ID": true, + "SALES_INVOICE_GRAND_TOTAL": true, + "SALES_INVOICE_ORDER_ID": true, + "SALES_INVOICE_STATE": true, + "SALES_INVOICE_CREATED_AT": true, + "SALES_INVOICE_UPDATED_AT": true, + "SALES_INVOICE_SEND_EMAIL": true, + "SALES_INVOICE_EMAIL_SENT": true + }, + "constraint": { + "PRIMARY": true, + "SALES_INVOICE_ORDER_ID_SALES_ORDER_ENTITY_ID": true, + "SALES_INVOICE_STORE_ID_STORE_STORE_ID": true, + "SALES_INVOICE_INCREMENT_ID_STORE_ID": true + } + }, + "sales_invoice_grid": { + "column": { + "entity_id": true, + "increment_id": true, + "state": true, + "store_id": true, + "store_name": true, + "order_id": true, + "order_increment_id": true, + "order_created_at": true, + "customer_name": true, + "customer_email": true, + "customer_group_id": true, + "payment_method": true, + "store_currency_code": true, + "order_currency_code": true, + "base_currency_code": true, + "global_currency_code": true, + "billing_name": true, + "billing_address": true, + "shipping_address": true, + "shipping_information": true, + "subtotal": true, + "shipping_and_handling": true, + "grand_total": true, + "created_at": true, + "updated_at": true, + "base_grand_total": true + }, + "index": { + "SALES_INVOICE_GRID_STORE_ID": true, + "SALES_INVOICE_GRID_GRAND_TOTAL": true, + "SALES_INVOICE_GRID_ORDER_ID": true, + "SALES_INVOICE_GRID_STATE": true, + "SALES_INVOICE_GRID_ORDER_INCREMENT_ID": true, + "SALES_INVOICE_GRID_CREATED_AT": true, + "SALES_INVOICE_GRID_UPDATED_AT": true, + "SALES_INVOICE_GRID_ORDER_CREATED_AT": true, + "SALES_INVOICE_GRID_BILLING_NAME": true, + "FTI_95D9C924DD6A8734EB8B5D01D60F90DE": true, + "SALES_INVOICE_GRID_BASE_GRAND_TOTAL": true + }, + "constraint": { + "PRIMARY": true, + "SALES_INVOICE_GRID_INCREMENT_ID_STORE_ID": true + } + }, + "sales_invoice_item": { + "column": { + "entity_id": true, + "parent_id": true, + "base_price": true, + "tax_amount": true, + "base_row_total": true, + "discount_amount": true, + "row_total": true, + "base_discount_amount": true, + "price_incl_tax": true, + "base_tax_amount": true, + "base_price_incl_tax": true, + "qty": true, + "base_cost": true, + "price": true, + "base_row_total_incl_tax": true, + "row_total_incl_tax": true, + "product_id": true, + "order_item_id": true, + "additional_data": true, + "description": true, + "sku": true, + "name": true, + "discount_tax_compensation_amount": true, + "base_discount_tax_compensation_amount": true, + "tax_ratio": true + }, + "index": { + "SALES_INVOICE_ITEM_PARENT_ID": true + }, + "constraint": { + "PRIMARY": true, + "SALES_INVOICE_ITEM_PARENT_ID_SALES_INVOICE_ENTITY_ID": true + } + }, + "sales_invoice_comment": { + "column": { + "entity_id": true, + "parent_id": true, + "is_customer_notified": true, + "is_visible_on_front": true, + "comment": true, + "created_at": true + }, + "index": { + "SALES_INVOICE_COMMENT_CREATED_AT": true, + "SALES_INVOICE_COMMENT_PARENT_ID": true + }, + "constraint": { + "PRIMARY": true, + "SALES_INVOICE_COMMENT_PARENT_ID_SALES_INVOICE_ENTITY_ID": true + } + }, + "sales_creditmemo": { + "column": { + "entity_id": true, + "store_id": true, + "adjustment_positive": true, + "base_shipping_tax_amount": true, + "store_to_order_rate": true, + "base_discount_amount": true, + "base_to_order_rate": true, + "grand_total": true, + "base_adjustment_negative": true, + "base_subtotal_incl_tax": true, + "shipping_amount": true, + "subtotal_incl_tax": true, + "adjustment_negative": true, + "base_shipping_amount": true, + "store_to_base_rate": true, + "base_to_global_rate": true, + "base_adjustment": true, + "base_subtotal": true, + "discount_amount": true, + "subtotal": true, + "adjustment": true, + "base_grand_total": true, + "base_adjustment_positive": true, + "base_tax_amount": true, + "shipping_tax_amount": true, + "tax_amount": true, + "order_id": true, + "email_sent": true, + "send_email": true, + "creditmemo_status": true, + "state": true, + "shipping_address_id": true, + "billing_address_id": true, + "invoice_id": true, + "store_currency_code": true, + "order_currency_code": true, + "base_currency_code": true, + "global_currency_code": true, + "transaction_id": true, + "increment_id": true, + "created_at": true, + "updated_at": true, + "discount_tax_compensation_amount": true, + "base_discount_tax_compensation_amount": true, + "shipping_discount_tax_compensation_amount": true, + "base_shipping_discount_tax_compensation_amnt": true, + "shipping_incl_tax": true, + "base_shipping_incl_tax": true, + "discount_description": true, + "customer_note": true, + "customer_note_notify": true + }, + "index": { + "SALES_CREDITMEMO_STORE_ID": true, + "SALES_CREDITMEMO_ORDER_ID": true, + "SALES_CREDITMEMO_CREDITMEMO_STATUS": true, + "SALES_CREDITMEMO_STATE": true, + "SALES_CREDITMEMO_CREATED_AT": true, + "SALES_CREDITMEMO_UPDATED_AT": true, + "SALES_CREDITMEMO_SEND_EMAIL": true, + "SALES_CREDITMEMO_EMAIL_SENT": true + }, + "constraint": { + "PRIMARY": true, + "SALES_CREDITMEMO_ORDER_ID_SALES_ORDER_ENTITY_ID": true, + "SALES_CREDITMEMO_STORE_ID_STORE_STORE_ID": true, + "SALES_CREDITMEMO_INCREMENT_ID_STORE_ID": true + } + }, + "sales_creditmemo_grid": { + "column": { + "entity_id": true, + "increment_id": true, + "created_at": true, + "updated_at": true, + "order_id": true, + "order_increment_id": true, + "order_created_at": true, + "billing_name": true, + "state": true, + "base_grand_total": true, + "order_status": true, + "store_id": true, + "billing_address": true, + "shipping_address": true, + "customer_name": true, + "customer_email": true, + "customer_group_id": true, + "payment_method": true, + "shipping_information": true, + "subtotal": true, + "shipping_and_handling": true, + "adjustment_positive": true, + "adjustment_negative": true, + "order_base_grand_total": true + }, + "index": { + "SALES_CREDITMEMO_GRID_ORDER_INCREMENT_ID": true, + "SALES_CREDITMEMO_GRID_CREATED_AT": true, + "SALES_CREDITMEMO_GRID_UPDATED_AT": true, + "SALES_CREDITMEMO_GRID_ORDER_CREATED_AT": true, + "SALES_CREDITMEMO_GRID_STATE": true, + "SALES_CREDITMEMO_GRID_BILLING_NAME": true, + "SALES_CREDITMEMO_GRID_ORDER_STATUS": true, + "SALES_CREDITMEMO_GRID_BASE_GRAND_TOTAL": true, + "SALES_CREDITMEMO_GRID_STORE_ID": true, + "SALES_CREDITMEMO_GRID_ORDER_BASE_GRAND_TOTAL": true, + "SALES_CREDITMEMO_GRID_ORDER_ID": true, + "FTI_32B7BA885941A8254EE84AE650ABDC86": true + }, + "constraint": { + "PRIMARY": true, + "SALES_CREDITMEMO_GRID_INCREMENT_ID_STORE_ID": true + } + }, + "sales_creditmemo_item": { + "column": { + "entity_id": true, + "parent_id": true, + "base_price": true, + "tax_amount": true, + "base_row_total": true, + "discount_amount": true, + "row_total": true, + "base_discount_amount": true, + "price_incl_tax": true, + "base_tax_amount": true, + "base_price_incl_tax": true, + "qty": true, + "base_cost": true, + "price": true, + "base_row_total_incl_tax": true, + "row_total_incl_tax": true, + "product_id": true, + "order_item_id": true, + "additional_data": true, + "description": true, + "sku": true, + "name": true, + "discount_tax_compensation_amount": true, + "base_discount_tax_compensation_amount": true, + "tax_ratio": true + }, + "index": { + "SALES_CREDITMEMO_ITEM_PARENT_ID": true + }, + "constraint": { + "PRIMARY": true, + "SALES_CREDITMEMO_ITEM_PARENT_ID_SALES_CREDITMEMO_ENTITY_ID": true + } + }, + "sales_creditmemo_comment": { + "column": { + "entity_id": true, + "parent_id": true, + "is_customer_notified": true, + "is_visible_on_front": true, + "comment": true, + "created_at": true + }, + "index": { + "SALES_CREDITMEMO_COMMENT_CREATED_AT": true, + "SALES_CREDITMEMO_COMMENT_PARENT_ID": true + }, + "constraint": { + "PRIMARY": true, + "SALES_CREDITMEMO_COMMENT_PARENT_ID_SALES_CREDITMEMO_ENTITY_ID": true + } + }, + "sales_invoiced_aggregated": { + "column": { + "id": true, + "period": true, + "store_id": true, + "order_status": true, + "orders_count": true, + "orders_invoiced": true, + "invoiced": true, + "invoiced_captured": true, + "invoiced_not_captured": true + }, + "index": { + "SALES_INVOICED_AGGREGATED_STORE_ID": true + }, + "constraint": { + "PRIMARY": true, + "SALES_INVOICED_AGGREGATED_STORE_ID_STORE_STORE_ID": true, + "SALES_INVOICED_AGGREGATED_PERIOD_STORE_ID_ORDER_STATUS": true + } + }, + "sales_invoiced_aggregated_order": { + "column": { + "id": true, + "period": true, + "store_id": true, + "order_status": true, + "orders_count": true, + "orders_invoiced": true, + "invoiced": true, + "invoiced_captured": true, + "invoiced_not_captured": true + }, + "index": { + "SALES_INVOICED_AGGREGATED_ORDER_STORE_ID": true + }, + "constraint": { + "PRIMARY": true, + "SALES_INVOICED_AGGREGATED_ORDER_STORE_ID_STORE_STORE_ID": true, + "SALES_INVOICED_AGGREGATED_ORDER_PERIOD_STORE_ID_ORDER_STATUS": true + } + }, + "sales_order_aggregated_created": { + "column": { + "id": true, + "period": true, + "store_id": true, + "order_status": true, + "orders_count": true, + "total_qty_ordered": true, + "total_qty_invoiced": true, + "total_income_amount": true, + "total_revenue_amount": true, + "total_profit_amount": true, + "total_invoiced_amount": true, + "total_canceled_amount": true, + "total_paid_amount": true, + "total_refunded_amount": true, + "total_tax_amount": true, + "total_tax_amount_actual": true, + "total_shipping_amount": true, + "total_shipping_amount_actual": true, + "total_discount_amount": true, + "total_discount_amount_actual": true + }, + "index": { + "SALES_ORDER_AGGREGATED_CREATED_STORE_ID": true + }, + "constraint": { + "PRIMARY": true, + "SALES_ORDER_AGGREGATED_CREATED_STORE_ID_STORE_STORE_ID": true, + "SALES_ORDER_AGGREGATED_CREATED_PERIOD_STORE_ID_ORDER_STATUS": true + } + }, + "sales_order_aggregated_updated": { + "column": { + "id": true, + "period": true, + "store_id": true, + "order_status": true, + "orders_count": true, + "total_qty_ordered": true, + "total_qty_invoiced": true, + "total_income_amount": true, + "total_revenue_amount": true, + "total_profit_amount": true, + "total_invoiced_amount": true, + "total_canceled_amount": true, + "total_paid_amount": true, + "total_refunded_amount": true, + "total_tax_amount": true, + "total_tax_amount_actual": true, + "total_shipping_amount": true, + "total_shipping_amount_actual": true, + "total_discount_amount": true, + "total_discount_amount_actual": true + }, + "index": { + "SALES_ORDER_AGGREGATED_UPDATED_STORE_ID": true + }, + "constraint": { + "PRIMARY": true, + "SALES_ORDER_AGGREGATED_UPDATED_STORE_ID_STORE_STORE_ID": true, + "SALES_ORDER_AGGREGATED_UPDATED_PERIOD_STORE_ID_ORDER_STATUS": true + } + }, + "sales_payment_transaction": { + "column": { + "transaction_id": true, + "parent_id": true, + "order_id": true, + "payment_id": true, + "txn_id": true, + "parent_txn_id": true, + "txn_type": true, + "is_closed": true, + "additional_information": true, + "created_at": true + }, + "index": { + "SALES_PAYMENT_TRANSACTION_PARENT_ID": true, + "SALES_PAYMENT_TRANSACTION_PAYMENT_ID": true + }, + "constraint": { + "PRIMARY": true, + "SALES_PAYMENT_TRANSACTION_ORDER_ID_SALES_ORDER_ENTITY_ID": true, + "FK_B99FF1A06402D725EBDB0F3A7ECD47A2": true, + "SALES_PAYMENT_TRANSACTION_PAYMENT_ID_SALES_ORDER_PAYMENT_ENTT_ID": true, + "SALES_PAYMENT_TRANSACTION_ORDER_ID_PAYMENT_ID_TXN_ID": true + } + }, + "sales_refunded_aggregated": { + "column": { + "id": true, + "period": true, + "store_id": true, + "order_status": true, + "orders_count": true, + "refunded": true, + "online_refunded": true, + "offline_refunded": true + }, + "index": { + "SALES_REFUNDED_AGGREGATED_STORE_ID": true + }, + "constraint": { + "PRIMARY": true, + "SALES_REFUNDED_AGGREGATED_STORE_ID_STORE_STORE_ID": true, + "SALES_REFUNDED_AGGREGATED_PERIOD_STORE_ID_ORDER_STATUS": true + } + }, + "sales_refunded_aggregated_order": { + "column": { + "id": true, + "period": true, + "store_id": true, + "order_status": true, + "orders_count": true, + "refunded": true, + "online_refunded": true, + "offline_refunded": true + }, + "index": { + "SALES_REFUNDED_AGGREGATED_ORDER_STORE_ID": true + }, + "constraint": { + "PRIMARY": true, + "SALES_REFUNDED_AGGREGATED_ORDER_STORE_ID_STORE_STORE_ID": true, + "SALES_REFUNDED_AGGREGATED_ORDER_PERIOD_STORE_ID_ORDER_STATUS": true + } + }, + "sales_shipping_aggregated": { + "column": { + "id": true, + "period": true, + "store_id": true, + "order_status": true, + "shipping_description": true, + "orders_count": true, + "total_shipping": true, + "total_shipping_actual": true + }, + "index": { + "SALES_SHIPPING_AGGREGATED_STORE_ID": true + }, + "constraint": { + "PRIMARY": true, + "SALES_SHIPPING_AGGREGATED_STORE_ID_STORE_STORE_ID": true, + "SALES_SHPP_AGGRED_PERIOD_STORE_ID_ORDER_STS_SHPP_DESCRIPTION": true + } + }, + "sales_shipping_aggregated_order": { + "column": { + "id": true, + "period": true, + "store_id": true, + "order_status": true, + "shipping_description": true, + "orders_count": true, + "total_shipping": true, + "total_shipping_actual": true + }, + "index": { + "SALES_SHIPPING_AGGREGATED_ORDER_STORE_ID": true + }, + "constraint": { + "PRIMARY": true, + "SALES_SHIPPING_AGGREGATED_ORDER_STORE_ID_STORE_STORE_ID": true, + "UNQ_C05FAE47282EEA68654D0924E946761F": true + } + }, + "sales_bestsellers_aggregated_daily": { + "column": { + "id": true, + "period": true, + "store_id": true, + "product_id": true, + "product_name": true, + "product_price": true, + "qty_ordered": true, + "rating_pos": true + }, + "index": { + "SALES_BESTSELLERS_AGGREGATED_DAILY_STORE_ID": true, + "SALES_BESTSELLERS_AGGREGATED_DAILY_PRODUCT_ID": true + }, + "constraint": { + "PRIMARY": true, + "SALES_BESTSELLERS_AGGREGATED_DAILY_STORE_ID_STORE_STORE_ID": true, + "SALES_BESTSELLERS_AGGREGATED_DAILY_PERIOD_STORE_ID_PRODUCT_ID": true + } + }, + "sales_bestsellers_aggregated_monthly": { + "column": { + "id": true, + "period": true, + "store_id": true, + "product_id": true, + "product_name": true, + "product_price": true, + "qty_ordered": true, + "rating_pos": true + }, + "index": { + "SALES_BESTSELLERS_AGGREGATED_MONTHLY_STORE_ID": true, + "SALES_BESTSELLERS_AGGREGATED_MONTHLY_PRODUCT_ID": true + }, + "constraint": { + "PRIMARY": true, + "SALES_BESTSELLERS_AGGREGATED_MONTHLY_STORE_ID_STORE_STORE_ID": true, + "SALES_BESTSELLERS_AGGREGATED_MONTHLY_PERIOD_STORE_ID_PRODUCT_ID": true + } + }, + "sales_bestsellers_aggregated_yearly": { + "column": { + "id": true, + "period": true, + "store_id": true, + "product_id": true, + "product_name": true, + "product_price": true, + "qty_ordered": true, + "rating_pos": true + }, + "index": { + "SALES_BESTSELLERS_AGGREGATED_YEARLY_STORE_ID": true, + "SALES_BESTSELLERS_AGGREGATED_YEARLY_PRODUCT_ID": true + }, + "constraint": { + "PRIMARY": true, + "SALES_BESTSELLERS_AGGREGATED_YEARLY_STORE_ID_STORE_STORE_ID": true, + "SALES_BESTSELLERS_AGGREGATED_YEARLY_PERIOD_STORE_ID_PRODUCT_ID": true + } + }, + "sales_order_tax": { + "column": { + "tax_id": true, + "order_id": true, + "code": true, + "title": true, + "percent": true, + "amount": true, + "priority": true, + "position": true, + "base_amount": true, + "process": true, + "base_real_amount": true + }, + "index": { + "SALES_ORDER_TAX_ORDER_ID_PRIORITY_POSITION": true + }, + "constraint": { + "PRIMARY": true + } + }, + "sales_order_tax_item": { + "column": { + "tax_item_id": true, + "tax_id": true, + "item_id": true, + "tax_percent": true, + "amount": true, + "base_amount": true, + "real_amount": true, + "real_base_amount": true, + "associated_item_id": true, + "taxable_item_type": true + }, + "index": { + "SALES_ORDER_TAX_ITEM_ITEM_ID": true + }, + "constraint": { + "PRIMARY": true, + "SALES_ORDER_TAX_ITEM_ASSOCIATED_ITEM_ID_SALES_ORDER_ITEM_ITEM_ID": true, + "SALES_ORDER_TAX_ITEM_TAX_ID_SALES_ORDER_TAX_TAX_ID": true, + "SALES_ORDER_TAX_ITEM_ITEM_ID_SALES_ORDER_ITEM_ITEM_ID": true, + "SALES_ORDER_TAX_ITEM_TAX_ID_ITEM_ID": true + } + }, + "sales_order_status": { + "column": { + "status": true, + "label": true + }, + "constraint": { + "PRIMARY": true + } + }, + "sales_order_status_state": { + "column": { + "status": true, + "state": true, + "is_default": true, + "visible_on_front": true + }, + "constraint": { + "PRIMARY": true, + "SALES_ORDER_STATUS_STATE_STATUS_SALES_ORDER_STATUS_STATUS": true + } + }, + "sales_order_status_label": { + "column": { + "status": true, + "store_id": true, + "label": true + }, + "index": { + "SALES_ORDER_STATUS_LABEL_STORE_ID": true + }, + "constraint": { + "PRIMARY": true, + "SALES_ORDER_STATUS_LABEL_STATUS_SALES_ORDER_STATUS_STATUS": true, + "SALES_ORDER_STATUS_LABEL_STORE_ID_STORE_STORE_ID": true + } } - } } \ No newline at end of file diff --git a/app/code/Magento/SalesRule/etc/db_schema_whitelist.json b/app/code/Magento/SalesRule/etc/db_schema_whitelist.json index e72a0c687331a..f05591b276231 100644 --- a/app/code/Magento/SalesRule/etc/db_schema_whitelist.json +++ b/app/code/Magento/SalesRule/etc/db_schema_whitelist.json @@ -1,230 +1,230 @@ { - "salesrule": { - "column": { - "rule_id": true, - "name": true, - "description": true, - "from_date": true, - "to_date": true, - "uses_per_customer": true, - "is_active": true, - "conditions_serialized": true, - "actions_serialized": true, - "stop_rules_processing": true, - "is_advanced": true, - "product_ids": true, - "sort_order": true, - "simple_action": true, - "discount_amount": true, - "discount_qty": true, - "discount_step": true, - "apply_to_shipping": true, - "times_used": true, - "is_rss": true, - "coupon_type": true, - "use_auto_generation": true, - "uses_per_coupon": true - }, - "index": { - "SALESRULE_IS_ACTIVE_SORT_ORDER_TO_DATE_FROM_DATE": true - }, - "constraint": { - "PRIMARY": true - } - }, - "salesrule_coupon": { - "column": { - "coupon_id": true, - "rule_id": true, - "code": true, - "usage_limit": true, - "usage_per_customer": true, - "times_used": true, - "expiration_date": true, - "is_primary": true, - "created_at": true, - "type": true - }, - "index": { - "SALESRULE_COUPON_RULE_ID": true - }, - "constraint": { - "PRIMARY": true, - "SALESRULE_COUPON_RULE_ID_SALESRULE_RULE_ID": true, - "SALESRULE_COUPON_CODE": true, - "SALESRULE_COUPON_RULE_ID_IS_PRIMARY": true - } - }, - "salesrule_coupon_usage": { - "column": { - "coupon_id": true, - "customer_id": true, - "times_used": true - }, - "index": { - "SALESRULE_COUPON_USAGE_CUSTOMER_ID": true - }, - "constraint": { - "PRIMARY": true, - "SALESRULE_COUPON_USAGE_COUPON_ID_SALESRULE_COUPON_COUPON_ID": true, - "SALESRULE_COUPON_USAGE_CUSTOMER_ID_CUSTOMER_ENTITY_ENTITY_ID": true - } - }, - "salesrule_customer": { - "column": { - "rule_customer_id": true, - "rule_id": true, - "customer_id": true, - "times_used": true - }, - "index": { - "SALESRULE_CUSTOMER_RULE_ID_CUSTOMER_ID": true, - "SALESRULE_CUSTOMER_CUSTOMER_ID_RULE_ID": true - }, - "constraint": { - "PRIMARY": true, - "SALESRULE_CUSTOMER_CUSTOMER_ID_CUSTOMER_ENTITY_ENTITY_ID": true, - "SALESRULE_CUSTOMER_RULE_ID_SALESRULE_RULE_ID": true - } - }, - "salesrule_label": { - "column": { - "label_id": true, - "rule_id": true, - "store_id": true, - "label": true - }, - "index": { - "SALESRULE_LABEL_STORE_ID": true - }, - "constraint": { - "PRIMARY": true, - "SALESRULE_LABEL_RULE_ID_SALESRULE_RULE_ID": true, - "SALESRULE_LABEL_STORE_ID_STORE_STORE_ID": true, - "SALESRULE_LABEL_RULE_ID_STORE_ID": true - } - }, - "salesrule_product_attribute": { - "column": { - "rule_id": true, - "website_id": true, - "customer_group_id": true, - "attribute_id": true - }, - "index": { - "SALESRULE_PRODUCT_ATTRIBUTE_WEBSITE_ID": true, - "SALESRULE_PRODUCT_ATTRIBUTE_CUSTOMER_GROUP_ID": true, - "SALESRULE_PRODUCT_ATTRIBUTE_ATTRIBUTE_ID": true - }, - "constraint": { - "PRIMARY": true, - "SALESRULE_PRD_ATTR_ATTR_ID_EAV_ATTR_ATTR_ID": true, - "SALESRULE_PRD_ATTR_CSTR_GROUP_ID_CSTR_GROUP_CSTR_GROUP_ID": true, - "SALESRULE_PRODUCT_ATTRIBUTE_RULE_ID_SALESRULE_RULE_ID": true, - "SALESRULE_PRODUCT_ATTRIBUTE_WEBSITE_ID_STORE_WEBSITE_WEBSITE_ID": true - } - }, - "salesrule_coupon_aggregated": { - "column": { - "id": true, - "period": true, - "store_id": true, - "order_status": true, - "coupon_code": true, - "coupon_uses": true, - "subtotal_amount": true, - "discount_amount": true, - "total_amount": true, - "subtotal_amount_actual": true, - "discount_amount_actual": true, - "total_amount_actual": true, - "rule_name": true - }, - "index": { - "SALESRULE_COUPON_AGGREGATED_STORE_ID": true, - "SALESRULE_COUPON_AGGREGATED_RULE_NAME": true - }, - "constraint": { - "PRIMARY": true, - "SALESRULE_COUPON_AGGREGATED_STORE_ID_STORE_STORE_ID": true, - "SALESRULE_COUPON_AGGRED_PERIOD_STORE_ID_ORDER_STS_COUPON_CODE": true - } - }, - "salesrule_coupon_aggregated_updated": { - "column": { - "id": true, - "period": true, - "store_id": true, - "order_status": true, - "coupon_code": true, - "coupon_uses": true, - "subtotal_amount": true, - "discount_amount": true, - "total_amount": true, - "subtotal_amount_actual": true, - "discount_amount_actual": true, - "total_amount_actual": true, - "rule_name": true - }, - "index": { - "SALESRULE_COUPON_AGGREGATED_UPDATED_STORE_ID": true, - "SALESRULE_COUPON_AGGREGATED_UPDATED_RULE_NAME": true - }, - "constraint": { - "PRIMARY": true, - "SALESRULE_COUPON_AGGREGATED_UPDATED_STORE_ID_STORE_STORE_ID": true, - "UNQ_7196FA120A4F0F84E1B66605E87E213E": true - } - }, - "salesrule_coupon_aggregated_order": { - "column": { - "id": true, - "period": true, - "store_id": true, - "order_status": true, - "coupon_code": true, - "coupon_uses": true, - "subtotal_amount": true, - "discount_amount": true, - "total_amount": true, - "rule_name": true - }, - "index": { - "SALESRULE_COUPON_AGGREGATED_ORDER_STORE_ID": true, - "SALESRULE_COUPON_AGGREGATED_ORDER_RULE_NAME": true - }, - "constraint": { - "PRIMARY": true, - "SALESRULE_COUPON_AGGREGATED_ORDER_STORE_ID_STORE_STORE_ID": true, - "UNQ_1094D1FBBCBB11704A29DEF3ACC37D2B": true - } - }, - "salesrule_website": { - "column": { - "rule_id": true, - "website_id": true - }, - "index": { - "SALESRULE_WEBSITE_WEBSITE_ID": true - }, - "constraint": { - "PRIMARY": true, - "SALESRULE_WEBSITE_RULE_ID_SALESRULE_RULE_ID": true, - "SALESRULE_WEBSITE_WEBSITE_ID_STORE_WEBSITE_WEBSITE_ID": true - } - }, - "salesrule_customer_group": { - "column": { - "rule_id": true, - "customer_group_id": true - }, - "index": { - "SALESRULE_CUSTOMER_GROUP_CUSTOMER_GROUP_ID": true - }, - "constraint": { - "PRIMARY": true, - "SALESRULE_CUSTOMER_GROUP_RULE_ID_SALESRULE_RULE_ID": true, - "SALESRULE_CSTR_GROUP_CSTR_GROUP_ID_CSTR_GROUP_CSTR_GROUP_ID": true + "salesrule": { + "column": { + "rule_id": true, + "name": true, + "description": true, + "from_date": true, + "to_date": true, + "uses_per_customer": true, + "is_active": true, + "conditions_serialized": true, + "actions_serialized": true, + "stop_rules_processing": true, + "is_advanced": true, + "product_ids": true, + "sort_order": true, + "simple_action": true, + "discount_amount": true, + "discount_qty": true, + "discount_step": true, + "apply_to_shipping": true, + "times_used": true, + "is_rss": true, + "coupon_type": true, + "use_auto_generation": true, + "uses_per_coupon": true + }, + "index": { + "SALESRULE_IS_ACTIVE_SORT_ORDER_TO_DATE_FROM_DATE": true + }, + "constraint": { + "PRIMARY": true + } + }, + "salesrule_coupon": { + "column": { + "coupon_id": true, + "rule_id": true, + "code": true, + "usage_limit": true, + "usage_per_customer": true, + "times_used": true, + "expiration_date": true, + "is_primary": true, + "created_at": true, + "type": true + }, + "index": { + "SALESRULE_COUPON_RULE_ID": true + }, + "constraint": { + "PRIMARY": true, + "SALESRULE_COUPON_RULE_ID_SALESRULE_RULE_ID": true, + "SALESRULE_COUPON_CODE": true, + "SALESRULE_COUPON_RULE_ID_IS_PRIMARY": true + } + }, + "salesrule_coupon_usage": { + "column": { + "coupon_id": true, + "customer_id": true, + "times_used": true + }, + "index": { + "SALESRULE_COUPON_USAGE_CUSTOMER_ID": true + }, + "constraint": { + "PRIMARY": true, + "SALESRULE_COUPON_USAGE_COUPON_ID_SALESRULE_COUPON_COUPON_ID": true, + "SALESRULE_COUPON_USAGE_CUSTOMER_ID_CUSTOMER_ENTITY_ENTITY_ID": true + } + }, + "salesrule_customer": { + "column": { + "rule_customer_id": true, + "rule_id": true, + "customer_id": true, + "times_used": true + }, + "index": { + "SALESRULE_CUSTOMER_RULE_ID_CUSTOMER_ID": true, + "SALESRULE_CUSTOMER_CUSTOMER_ID_RULE_ID": true + }, + "constraint": { + "PRIMARY": true, + "SALESRULE_CUSTOMER_CUSTOMER_ID_CUSTOMER_ENTITY_ENTITY_ID": true, + "SALESRULE_CUSTOMER_RULE_ID_SALESRULE_RULE_ID": true + } + }, + "salesrule_label": { + "column": { + "label_id": true, + "rule_id": true, + "store_id": true, + "label": true + }, + "index": { + "SALESRULE_LABEL_STORE_ID": true + }, + "constraint": { + "PRIMARY": true, + "SALESRULE_LABEL_RULE_ID_SALESRULE_RULE_ID": true, + "SALESRULE_LABEL_STORE_ID_STORE_STORE_ID": true, + "SALESRULE_LABEL_RULE_ID_STORE_ID": true + } + }, + "salesrule_product_attribute": { + "column": { + "rule_id": true, + "website_id": true, + "customer_group_id": true, + "attribute_id": true + }, + "index": { + "SALESRULE_PRODUCT_ATTRIBUTE_WEBSITE_ID": true, + "SALESRULE_PRODUCT_ATTRIBUTE_CUSTOMER_GROUP_ID": true, + "SALESRULE_PRODUCT_ATTRIBUTE_ATTRIBUTE_ID": true + }, + "constraint": { + "PRIMARY": true, + "SALESRULE_PRD_ATTR_ATTR_ID_EAV_ATTR_ATTR_ID": true, + "SALESRULE_PRD_ATTR_CSTR_GROUP_ID_CSTR_GROUP_CSTR_GROUP_ID": true, + "SALESRULE_PRODUCT_ATTRIBUTE_RULE_ID_SALESRULE_RULE_ID": true, + "SALESRULE_PRODUCT_ATTRIBUTE_WEBSITE_ID_STORE_WEBSITE_WEBSITE_ID": true + } + }, + "salesrule_coupon_aggregated": { + "column": { + "id": true, + "period": true, + "store_id": true, + "order_status": true, + "coupon_code": true, + "coupon_uses": true, + "subtotal_amount": true, + "discount_amount": true, + "total_amount": true, + "subtotal_amount_actual": true, + "discount_amount_actual": true, + "total_amount_actual": true, + "rule_name": true + }, + "index": { + "SALESRULE_COUPON_AGGREGATED_STORE_ID": true, + "SALESRULE_COUPON_AGGREGATED_RULE_NAME": true + }, + "constraint": { + "PRIMARY": true, + "SALESRULE_COUPON_AGGREGATED_STORE_ID_STORE_STORE_ID": true, + "SALESRULE_COUPON_AGGRED_PERIOD_STORE_ID_ORDER_STS_COUPON_CODE": true + } + }, + "salesrule_coupon_aggregated_updated": { + "column": { + "id": true, + "period": true, + "store_id": true, + "order_status": true, + "coupon_code": true, + "coupon_uses": true, + "subtotal_amount": true, + "discount_amount": true, + "total_amount": true, + "subtotal_amount_actual": true, + "discount_amount_actual": true, + "total_amount_actual": true, + "rule_name": true + }, + "index": { + "SALESRULE_COUPON_AGGREGATED_UPDATED_STORE_ID": true, + "SALESRULE_COUPON_AGGREGATED_UPDATED_RULE_NAME": true + }, + "constraint": { + "PRIMARY": true, + "SALESRULE_COUPON_AGGREGATED_UPDATED_STORE_ID_STORE_STORE_ID": true, + "UNQ_7196FA120A4F0F84E1B66605E87E213E": true + } + }, + "salesrule_coupon_aggregated_order": { + "column": { + "id": true, + "period": true, + "store_id": true, + "order_status": true, + "coupon_code": true, + "coupon_uses": true, + "subtotal_amount": true, + "discount_amount": true, + "total_amount": true, + "rule_name": true + }, + "index": { + "SALESRULE_COUPON_AGGREGATED_ORDER_STORE_ID": true, + "SALESRULE_COUPON_AGGREGATED_ORDER_RULE_NAME": true + }, + "constraint": { + "PRIMARY": true, + "SALESRULE_COUPON_AGGREGATED_ORDER_STORE_ID_STORE_STORE_ID": true, + "UNQ_1094D1FBBCBB11704A29DEF3ACC37D2B": true + } + }, + "salesrule_website": { + "column": { + "rule_id": true, + "website_id": true + }, + "index": { + "SALESRULE_WEBSITE_WEBSITE_ID": true + }, + "constraint": { + "PRIMARY": true, + "SALESRULE_WEBSITE_RULE_ID_SALESRULE_RULE_ID": true, + "SALESRULE_WEBSITE_WEBSITE_ID_STORE_WEBSITE_WEBSITE_ID": true + } + }, + "salesrule_customer_group": { + "column": { + "rule_id": true, + "customer_group_id": true + }, + "index": { + "SALESRULE_CUSTOMER_GROUP_CUSTOMER_GROUP_ID": true + }, + "constraint": { + "PRIMARY": true, + "SALESRULE_CUSTOMER_GROUP_RULE_ID_SALESRULE_RULE_ID": true, + "SALESRULE_CSTR_GROUP_CSTR_GROUP_ID_CSTR_GROUP_CSTR_GROUP_ID": true + } } - } } \ No newline at end of file diff --git a/app/code/Magento/SalesSequence/etc/db_schema_whitelist.json b/app/code/Magento/SalesSequence/etc/db_schema_whitelist.json index 37a5d715ab024..17fec04e24467 100644 --- a/app/code/Magento/SalesSequence/etc/db_schema_whitelist.json +++ b/app/code/Magento/SalesSequence/etc/db_schema_whitelist.json @@ -1,32 +1,32 @@ { - "sales_sequence_profile": { - "column": { - "profile_id": true, - "meta_id": true, - "prefix": true, - "suffix": true, - "start_value": true, - "step": true, - "max_value": true, - "warning_value": true, - "is_active": true + "sales_sequence_profile": { + "column": { + "profile_id": true, + "meta_id": true, + "prefix": true, + "suffix": true, + "start_value": true, + "step": true, + "max_value": true, + "warning_value": true, + "is_active": true + }, + "constraint": { + "PRIMARY": true, + "SALES_SEQUENCE_PROFILE_META_ID_SALES_SEQUENCE_META_META_ID": true, + "SALES_SEQUENCE_PROFILE_META_ID_PREFIX_SUFFIX": true + } }, - "constraint": { - "PRIMARY": true, - "SALES_SEQUENCE_PROFILE_META_ID_SALES_SEQUENCE_META_META_ID": true, - "SALES_SEQUENCE_PROFILE_META_ID_PREFIX_SUFFIX": true + "sales_sequence_meta": { + "column": { + "meta_id": true, + "entity_type": true, + "store_id": true, + "sequence_table": true + }, + "constraint": { + "PRIMARY": true, + "SALES_SEQUENCE_META_ENTITY_TYPE_STORE_ID": true + } } - }, - "sales_sequence_meta": { - "column": { - "meta_id": true, - "entity_type": true, - "store_id": true, - "sequence_table": true - }, - "constraint": { - "PRIMARY": true, - "SALES_SEQUENCE_META_ENTITY_TYPE_STORE_ID": true - } - } } \ No newline at end of file diff --git a/app/code/Magento/Search/etc/db_schema_whitelist.json b/app/code/Magento/Search/etc/db_schema_whitelist.json index 72b417b976862..71adbc68887d0 100644 --- a/app/code/Magento/Search/etc/db_schema_whitelist.json +++ b/app/code/Magento/Search/etc/db_schema_whitelist.json @@ -1,46 +1,46 @@ { - "search_query": { - "column": { - "query_id": true, - "query_text": true, - "num_results": true, - "popularity": true, - "redirect": true, - "synonym_for": true, - "store_id": true, - "display_in_terms": true, - "is_active": true, - "is_processed": true, - "updated_at": true + "search_query": { + "column": { + "query_id": true, + "query_text": true, + "num_results": true, + "popularity": true, + "redirect": true, + "synonym_for": true, + "store_id": true, + "display_in_terms": true, + "is_active": true, + "is_processed": true, + "updated_at": true + }, + "index": { + "SEARCH_QUERY_QUERY_TEXT_STORE_ID_POPULARITY": true, + "SEARCH_QUERY_STORE_ID": true, + "SEARCH_QUERY_IS_PROCESSED": true, + "SEARCH_QUERY_SYNONYM_FOR": true + }, + "constraint": { + "PRIMARY": true, + "SEARCH_QUERY_STORE_ID_STORE_STORE_ID": true, + "SEARCH_QUERY_QUERY_TEXT_STORE_ID": true + } }, - "index": { - "SEARCH_QUERY_QUERY_TEXT_STORE_ID_POPULARITY": true, - "SEARCH_QUERY_STORE_ID": true, - "SEARCH_QUERY_IS_PROCESSED": true, - "SEARCH_QUERY_SYNONYM_FOR": true - }, - "constraint": { - "PRIMARY": true, - "SEARCH_QUERY_STORE_ID_STORE_STORE_ID": true, - "SEARCH_QUERY_QUERY_TEXT_STORE_ID": true - } - }, - "search_synonyms": { - "column": { - "group_id": true, - "synonyms": true, - "store_id": true, - "website_id": true - }, - "index": { - "SEARCH_SYNONYMS_SYNONYMS": true, - "SEARCH_SYNONYMS_STORE_ID": true, - "SEARCH_SYNONYMS_WEBSITE_ID": true - }, - "constraint": { - "PRIMARY": true, - "SEARCH_SYNONYMS_STORE_ID_STORE_STORE_ID": true, - "SEARCH_SYNONYMS_WEBSITE_ID_STORE_WEBSITE_WEBSITE_ID": true + "search_synonyms": { + "column": { + "group_id": true, + "synonyms": true, + "store_id": true, + "website_id": true + }, + "index": { + "SEARCH_SYNONYMS_SYNONYMS": true, + "SEARCH_SYNONYMS_STORE_ID": true, + "SEARCH_SYNONYMS_WEBSITE_ID": true + }, + "constraint": { + "PRIMARY": true, + "SEARCH_SYNONYMS_STORE_ID_STORE_STORE_ID": true, + "SEARCH_SYNONYMS_WEBSITE_ID_STORE_WEBSITE_WEBSITE_ID": true + } } - } } \ No newline at end of file diff --git a/app/code/Magento/Security/etc/db_schema_whitelist.json b/app/code/Magento/Security/etc/db_schema_whitelist.json index c9115aed6fb82..c387b7591c7a5 100644 --- a/app/code/Magento/Security/etc/db_schema_whitelist.json +++ b/app/code/Magento/Security/etc/db_schema_whitelist.json @@ -1,37 +1,37 @@ { - "admin_user_session": { - "column": { - "id": true, - "session_id": true, - "user_id": true, - "status": true, - "created_at": true, - "updated_at": true, - "ip": true + "admin_user_session": { + "column": { + "id": true, + "session_id": true, + "user_id": true, + "status": true, + "created_at": true, + "updated_at": true, + "ip": true + }, + "index": { + "ADMIN_USER_SESSION_SESSION_ID": true, + "ADMIN_USER_SESSION_USER_ID": true + }, + "constraint": { + "PRIMARY": true, + "ADMIN_USER_SESSION_USER_ID_ADMIN_USER_USER_ID": true + } }, - "index": { - "ADMIN_USER_SESSION_SESSION_ID": true, - "ADMIN_USER_SESSION_USER_ID": true - }, - "constraint": { - "PRIMARY": true, - "ADMIN_USER_SESSION_USER_ID_ADMIN_USER_USER_ID": true - } - }, - "password_reset_request_event": { - "column": { - "id": true, - "request_type": true, - "account_reference": true, - "created_at": true, - "ip": true - }, - "index": { - "PASSWORD_RESET_REQUEST_EVENT_ACCOUNT_REFERENCE": true, - "PASSWORD_RESET_REQUEST_EVENT_CREATED_AT": true - }, - "constraint": { - "PRIMARY": true + "password_reset_request_event": { + "column": { + "id": true, + "request_type": true, + "account_reference": true, + "created_at": true, + "ip": true + }, + "index": { + "PASSWORD_RESET_REQUEST_EVENT_ACCOUNT_REFERENCE": true, + "PASSWORD_RESET_REQUEST_EVENT_CREATED_AT": true + }, + "constraint": { + "PRIMARY": true + } } - } } \ No newline at end of file diff --git a/app/code/Magento/SendFriend/etc/db_schema_whitelist.json b/app/code/Magento/SendFriend/etc/db_schema_whitelist.json index eebb79747432c..5cab97e6dfb1c 100644 --- a/app/code/Magento/SendFriend/etc/db_schema_whitelist.json +++ b/app/code/Magento/SendFriend/etc/db_schema_whitelist.json @@ -1,17 +1,17 @@ { - "sendfriend_log": { - "column": { - "log_id": true, - "ip": true, - "time": true, - "website_id": true - }, - "index": { - "SENDFRIEND_LOG_IP": true, - "SENDFRIEND_LOG_TIME": true - }, - "constraint": { - "PRIMARY": true + "sendfriend_log": { + "column": { + "log_id": true, + "ip": true, + "time": true, + "website_id": true + }, + "index": { + "SENDFRIEND_LOG_IP": true, + "SENDFRIEND_LOG_TIME": true + }, + "constraint": { + "PRIMARY": true + } } - } } \ No newline at end of file diff --git a/app/code/Magento/Signifyd/etc/db_schema_whitelist.json b/app/code/Magento/Signifyd/etc/db_schema_whitelist.json index 31f753dbb3b39..69d164b23d9e7 100644 --- a/app/code/Magento/Signifyd/etc/db_schema_whitelist.json +++ b/app/code/Magento/Signifyd/etc/db_schema_whitelist.json @@ -1,28 +1,28 @@ { - "signifyd_case": { - "column": { - "entity_id": true, - "order_id": true, - "case_id": true, - "guarantee_eligible": true, - "guarantee_disposition": true, - "status": true, - "score": true, - "associated_team": true, - "review_disposition": true, - "created_at": true, - "updated_at": true + "signifyd_case": { + "column": { + "entity_id": true, + "order_id": true, + "case_id": true, + "guarantee_eligible": true, + "guarantee_disposition": true, + "status": true, + "score": true, + "associated_team": true, + "review_disposition": true, + "created_at": true, + "updated_at": true + }, + "constraint": { + "PRIMARY": true, + "SIGNIFYD_CASE_ORDER_ID_SALES_ORDER_ENTITY_ID": true, + "SIGNIFYD_CASE_ORDER_ID": true, + "SIGNIFYD_CASE_CASE_ID": true + } }, - "constraint": { - "PRIMARY": true, - "SIGNIFYD_CASE_ORDER_ID_SALES_ORDER_ENTITY_ID": true, - "SIGNIFYD_CASE_ORDER_ID": true, - "SIGNIFYD_CASE_CASE_ID": true + "sales_order_grid": { + "column": { + "signifyd_guarantee_status": true + } } - }, - "sales_order_grid": { - "column": { - "signifyd_guarantee_status": true - } - } } \ No newline at end of file diff --git a/app/code/Magento/Sitemap/etc/db_schema_whitelist.json b/app/code/Magento/Sitemap/etc/db_schema_whitelist.json index b7067f773b93f..b6359e7526a0f 100644 --- a/app/code/Magento/Sitemap/etc/db_schema_whitelist.json +++ b/app/code/Magento/Sitemap/etc/db_schema_whitelist.json @@ -1,19 +1,19 @@ { - "sitemap": { - "column": { - "sitemap_id": true, - "sitemap_type": true, - "sitemap_filename": true, - "sitemap_path": true, - "sitemap_time": true, - "store_id": true - }, - "index": { - "SITEMAP_STORE_ID": true - }, - "constraint": { - "PRIMARY": true, - "SITEMAP_STORE_ID_STORE_STORE_ID": true + "sitemap": { + "column": { + "sitemap_id": true, + "sitemap_type": true, + "sitemap_filename": true, + "sitemap_path": true, + "sitemap_time": true, + "store_id": true + }, + "index": { + "SITEMAP_STORE_ID": true + }, + "constraint": { + "PRIMARY": true, + "SITEMAP_STORE_ID_STORE_STORE_ID": true + } } - } } \ No newline at end of file diff --git a/app/code/Magento/Store/etc/db_schema_whitelist.json b/app/code/Magento/Store/etc/db_schema_whitelist.json index 5fa120333ff12..24ed35c361efb 100644 --- a/app/code/Magento/Store/etc/db_schema_whitelist.json +++ b/app/code/Magento/Store/etc/db_schema_whitelist.json @@ -1,61 +1,61 @@ { - "store_website": { - "column": { - "website_id": true, - "code": true, - "name": true, - "sort_order": true, - "default_group_id": true, - "is_default": true + "store_website": { + "column": { + "website_id": true, + "code": true, + "name": true, + "sort_order": true, + "default_group_id": true, + "is_default": true + }, + "index": { + "STORE_WEBSITE_SORT_ORDER": true, + "STORE_WEBSITE_DEFAULT_GROUP_ID": true + }, + "constraint": { + "PRIMARY": true, + "STORE_WEBSITE_CODE": true + } }, - "index": { - "STORE_WEBSITE_SORT_ORDER": true, - "STORE_WEBSITE_DEFAULT_GROUP_ID": true + "store_group": { + "column": { + "group_id": true, + "website_id": true, + "name": true, + "root_category_id": true, + "default_store_id": true, + "code": true + }, + "index": { + "STORE_GROUP_WEBSITE_ID": true, + "STORE_GROUP_DEFAULT_STORE_ID": true + }, + "constraint": { + "PRIMARY": true, + "STORE_GROUP_WEBSITE_ID_STORE_WEBSITE_WEBSITE_ID": true, + "STORE_GROUP_CODE": true + } }, - "constraint": { - "PRIMARY": true, - "STORE_WEBSITE_CODE": true + "store": { + "column": { + "store_id": true, + "code": true, + "website_id": true, + "group_id": true, + "name": true, + "sort_order": true, + "is_active": true + }, + "index": { + "STORE_WEBSITE_ID": true, + "STORE_IS_ACTIVE_SORT_ORDER": true, + "STORE_GROUP_ID": true + }, + "constraint": { + "PRIMARY": true, + "STORE_GROUP_ID_STORE_GROUP_GROUP_ID": true, + "STORE_WEBSITE_ID_STORE_WEBSITE_WEBSITE_ID": true, + "STORE_CODE": true + } } - }, - "store_group": { - "column": { - "group_id": true, - "website_id": true, - "name": true, - "root_category_id": true, - "default_store_id": true, - "code": true - }, - "index": { - "STORE_GROUP_WEBSITE_ID": true, - "STORE_GROUP_DEFAULT_STORE_ID": true - }, - "constraint": { - "PRIMARY": true, - "STORE_GROUP_WEBSITE_ID_STORE_WEBSITE_WEBSITE_ID": true, - "STORE_GROUP_CODE": true - } - }, - "store": { - "column": { - "store_id": true, - "code": true, - "website_id": true, - "group_id": true, - "name": true, - "sort_order": true, - "is_active": true - }, - "index": { - "STORE_WEBSITE_ID": true, - "STORE_IS_ACTIVE_SORT_ORDER": true, - "STORE_GROUP_ID": true - }, - "constraint": { - "PRIMARY": true, - "STORE_GROUP_ID_STORE_GROUP_GROUP_ID": true, - "STORE_WEBSITE_ID_STORE_WEBSITE_WEBSITE_ID": true, - "STORE_CODE": true - } - } } \ No newline at end of file diff --git a/app/code/Magento/Swatches/etc/db_schema_whitelist.json b/app/code/Magento/Swatches/etc/db_schema_whitelist.json index 8f335442def21..e1b8e4c7e1798 100644 --- a/app/code/Magento/Swatches/etc/db_schema_whitelist.json +++ b/app/code/Magento/Swatches/etc/db_schema_whitelist.json @@ -1,25 +1,25 @@ { - "catalog_eav_attribute": { - "column": { - "additional_data": true - } - }, - "eav_attribute_option_swatch": { - "column": { - "swatch_id": true, - "option_id": true, - "store_id": true, - "type": true, - "value": true - }, - "index": { - "EAV_ATTRIBUTE_OPTION_SWATCH_SWATCH_ID": true + "catalog_eav_attribute": { + "column": { + "additional_data": true + } }, - "constraint": { - "PRIMARY": true, - "EAV_ATTRIBUTE_OPTION_SWATCH_STORE_ID_STORE_STORE_ID": true, - "EAV_ATTR_OPT_SWATCH_OPT_ID_EAV_ATTR_OPT_OPT_ID": true, - "EAV_ATTRIBUTE_OPTION_SWATCH_STORE_ID_OPTION_ID": true + "eav_attribute_option_swatch": { + "column": { + "swatch_id": true, + "option_id": true, + "store_id": true, + "type": true, + "value": true + }, + "index": { + "EAV_ATTRIBUTE_OPTION_SWATCH_SWATCH_ID": true + }, + "constraint": { + "PRIMARY": true, + "EAV_ATTRIBUTE_OPTION_SWATCH_STORE_ID_STORE_STORE_ID": true, + "EAV_ATTR_OPT_SWATCH_OPT_ID_EAV_ATTR_OPT_OPT_ID": true, + "EAV_ATTRIBUTE_OPTION_SWATCH_STORE_ID_OPTION_ID": true + } } - } } \ No newline at end of file diff --git a/app/code/Magento/Tax/etc/db_schema_whitelist.json b/app/code/Magento/Tax/etc/db_schema_whitelist.json index 4e9731abce738..36a1dee1b455a 100644 --- a/app/code/Magento/Tax/etc/db_schema_whitelist.json +++ b/app/code/Magento/Tax/etc/db_schema_whitelist.json @@ -1,128 +1,128 @@ { - "tax_class": { - "column": { - "class_id": true, - "class_name": true, - "class_type": true + "tax_class": { + "column": { + "class_id": true, + "class_name": true, + "class_type": true + }, + "constraint": { + "PRIMARY": true + } }, - "constraint": { - "PRIMARY": true - } - }, - "tax_calculation_rule": { - "column": { - "tax_calculation_rule_id": true, - "code": true, - "priority": true, - "position": true, - "calculate_subtotal": true - }, - "index": { - "TAX_CALCULATION_RULE_PRIORITY_POSITION": true, - "TAX_CALCULATION_RULE_CODE": true + "tax_calculation_rule": { + "column": { + "tax_calculation_rule_id": true, + "code": true, + "priority": true, + "position": true, + "calculate_subtotal": true + }, + "index": { + "TAX_CALCULATION_RULE_PRIORITY_POSITION": true, + "TAX_CALCULATION_RULE_CODE": true + }, + "constraint": { + "PRIMARY": true + } }, - "constraint": { - "PRIMARY": true - } - }, - "tax_calculation_rate": { - "column": { - "tax_calculation_rate_id": true, - "tax_country_id": true, - "tax_region_id": true, - "tax_postcode": true, - "code": true, - "rate": true, - "zip_is_range": true, - "zip_from": true, - "zip_to": true + "tax_calculation_rate": { + "column": { + "tax_calculation_rate_id": true, + "tax_country_id": true, + "tax_region_id": true, + "tax_postcode": true, + "code": true, + "rate": true, + "zip_is_range": true, + "zip_from": true, + "zip_to": true + }, + "index": { + "TAX_CALCULATION_RATE_TAX_COUNTRY_ID_TAX_REGION_ID_TAX_POSTCODE": true, + "TAX_CALCULATION_RATE_CODE": true, + "IDX_CA799F1E2CB843495F601E56C84A626D": true + }, + "constraint": { + "PRIMARY": true + } }, - "index": { - "TAX_CALCULATION_RATE_TAX_COUNTRY_ID_TAX_REGION_ID_TAX_POSTCODE": true, - "TAX_CALCULATION_RATE_CODE": true, - "IDX_CA799F1E2CB843495F601E56C84A626D": true + "tax_calculation": { + "column": { + "tax_calculation_id": true, + "tax_calculation_rate_id": true, + "tax_calculation_rule_id": true, + "customer_tax_class_id": true, + "product_tax_class_id": true + }, + "index": { + "TAX_CALCULATION_TAX_CALCULATION_RULE_ID": true, + "TAX_CALCULATION_CUSTOMER_TAX_CLASS_ID": true, + "TAX_CALCULATION_PRODUCT_TAX_CLASS_ID": true, + "TAX_CALC_TAX_CALC_RATE_ID_CSTR_TAX_CLASS_ID_PRD_TAX_CLASS_ID": true + }, + "constraint": { + "PRIMARY": true, + "TAX_CALCULATION_PRODUCT_TAX_CLASS_ID_TAX_CLASS_CLASS_ID": true, + "TAX_CALCULATION_CUSTOMER_TAX_CLASS_ID_TAX_CLASS_CLASS_ID": true, + "TAX_CALC_TAX_CALC_RATE_ID_TAX_CALC_RATE_TAX_CALC_RATE_ID": true, + "TAX_CALC_TAX_CALC_RULE_ID_TAX_CALC_RULE_TAX_CALC_RULE_ID": true + } }, - "constraint": { - "PRIMARY": true - } - }, - "tax_calculation": { - "column": { - "tax_calculation_id": true, - "tax_calculation_rate_id": true, - "tax_calculation_rule_id": true, - "customer_tax_class_id": true, - "product_tax_class_id": true - }, - "index": { - "TAX_CALCULATION_TAX_CALCULATION_RULE_ID": true, - "TAX_CALCULATION_CUSTOMER_TAX_CLASS_ID": true, - "TAX_CALCULATION_PRODUCT_TAX_CLASS_ID": true, - "TAX_CALC_TAX_CALC_RATE_ID_CSTR_TAX_CLASS_ID_PRD_TAX_CLASS_ID": true - }, - "constraint": { - "PRIMARY": true, - "TAX_CALCULATION_PRODUCT_TAX_CLASS_ID_TAX_CLASS_CLASS_ID": true, - "TAX_CALCULATION_CUSTOMER_TAX_CLASS_ID_TAX_CLASS_CLASS_ID": true, - "TAX_CALC_TAX_CALC_RATE_ID_TAX_CALC_RATE_TAX_CALC_RATE_ID": true, - "TAX_CALC_TAX_CALC_RULE_ID_TAX_CALC_RULE_TAX_CALC_RULE_ID": true - } - }, - "tax_calculation_rate_title": { - "column": { - "tax_calculation_rate_title_id": true, - "tax_calculation_rate_id": true, - "store_id": true, - "value": true - }, - "index": { - "TAX_CALCULATION_RATE_TITLE_TAX_CALCULATION_RATE_ID_STORE_ID": true, - "TAX_CALCULATION_RATE_TITLE_STORE_ID": true - }, - "constraint": { - "PRIMARY": true, - "TAX_CALCULATION_RATE_TITLE_STORE_ID_STORE_STORE_ID": true, - "FK_37FB965F786AD5897BB3AE90470C42AB": true - } - }, - "tax_order_aggregated_created": { - "column": { - "id": true, - "period": true, - "store_id": true, - "code": true, - "order_status": true, - "percent": true, - "orders_count": true, - "tax_base_amount_sum": true - }, - "index": { - "TAX_ORDER_AGGREGATED_CREATED_STORE_ID": true - }, - "constraint": { - "PRIMARY": true, - "TAX_ORDER_AGGREGATED_CREATED_STORE_ID_STORE_STORE_ID": true, - "TAX_ORDER_AGGRED_CREATED_PERIOD_STORE_ID_CODE_PERCENT_ORDER_STS": true - } - }, - "tax_order_aggregated_updated": { - "column": { - "id": true, - "period": true, - "store_id": true, - "code": true, - "order_status": true, - "percent": true, - "orders_count": true, - "tax_base_amount_sum": true + "tax_calculation_rate_title": { + "column": { + "tax_calculation_rate_title_id": true, + "tax_calculation_rate_id": true, + "store_id": true, + "value": true + }, + "index": { + "TAX_CALCULATION_RATE_TITLE_TAX_CALCULATION_RATE_ID_STORE_ID": true, + "TAX_CALCULATION_RATE_TITLE_STORE_ID": true + }, + "constraint": { + "PRIMARY": true, + "TAX_CALCULATION_RATE_TITLE_STORE_ID_STORE_STORE_ID": true, + "FK_37FB965F786AD5897BB3AE90470C42AB": true + } }, - "index": { - "TAX_ORDER_AGGREGATED_UPDATED_STORE_ID": true + "tax_order_aggregated_created": { + "column": { + "id": true, + "period": true, + "store_id": true, + "code": true, + "order_status": true, + "percent": true, + "orders_count": true, + "tax_base_amount_sum": true + }, + "index": { + "TAX_ORDER_AGGREGATED_CREATED_STORE_ID": true + }, + "constraint": { + "PRIMARY": true, + "TAX_ORDER_AGGREGATED_CREATED_STORE_ID_STORE_STORE_ID": true, + "TAX_ORDER_AGGRED_CREATED_PERIOD_STORE_ID_CODE_PERCENT_ORDER_STS": true + } }, - "constraint": { - "PRIMARY": true, - "TAX_ORDER_AGGREGATED_UPDATED_STORE_ID_STORE_STORE_ID": true, - "TAX_ORDER_AGGRED_UPDATED_PERIOD_STORE_ID_CODE_PERCENT_ORDER_STS": true + "tax_order_aggregated_updated": { + "column": { + "id": true, + "period": true, + "store_id": true, + "code": true, + "order_status": true, + "percent": true, + "orders_count": true, + "tax_base_amount_sum": true + }, + "index": { + "TAX_ORDER_AGGREGATED_UPDATED_STORE_ID": true + }, + "constraint": { + "PRIMARY": true, + "TAX_ORDER_AGGREGATED_UPDATED_STORE_ID_STORE_STORE_ID": true, + "TAX_ORDER_AGGRED_UPDATED_PERIOD_STORE_ID_CODE_PERCENT_ORDER_STS": true + } } - } } \ No newline at end of file diff --git a/app/code/Magento/Theme/etc/db_schema_whitelist.json b/app/code/Magento/Theme/etc/db_schema_whitelist.json index 2d1c3f8b6554a..25b81c16bfcab 100644 --- a/app/code/Magento/Theme/etc/db_schema_whitelist.json +++ b/app/code/Magento/Theme/etc/db_schema_whitelist.json @@ -1,49 +1,49 @@ { - "theme": { - "column": { - "theme_id": true, - "parent_id": true, - "theme_path": true, - "theme_title": true, - "preview_image": true, - "is_featured": true, - "area": true, - "type": true, - "code": true + "theme": { + "column": { + "theme_id": true, + "parent_id": true, + "theme_path": true, + "theme_title": true, + "preview_image": true, + "is_featured": true, + "area": true, + "type": true, + "code": true + }, + "constraint": { + "PRIMARY": true + } }, - "constraint": { - "PRIMARY": true - } - }, - "theme_file": { - "column": { - "theme_files_id": true, - "theme_id": true, - "file_path": true, - "file_type": true, - "content": true, - "sort_order": true, - "is_temporary": true - }, - "constraint": { - "PRIMARY": true, - "THEME_FILE_THEME_ID_THEME_THEME_ID": true - } - }, - "design_change": { - "column": { - "design_change_id": true, - "store_id": true, - "design": true, - "date_from": true, - "date_to": true - }, - "index": { - "DESIGN_CHANGE_STORE_ID": true + "theme_file": { + "column": { + "theme_files_id": true, + "theme_id": true, + "file_path": true, + "file_type": true, + "content": true, + "sort_order": true, + "is_temporary": true + }, + "constraint": { + "PRIMARY": true, + "THEME_FILE_THEME_ID_THEME_THEME_ID": true + } }, - "constraint": { - "PRIMARY": true, - "DESIGN_CHANGE_STORE_ID_STORE_STORE_ID": true + "design_change": { + "column": { + "design_change_id": true, + "store_id": true, + "design": true, + "date_from": true, + "date_to": true + }, + "index": { + "DESIGN_CHANGE_STORE_ID": true + }, + "constraint": { + "PRIMARY": true, + "DESIGN_CHANGE_STORE_ID_STORE_STORE_ID": true + } } - } } \ No newline at end of file diff --git a/app/code/Magento/Translation/etc/db_schema_whitelist.json b/app/code/Magento/Translation/etc/db_schema_whitelist.json index deee0d900e3ee..975b1af9bcbbc 100644 --- a/app/code/Magento/Translation/etc/db_schema_whitelist.json +++ b/app/code/Magento/Translation/etc/db_schema_whitelist.json @@ -1,17 +1,17 @@ { - "translation": { - "column": { - "key_id": true, - "string": true, - "store_id": true, - "translate": true, - "locale": true, - "crc_string": true - }, - "constraint": { - "PRIMARY": true, - "TRANSLATION_STORE_ID_STORE_STORE_ID": true, - "TRANSLATION_STORE_ID_LOCALE_CRC_STRING_STRING": true + "translation": { + "column": { + "key_id": true, + "string": true, + "store_id": true, + "translate": true, + "locale": true, + "crc_string": true + }, + "constraint": { + "PRIMARY": true, + "TRANSLATION_STORE_ID_STORE_STORE_ID": true, + "TRANSLATION_STORE_ID_LOCALE_CRC_STRING_STRING": true + } } - } } \ No newline at end of file diff --git a/app/code/Magento/Ui/etc/db_schema_whitelist.json b/app/code/Magento/Ui/etc/db_schema_whitelist.json index 662d6234ab96d..16d441f6d3ada 100644 --- a/app/code/Magento/Ui/etc/db_schema_whitelist.json +++ b/app/code/Magento/Ui/etc/db_schema_whitelist.json @@ -1,22 +1,22 @@ { - "ui_bookmark": { - "column": { - "bookmark_id": true, - "user_id": true, - "namespace": true, - "identifier": true, - "current": true, - "title": true, - "config": true, - "created_at": true, - "updated_at": true - }, - "index": { - "UI_BOOKMARK_USER_ID_NAMESPACE_IDENTIFIER": true - }, - "constraint": { - "PRIMARY": true, - "UI_BOOKMARK_USER_ID_ADMIN_USER_USER_ID": true + "ui_bookmark": { + "column": { + "bookmark_id": true, + "user_id": true, + "namespace": true, + "identifier": true, + "current": true, + "title": true, + "config": true, + "created_at": true, + "updated_at": true + }, + "index": { + "UI_BOOKMARK_USER_ID_NAMESPACE_IDENTIFIER": true + }, + "constraint": { + "PRIMARY": true, + "UI_BOOKMARK_USER_ID_ADMIN_USER_USER_ID": true + } } - } } \ No newline at end of file diff --git a/app/code/Magento/UrlRewrite/etc/db_schema_whitelist.json b/app/code/Magento/UrlRewrite/etc/db_schema_whitelist.json index 24db0162e0394..bdaed647587a6 100644 --- a/app/code/Magento/UrlRewrite/etc/db_schema_whitelist.json +++ b/app/code/Magento/UrlRewrite/etc/db_schema_whitelist.json @@ -1,24 +1,24 @@ { - "url_rewrite": { - "column": { - "url_rewrite_id": true, - "entity_type": true, - "entity_id": true, - "request_path": true, - "target_path": true, - "redirect_type": true, - "store_id": true, - "description": true, - "is_autogenerated": true, - "metadata": true - }, - "index": { - "URL_REWRITE_TARGET_PATH": true, - "URL_REWRITE_STORE_ID_ENTITY_ID": true - }, - "constraint": { - "PRIMARY": true, - "URL_REWRITE_REQUEST_PATH_STORE_ID": true + "url_rewrite": { + "column": { + "url_rewrite_id": true, + "entity_type": true, + "entity_id": true, + "request_path": true, + "target_path": true, + "redirect_type": true, + "store_id": true, + "description": true, + "is_autogenerated": true, + "metadata": true + }, + "index": { + "URL_REWRITE_TARGET_PATH": true, + "URL_REWRITE_STORE_ID_ENTITY_ID": true + }, + "constraint": { + "PRIMARY": true, + "URL_REWRITE_REQUEST_PATH_STORE_ID": true + } } - } } \ No newline at end of file diff --git a/app/code/Magento/User/etc/db_schema_whitelist.json b/app/code/Magento/User/etc/db_schema_whitelist.json index 1ae7f78de0218..2af77c0d8455b 100644 --- a/app/code/Magento/User/etc/db_schema_whitelist.json +++ b/app/code/Magento/User/etc/db_schema_whitelist.json @@ -1,45 +1,45 @@ { - "admin_user": { - "column": { - "user_id": true, - "firstname": true, - "lastname": true, - "email": true, - "username": true, - "password": true, - "created": true, - "modified": true, - "logdate": true, - "lognum": true, - "reload_acl_flag": true, - "is_active": true, - "extra": true, - "rp_token": true, - "rp_token_created_at": true, - "interface_locale": true, - "failures_num": true, - "first_failure": true, - "lock_expires": true + "admin_user": { + "column": { + "user_id": true, + "firstname": true, + "lastname": true, + "email": true, + "username": true, + "password": true, + "created": true, + "modified": true, + "logdate": true, + "lognum": true, + "reload_acl_flag": true, + "is_active": true, + "extra": true, + "rp_token": true, + "rp_token_created_at": true, + "interface_locale": true, + "failures_num": true, + "first_failure": true, + "lock_expires": true + }, + "constraint": { + "PRIMARY": true, + "ADMIN_USER_USERNAME": true + } }, - "constraint": { - "PRIMARY": true, - "ADMIN_USER_USERNAME": true + "admin_passwords": { + "column": { + "password_id": true, + "user_id": true, + "password_hash": true, + "expires": true, + "last_updated": true + }, + "index": { + "ADMIN_PASSWORDS_USER_ID": true + }, + "constraint": { + "PRIMARY": true, + "ADMIN_PASSWORDS_USER_ID_ADMIN_USER_USER_ID": true + } } - }, - "admin_passwords": { - "column": { - "password_id": true, - "user_id": true, - "password_hash": true, - "expires": true, - "last_updated": true - }, - "index": { - "ADMIN_PASSWORDS_USER_ID": true - }, - "constraint": { - "PRIMARY": true, - "ADMIN_PASSWORDS_USER_ID_ADMIN_USER_USER_ID": true - } - } } \ No newline at end of file diff --git a/app/code/Magento/Variable/etc/db_schema_whitelist.json b/app/code/Magento/Variable/etc/db_schema_whitelist.json index f039ad3a87a37..b122e33eceb19 100644 --- a/app/code/Magento/Variable/etc/db_schema_whitelist.json +++ b/app/code/Magento/Variable/etc/db_schema_whitelist.json @@ -1,31 +1,31 @@ { - "variable": { - "column": { - "variable_id": true, - "code": true, - "name": true + "variable": { + "column": { + "variable_id": true, + "code": true, + "name": true + }, + "constraint": { + "PRIMARY": true, + "VARIABLE_CODE": true + } }, - "constraint": { - "PRIMARY": true, - "VARIABLE_CODE": true + "variable_value": { + "column": { + "value_id": true, + "variable_id": true, + "store_id": true, + "plain_value": true, + "html_value": true + }, + "index": { + "VARIABLE_VALUE_STORE_ID": true + }, + "constraint": { + "PRIMARY": true, + "VARIABLE_VALUE_VARIABLE_ID_STORE_ID": true, + "VARIABLE_VALUE_STORE_ID_STORE_STORE_ID": true, + "VARIABLE_VALUE_VARIABLE_ID_VARIABLE_VARIABLE_ID": true + } } - }, - "variable_value": { - "column": { - "value_id": true, - "variable_id": true, - "store_id": true, - "plain_value": true, - "html_value": true - }, - "index": { - "VARIABLE_VALUE_STORE_ID": true - }, - "constraint": { - "PRIMARY": true, - "VARIABLE_VALUE_VARIABLE_ID_STORE_ID": true, - "VARIABLE_VALUE_STORE_ID_STORE_STORE_ID": true, - "VARIABLE_VALUE_VARIABLE_ID_VARIABLE_VARIABLE_ID": true - } - } } \ No newline at end of file diff --git a/app/code/Magento/Vault/etc/db_schema_whitelist.json b/app/code/Magento/Vault/etc/db_schema_whitelist.json index 9b5e740fd16e8..e2275dc3532d7 100644 --- a/app/code/Magento/Vault/etc/db_schema_whitelist.json +++ b/app/code/Magento/Vault/etc/db_schema_whitelist.json @@ -1,36 +1,36 @@ { - "vault_payment_token": { - "column": { - "entity_id": true, - "customer_id": true, - "public_hash": true, - "payment_method_code": true, - "type": true, - "created_at": true, - "expires_at": true, - "gateway_token": true, - "details": true, - "is_active": true, - "is_visible": true + "vault_payment_token": { + "column": { + "entity_id": true, + "customer_id": true, + "public_hash": true, + "payment_method_code": true, + "type": true, + "created_at": true, + "expires_at": true, + "gateway_token": true, + "details": true, + "is_active": true, + "is_visible": true + }, + "constraint": { + "PRIMARY": true, + "VAULT_PAYMENT_TOKEN_CUSTOMER_ID_CUSTOMER_ENTITY_ENTITY_ID": true, + "VAULT_PAYMENT_TOKEN_PAYMENT_METHOD_CODE_CSTR_ID_GATEWAY_TOKEN": true, + "UNQ_54DCE14AEAEA03B587F9EF723EB10A10": true, + "VAULT_PAYMENT_TOKEN_PUBLIC_HASH": true, + "VAULT_PAYMENT_TOKEN_HASH_UNIQUE_INDEX_PUBLIC_HASH": true + } }, - "constraint": { - "PRIMARY": true, - "VAULT_PAYMENT_TOKEN_CUSTOMER_ID_CUSTOMER_ENTITY_ENTITY_ID": true, - "VAULT_PAYMENT_TOKEN_PAYMENT_METHOD_CODE_CSTR_ID_GATEWAY_TOKEN": true, - "UNQ_54DCE14AEAEA03B587F9EF723EB10A10": true, - "VAULT_PAYMENT_TOKEN_PUBLIC_HASH": true, - "VAULT_PAYMENT_TOKEN_HASH_UNIQUE_INDEX_PUBLIC_HASH": true + "vault_payment_token_order_payment_link": { + "column": { + "order_payment_id": true, + "payment_token_id": true + }, + "constraint": { + "PRIMARY": true, + "FK_CF37B9D854256534BE23C818F6291CA2": true, + "FK_4ED894655446D385894580BECA993862": true + } } - }, - "vault_payment_token_order_payment_link": { - "column": { - "order_payment_id": true, - "payment_token_id": true - }, - "constraint": { - "PRIMARY": true, - "FK_CF37B9D854256534BE23C818F6291CA2": true, - "FK_4ED894655446D385894580BECA993862": true - } - } -} +} \ No newline at end of file diff --git a/app/code/Magento/Weee/etc/db_schema_whitelist.json b/app/code/Magento/Weee/etc/db_schema_whitelist.json index cf7c72a87a7fa..eb18574877cfe 100644 --- a/app/code/Magento/Weee/etc/db_schema_whitelist.json +++ b/app/code/Magento/Weee/etc/db_schema_whitelist.json @@ -1,79 +1,79 @@ { - "weee_tax": { - "column": { - "value_id": true, - "website_id": true, - "entity_id": true, - "country": true, - "value": true, - "state": true, - "attribute_id": true + "weee_tax": { + "column": { + "value_id": true, + "website_id": true, + "entity_id": true, + "country": true, + "value": true, + "state": true, + "attribute_id": true + }, + "index": { + "WEEE_TAX_WEBSITE_ID": true, + "WEEE_TAX_ENTITY_ID": true, + "WEEE_TAX_COUNTRY": true, + "WEEE_TAX_ATTRIBUTE_ID": true + }, + "constraint": { + "PRIMARY": true, + "WEEE_TAX_COUNTRY_DIRECTORY_COUNTRY_COUNTRY_ID": true, + "WEEE_TAX_ENTITY_ID_CATALOG_PRODUCT_ENTITY_ENTITY_ID": true, + "WEEE_TAX_WEBSITE_ID_STORE_WEBSITE_WEBSITE_ID": true, + "WEEE_TAX_ATTRIBUTE_ID_EAV_ATTRIBUTE_ATTRIBUTE_ID": true, + "WEEE_TAX_ENTITY_ID_SEQUENCE_PRODUCT_SEQUENCE_VALUE": true + } }, - "index": { - "WEEE_TAX_WEBSITE_ID": true, - "WEEE_TAX_ENTITY_ID": true, - "WEEE_TAX_COUNTRY": true, - "WEEE_TAX_ATTRIBUTE_ID": true + "quote_item": { + "column": { + "weee_tax_applied": true, + "weee_tax_applied_amount": true, + "weee_tax_applied_row_amount": true, + "weee_tax_disposition": true, + "weee_tax_row_disposition": true, + "base_weee_tax_applied_amount": true, + "base_weee_tax_applied_row_amnt": true, + "base_weee_tax_disposition": true, + "base_weee_tax_row_disposition": true + } }, - "constraint": { - "PRIMARY": true, - "WEEE_TAX_COUNTRY_DIRECTORY_COUNTRY_COUNTRY_ID": true, - "WEEE_TAX_ENTITY_ID_CATALOG_PRODUCT_ENTITY_ENTITY_ID": true, - "WEEE_TAX_WEBSITE_ID_STORE_WEBSITE_WEBSITE_ID": true, - "WEEE_TAX_ATTRIBUTE_ID_EAV_ATTRIBUTE_ATTRIBUTE_ID": true, - "WEEE_TAX_ENTITY_ID_SEQUENCE_PRODUCT_SEQUENCE_VALUE": true - } - }, - "quote_item": { - "column": { - "weee_tax_applied": true, - "weee_tax_applied_amount": true, - "weee_tax_applied_row_amount": true, - "weee_tax_disposition": true, - "weee_tax_row_disposition": true, - "base_weee_tax_applied_amount": true, - "base_weee_tax_applied_row_amnt": true, - "base_weee_tax_disposition": true, - "base_weee_tax_row_disposition": true - } - }, - "sales_order_item": { - "column": { - "weee_tax_applied": true, - "weee_tax_applied_amount": true, - "weee_tax_applied_row_amount": true, - "weee_tax_disposition": true, - "weee_tax_row_disposition": true, - "base_weee_tax_applied_amount": true, - "base_weee_tax_applied_row_amnt": true, - "base_weee_tax_disposition": true, - "base_weee_tax_row_disposition": true - } - }, - "sales_invoice_item": { - "column": { - "weee_tax_applied": true, - "weee_tax_applied_amount": true, - "weee_tax_applied_row_amount": true, - "weee_tax_disposition": true, - "weee_tax_row_disposition": true, - "base_weee_tax_applied_amount": true, - "base_weee_tax_applied_row_amnt": true, - "base_weee_tax_disposition": true, - "base_weee_tax_row_disposition": true - } - }, - "sales_creditmemo_item": { - "column": { - "weee_tax_applied": true, - "weee_tax_applied_amount": true, - "weee_tax_applied_row_amount": true, - "weee_tax_disposition": true, - "weee_tax_row_disposition": true, - "base_weee_tax_applied_amount": true, - "base_weee_tax_applied_row_amnt": true, - "base_weee_tax_disposition": true, - "base_weee_tax_row_disposition": true + "sales_order_item": { + "column": { + "weee_tax_applied": true, + "weee_tax_applied_amount": true, + "weee_tax_applied_row_amount": true, + "weee_tax_disposition": true, + "weee_tax_row_disposition": true, + "base_weee_tax_applied_amount": true, + "base_weee_tax_applied_row_amnt": true, + "base_weee_tax_disposition": true, + "base_weee_tax_row_disposition": true + } + }, + "sales_invoice_item": { + "column": { + "weee_tax_applied": true, + "weee_tax_applied_amount": true, + "weee_tax_applied_row_amount": true, + "weee_tax_disposition": true, + "weee_tax_row_disposition": true, + "base_weee_tax_applied_amount": true, + "base_weee_tax_applied_row_amnt": true, + "base_weee_tax_disposition": true, + "base_weee_tax_row_disposition": true + } + }, + "sales_creditmemo_item": { + "column": { + "weee_tax_applied": true, + "weee_tax_applied_amount": true, + "weee_tax_applied_row_amount": true, + "weee_tax_disposition": true, + "weee_tax_row_disposition": true, + "base_weee_tax_applied_amount": true, + "base_weee_tax_applied_row_amnt": true, + "base_weee_tax_disposition": true, + "base_weee_tax_row_disposition": true + } } - } } \ No newline at end of file diff --git a/app/code/Magento/Widget/etc/db_schema_whitelist.json b/app/code/Magento/Widget/etc/db_schema_whitelist.json index 431ade7f52f04..a42646a355045 100644 --- a/app/code/Magento/Widget/etc/db_schema_whitelist.json +++ b/app/code/Magento/Widget/etc/db_schema_whitelist.json @@ -1,98 +1,98 @@ { - "widget": { - "column": { - "widget_id": true, - "widget_code": true, - "widget_type": true, - "parameters": true + "widget": { + "column": { + "widget_id": true, + "widget_code": true, + "widget_type": true, + "parameters": true + }, + "index": { + "WIDGET_WIDGET_CODE": true + }, + "constraint": { + "PRIMARY": true + } }, - "index": { - "WIDGET_WIDGET_CODE": true + "widget_instance": { + "column": { + "instance_id": true, + "instance_type": true, + "theme_id": true, + "title": true, + "store_ids": true, + "widget_parameters": true, + "sort_order": true + }, + "constraint": { + "PRIMARY": true, + "WIDGET_INSTANCE_THEME_ID_THEME_THEME_ID": true + } }, - "constraint": { - "PRIMARY": true - } - }, - "widget_instance": { - "column": { - "instance_id": true, - "instance_type": true, - "theme_id": true, - "title": true, - "store_ids": true, - "widget_parameters": true, - "sort_order": true - }, - "constraint": { - "PRIMARY": true, - "WIDGET_INSTANCE_THEME_ID_THEME_THEME_ID": true - } - }, - "widget_instance_page": { - "column": { - "page_id": true, - "instance_id": true, - "page_group": true, - "layout_handle": true, - "block_reference": true, - "page_for": true, - "entities": true, - "page_template": true - }, - "index": { - "WIDGET_INSTANCE_PAGE_INSTANCE_ID": true - }, - "constraint": { - "PRIMARY": true, - "WIDGET_INSTANCE_PAGE_INSTANCE_ID_WIDGET_INSTANCE_INSTANCE_ID": true - } - }, - "widget_instance_page_layout": { - "column": { - "page_id": true, - "layout_update_id": true + "widget_instance_page": { + "column": { + "page_id": true, + "instance_id": true, + "page_group": true, + "layout_handle": true, + "block_reference": true, + "page_for": true, + "entities": true, + "page_template": true + }, + "index": { + "WIDGET_INSTANCE_PAGE_INSTANCE_ID": true + }, + "constraint": { + "PRIMARY": true, + "WIDGET_INSTANCE_PAGE_INSTANCE_ID_WIDGET_INSTANCE_INSTANCE_ID": true + } }, - "index": { - "WIDGET_INSTANCE_PAGE_LAYOUT_PAGE_ID": true - }, - "constraint": { - "WIDGET_INSTANCE_PAGE_LAYOUT_PAGE_ID_WIDGET_INSTANCE_PAGE_PAGE_ID": true, - "WIDGET_INSTANCE_PAGE_LYT_LYT_UPDATE_ID_LYT_UPDATE_LYT_UPDATE_ID": true, - "WIDGET_INSTANCE_PAGE_LAYOUT_LAYOUT_UPDATE_ID_PAGE_ID": true - } - }, - "layout_update": { - "column": { - "layout_update_id": true, - "handle": true, - "xml": true, - "sort_order": true, - "updated_at": true - }, - "index": { - "LAYOUT_UPDATE_HANDLE": true - }, - "constraint": { - "PRIMARY": true - } - }, - "layout_link": { - "column": { - "layout_link_id": true, - "store_id": true, - "theme_id": true, - "layout_update_id": true, - "is_temporary": true + "widget_instance_page_layout": { + "column": { + "page_id": true, + "layout_update_id": true + }, + "index": { + "WIDGET_INSTANCE_PAGE_LAYOUT_PAGE_ID": true + }, + "constraint": { + "WIDGET_INSTANCE_PAGE_LAYOUT_PAGE_ID_WIDGET_INSTANCE_PAGE_PAGE_ID": true, + "WIDGET_INSTANCE_PAGE_LYT_LYT_UPDATE_ID_LYT_UPDATE_LYT_UPDATE_ID": true, + "WIDGET_INSTANCE_PAGE_LAYOUT_LAYOUT_UPDATE_ID_PAGE_ID": true + } }, - "index": { - "LAYOUT_LINK_LAYOUT_UPDATE_ID": true, - "LAYOUT_LINK_STORE_ID_THEME_ID_LAYOUT_UPDATE_ID_IS_TEMPORARY": true + "layout_update": { + "column": { + "layout_update_id": true, + "handle": true, + "xml": true, + "sort_order": true, + "updated_at": true + }, + "index": { + "LAYOUT_UPDATE_HANDLE": true + }, + "constraint": { + "PRIMARY": true + } }, - "constraint": { - "PRIMARY": true, - "LAYOUT_LINK_LAYOUT_UPDATE_ID_LAYOUT_UPDATE_LAYOUT_UPDATE_ID": true, - "LAYOUT_LINK_STORE_ID_STORE_STORE_ID": true, - "LAYOUT_LINK_THEME_ID_THEME_THEME_ID": true + "layout_link": { + "column": { + "layout_link_id": true, + "store_id": true, + "theme_id": true, + "layout_update_id": true, + "is_temporary": true + }, + "index": { + "LAYOUT_LINK_LAYOUT_UPDATE_ID": true, + "LAYOUT_LINK_STORE_ID_THEME_ID_LAYOUT_UPDATE_ID_IS_TEMPORARY": true + }, + "constraint": { + "PRIMARY": true, + "LAYOUT_LINK_LAYOUT_UPDATE_ID_LAYOUT_UPDATE_LAYOUT_UPDATE_ID": true, + "LAYOUT_LINK_STORE_ID_STORE_STORE_ID": true, + "LAYOUT_LINK_THEME_ID_THEME_THEME_ID": true + } } - } } \ No newline at end of file diff --git a/app/code/Magento/Wishlist/etc/db_schema_whitelist.json b/app/code/Magento/Wishlist/etc/db_schema_whitelist.json index 82791ad70958f..beaab64280a76 100644 --- a/app/code/Magento/Wishlist/etc/db_schema_whitelist.json +++ b/app/code/Magento/Wishlist/etc/db_schema_whitelist.json @@ -1,55 +1,55 @@ { - "wishlist": { - "column": { - "wishlist_id": true, - "customer_id": true, - "shared": true, - "sharing_code": true, - "updated_at": true + "wishlist": { + "column": { + "wishlist_id": true, + "customer_id": true, + "shared": true, + "sharing_code": true, + "updated_at": true + }, + "index": { + "WISHLIST_SHARED": true + }, + "constraint": { + "PRIMARY": true, + "WISHLIST_CUSTOMER_ID_CUSTOMER_ENTITY_ENTITY_ID": true, + "WISHLIST_CUSTOMER_ID": true + } }, - "index": { - "WISHLIST_SHARED": true + "wishlist_item": { + "column": { + "wishlist_item_id": true, + "wishlist_id": true, + "product_id": true, + "store_id": true, + "added_at": true, + "description": true, + "qty": true + }, + "index": { + "WISHLIST_ITEM_WISHLIST_ID": true, + "WISHLIST_ITEM_PRODUCT_ID": true, + "WISHLIST_ITEM_STORE_ID": true + }, + "constraint": { + "PRIMARY": true, + "WISHLIST_ITEM_WISHLIST_ID_WISHLIST_WISHLIST_ID": true, + "WISHLIST_ITEM_PRODUCT_ID_CATALOG_PRODUCT_ENTITY_ENTITY_ID": true, + "WISHLIST_ITEM_STORE_ID_STORE_STORE_ID": true, + "WISHLIST_ITEM_PRODUCT_ID_SEQUENCE_PRODUCT_SEQUENCE_VALUE": true + } }, - "constraint": { - "PRIMARY": true, - "WISHLIST_CUSTOMER_ID_CUSTOMER_ENTITY_ENTITY_ID": true, - "WISHLIST_CUSTOMER_ID": true + "wishlist_item_option": { + "column": { + "option_id": true, + "wishlist_item_id": true, + "product_id": true, + "code": true, + "value": true + }, + "constraint": { + "PRIMARY": true, + "FK_A014B30B04B72DD0EAB3EECD779728D6": true + } } - }, - "wishlist_item": { - "column": { - "wishlist_item_id": true, - "wishlist_id": true, - "product_id": true, - "store_id": true, - "added_at": true, - "description": true, - "qty": true - }, - "index": { - "WISHLIST_ITEM_WISHLIST_ID": true, - "WISHLIST_ITEM_PRODUCT_ID": true, - "WISHLIST_ITEM_STORE_ID": true - }, - "constraint": { - "PRIMARY": true, - "WISHLIST_ITEM_WISHLIST_ID_WISHLIST_WISHLIST_ID": true, - "WISHLIST_ITEM_PRODUCT_ID_CATALOG_PRODUCT_ENTITY_ENTITY_ID": true, - "WISHLIST_ITEM_STORE_ID_STORE_STORE_ID": true, - "WISHLIST_ITEM_PRODUCT_ID_SEQUENCE_PRODUCT_SEQUENCE_VALUE": true - } - }, - "wishlist_item_option": { - "column": { - "option_id": true, - "wishlist_item_id": true, - "product_id": true, - "code": true, - "value": true - }, - "constraint": { - "PRIMARY": true, - "FK_A014B30B04B72DD0EAB3EECD779728D6": true - } - } } \ No newline at end of file From bf757d46d1aea9df93f0cd22304603ef5b61402c Mon Sep 17 00:00:00 2001 From: Cristian Partica Date: Fri, 17 Aug 2018 08:59:53 -0500 Subject: [PATCH 23/27] MAGETWO-90531: WYSIWYG shows special character button in toolbar on product page - when test module is enabled - moving location to make path shorter --- .../Magento/TestModuleWysiwygConfig/etc/adminhtml/di.xml | 4 ++-- .../_files/Magento/TestModuleWysiwygConfig/etc/di.xml | 2 +- .../web/wysiwyg/{tiny_mce => }/tinymce4TestAdapter.js | 0 .../testsuite/Magento/Cms/Model/Wysiwyg/ConfigTest.php | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) rename dev/tests/integration/_files/Magento/TestModuleWysiwygConfig/view/adminhtml/web/wysiwyg/{tiny_mce => }/tinymce4TestAdapter.js (100%) diff --git a/dev/tests/integration/_files/Magento/TestModuleWysiwygConfig/etc/adminhtml/di.xml b/dev/tests/integration/_files/Magento/TestModuleWysiwygConfig/etc/adminhtml/di.xml index cd5b0e4df7fe9..9303631a8aa61 100644 --- a/dev/tests/integration/_files/Magento/TestModuleWysiwygConfig/etc/adminhtml/di.xml +++ b/dev/tests/integration/_files/Magento/TestModuleWysiwygConfig/etc/adminhtml/di.xml @@ -12,7 +12,7 @@ Magento\TestModuleWysiwygConfig\Model\Config - Magento\TestModuleWysiwygConfig\Model\Config + Magento\TestModuleWysiwygConfig\Model\Config Magento\Variable\Model\Variable\ConfigProvider @@ -29,7 +29,7 @@ - Magento_TestModuleWysiwygConfig/wysiwyg/tiny_mce/tinymce4TestAdapter + Magento_TestModuleWysiwygConfig/wysiwyg/tinymce4TestAdapter Test Adapter diff --git a/dev/tests/integration/_files/Magento/TestModuleWysiwygConfig/etc/di.xml b/dev/tests/integration/_files/Magento/TestModuleWysiwygConfig/etc/di.xml index db21145491d83..3be3d9dc3ec58 100644 --- a/dev/tests/integration/_files/Magento/TestModuleWysiwygConfig/etc/di.xml +++ b/dev/tests/integration/_files/Magento/TestModuleWysiwygConfig/etc/di.xml @@ -9,7 +9,7 @@ - + diff --git a/dev/tests/integration/_files/Magento/TestModuleWysiwygConfig/view/adminhtml/web/wysiwyg/tiny_mce/tinymce4TestAdapter.js b/dev/tests/integration/_files/Magento/TestModuleWysiwygConfig/view/adminhtml/web/wysiwyg/tinymce4TestAdapter.js similarity index 100% rename from dev/tests/integration/_files/Magento/TestModuleWysiwygConfig/view/adminhtml/web/wysiwyg/tiny_mce/tinymce4TestAdapter.js rename to dev/tests/integration/_files/Magento/TestModuleWysiwygConfig/view/adminhtml/web/wysiwyg/tinymce4TestAdapter.js diff --git a/dev/tests/integration/testsuite/Magento/Cms/Model/Wysiwyg/ConfigTest.php b/dev/tests/integration/testsuite/Magento/Cms/Model/Wysiwyg/ConfigTest.php index 431c9383a8c74..983d5657a4cee 100644 --- a/dev/tests/integration/testsuite/Magento/Cms/Model/Wysiwyg/ConfigTest.php +++ b/dev/tests/integration/testsuite/Magento/Cms/Model/Wysiwyg/ConfigTest.php @@ -63,7 +63,7 @@ public function testGetConfigCssUrls() * * @return void * - * @magentoConfigFixture default/cms/wysiwyg/editor Magento_TestModuleWysiwygConfig/wysiwyg/tiny_mce/tinymce4TestAdapter + * @magentoConfigFixture default/cms/wysiwyg/editor Magento_TestModuleWysiwygConfig/wysiwyg/tinymce4TestAdapter */ public function testTestModuleEnabledModuleIsAbleToModifyConfig() { From 1e56fe758f8b2d28e3dd1bbca654a431869794e1 Mon Sep 17 00:00:00 2001 From: Cristian Partica Date: Fri, 17 Aug 2018 09:10:59 -0500 Subject: [PATCH 24/27] MAGETWO-92279: An incorrect result of declaration:generate:whitelist execution - simplifying code --- .../Console/Command/TablesWhitelistGenerateCommand.php | 4 +--- .../Console/Command/TablesWhitelistGenerateCommandTest.php | 3 +-- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/app/code/Magento/Developer/Console/Command/TablesWhitelistGenerateCommand.php b/app/code/Magento/Developer/Console/Command/TablesWhitelistGenerateCommand.php index b8ef557735db0..d283e693b8de6 100644 --- a/app/code/Magento/Developer/Console/Command/TablesWhitelistGenerateCommand.php +++ b/app/code/Magento/Developer/Console/Command/TablesWhitelistGenerateCommand.php @@ -197,9 +197,7 @@ private function filterPrimaryTables(array $moduleDbSchema) $primaryDbSchema = $this->getPrimaryDbSchema(); if (isset($moduleDbSchema['table']) && isset($primaryDbSchema['table'])) { foreach ($primaryDbSchema['table'] as $tableNameKey => $tableContents) { - if (isset($moduleDbSchema['table'][$tableNameKey])) { - unset($moduleDbSchema['table'][$tableNameKey]); - } + unset($moduleDbSchema['table'][$tableNameKey]); } } return $moduleDbSchema; diff --git a/dev/tests/setup-integration/testsuite/Magento/Developer/Console/Command/TablesWhitelistGenerateCommandTest.php b/dev/tests/setup-integration/testsuite/Magento/Developer/Console/Command/TablesWhitelistGenerateCommandTest.php index 81ad56b793224..f06f3a8a93a37 100644 --- a/dev/tests/setup-integration/testsuite/Magento/Developer/Console/Command/TablesWhitelistGenerateCommandTest.php +++ b/dev/tests/setup-integration/testsuite/Magento/Developer/Console/Command/TablesWhitelistGenerateCommandTest.php @@ -67,9 +67,8 @@ public function setUp() */ public function testExecute(array $expectedWhitelistContent) { - $this->cliCommand->install(['Magento_TestSetupDeclarationModule1']); - $moduleName = 'Magento_TestSetupDeclarationModule1'; + $this->cliCommand->install([$moduleName]); $modulePath = $this->componentRegistrar->getPath('module', $moduleName); $whiteListFileName = $modulePath . DIRECTORY_SEPARATOR From c219dadf5e334e747172f4d50c8bc9c707150fd4 Mon Sep 17 00:00:00 2001 From: Cristian Partica Date: Fri, 17 Aug 2018 10:36:55 -0500 Subject: [PATCH 25/27] MAGETWO-90531: WYSIWYG shows special character button in toolbar on product page - when test module is enabled - removing invalid xml --- .../_files/Magento/TestModuleWysiwygConfig/etc/adminhtml/di.xml | 2 -- 1 file changed, 2 deletions(-) diff --git a/dev/tests/integration/_files/Magento/TestModuleWysiwygConfig/etc/adminhtml/di.xml b/dev/tests/integration/_files/Magento/TestModuleWysiwygConfig/etc/adminhtml/di.xml index 9303631a8aa61..dd2e003f1a544 100644 --- a/dev/tests/integration/_files/Magento/TestModuleWysiwygConfig/etc/adminhtml/di.xml +++ b/dev/tests/integration/_files/Magento/TestModuleWysiwygConfig/etc/adminhtml/di.xml @@ -10,8 +10,6 @@ Magento\TestModuleWysiwygConfig\Model\Config - - Magento\TestModuleWysiwygConfig\Model\Config From 6565136ff9d2886dfd85462e3ac17dadf10c4b57 Mon Sep 17 00:00:00 2001 From: Cristian Partica Date: Fri, 17 Aug 2018 10:44:00 -0500 Subject: [PATCH 26/27] MAGETWO-92279: An incorrect result of declaration:generate:whitelist execution - add strict --- .../Console/Command/TablesWhitelistGenerateCommandTest.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/dev/tests/setup-integration/testsuite/Magento/Developer/Console/Command/TablesWhitelistGenerateCommandTest.php b/dev/tests/setup-integration/testsuite/Magento/Developer/Console/Command/TablesWhitelistGenerateCommandTest.php index f06f3a8a93a37..10eed4d5ea99e 100644 --- a/dev/tests/setup-integration/testsuite/Magento/Developer/Console/Command/TablesWhitelistGenerateCommandTest.php +++ b/dev/tests/setup-integration/testsuite/Magento/Developer/Console/Command/TablesWhitelistGenerateCommandTest.php @@ -3,6 +3,7 @@ * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ +declare(strict_types=1); namespace Magento\Developer\Console\Command; @@ -44,7 +45,7 @@ class TablesWhitelistGenerateCommandTest extends SetupTestCase /** * {@inheritdoc} */ - public function setUp() + public function setUp() : void { $this->objectManager = \Magento\TestFramework\Helper\Bootstrap::getObjectManager(); $this->command = $this->objectManager->create( @@ -65,7 +66,7 @@ public function setUp() * @moduleName Magento_TestSetupDeclarationModule1 * @dataProvider contentsDataProvider */ - public function testExecute(array $expectedWhitelistContent) + public function testExecute(array $expectedWhitelistContent) : void { $moduleName = 'Magento_TestSetupDeclarationModule1'; $this->cliCommand->install([$moduleName]); @@ -94,7 +95,7 @@ public function testExecute(array $expectedWhitelistContent) * @return array * @SuppressWarnings(PHPMD.ExcessiveMethodLength) */ - public function contentsDataProvider() + public function contentsDataProvider() : array { return [ [ From cff3d1571ed42811ae921b4c14123658f63244b3 Mon Sep 17 00:00:00 2001 From: Cristian Partica Date: Fri, 17 Aug 2018 12:35:58 -0500 Subject: [PATCH 27/27] MAGETWO-92279: An incorrect result of declaration:generate:whitelist execution - remove redundant strict types --- .../Console/Command/TablesWhitelistGenerateCommandTest.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dev/tests/setup-integration/testsuite/Magento/Developer/Console/Command/TablesWhitelistGenerateCommandTest.php b/dev/tests/setup-integration/testsuite/Magento/Developer/Console/Command/TablesWhitelistGenerateCommandTest.php index 10eed4d5ea99e..77f2d741fc6b5 100644 --- a/dev/tests/setup-integration/testsuite/Magento/Developer/Console/Command/TablesWhitelistGenerateCommandTest.php +++ b/dev/tests/setup-integration/testsuite/Magento/Developer/Console/Command/TablesWhitelistGenerateCommandTest.php @@ -45,7 +45,7 @@ class TablesWhitelistGenerateCommandTest extends SetupTestCase /** * {@inheritdoc} */ - public function setUp() : void + public function setUp() { $this->objectManager = \Magento\TestFramework\Helper\Bootstrap::getObjectManager(); $this->command = $this->objectManager->create( @@ -66,7 +66,7 @@ public function setUp() : void * @moduleName Magento_TestSetupDeclarationModule1 * @dataProvider contentsDataProvider */ - public function testExecute(array $expectedWhitelistContent) : void + public function testExecute(array $expectedWhitelistContent) { $moduleName = 'Magento_TestSetupDeclarationModule1'; $this->cliCommand->install([$moduleName]); @@ -95,7 +95,7 @@ public function testExecute(array $expectedWhitelistContent) : void * @return array * @SuppressWarnings(PHPMD.ExcessiveMethodLength) */ - public function contentsDataProvider() : array + public function contentsDataProvider(): array { return [ [