Skip to content

Instantly share code, notes, and snippets.

View markusguenther's full-sized avatar

Markus Günther markusguenther

View GitHub Profile
@Sebobo
Sebobo / dimension_fix.sql
Created September 13, 2022 08:30
Remove duplicate nodes in a Neos setup with nodes without and with dimensions
UPDATE neos_contentrepository_domain_model_nodedata SET dimensionvalues = '{
"language": {
"0": "de"
}
}' WHERE dimensionvalues = '{}' and path <> '/' and path <> '/sites';
delete t1 FROM neos_contentrepository_domain_model_nodedata t1
INNER JOIN neos_contentrepository_domain_model_nodedata t2
WHERE
t1.lastmodificationdatetime <= t2.lastmodificationdatetime AND
@lorenzulrich
lorenzulrich / SetPropertyUsingEel.php
Created November 18, 2020 18:29
Custom SetPropertyUsingEel transformation for Neos CMS Node Migrations
<?php
namespace My\FoobarCom\Migration\Transformations;
use Neos\Flow\Annotations as Flow;
use Neos\ContentRepository\Domain\Factory\NodeFactory;
use Neos\ContentRepository\Domain\Service\ContextFactory;
use Neos\ContentRepository\Domain\Model\NodeData;
use Neos\ContentRepository\Migration\Transformations\AbstractTransformation;
use Neos\Eel\EelEvaluatorInterface;