Skip to content

Instantly share code, notes, and snippets.

diff --git a/Declaration/Schema/Comparator.php b/Declaration/Schema/Comparator.php
--- a/Setup/Declaration/Schema/Comparator.php
+++ b/Setup/Declaration/Schema/Comparator.php
@@ -24,7 +24,39 @@
*/
public function compare(ElementInterface $first, ElementInterface $second)
{
+ // Code below pulled from https://github.com/magento/magento2/issues/19597#issuecomment-463611130
+ //Ugly patch (MariaDB compatibility)
+ $firstParams = $first->getDiffSensitiveParams();
@UglyWillDuckling
UglyWillDuckling / review_duplicate.sql
Created March 27, 2020 14:40
magento 1: find duplicate reviews in db
select rd.review_id, rd.customer_id, r.entity_pk_value, r.created_at, count(*) as c from review r
inner join review_detail rd on rd.review_id = r.review_id
group by entity_pk_value, rd.customer_id, rd.detail
having c > 1
;