Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
mhsdesign committed Jan 7, 2025
1 parent 09f4c2a commit d31a2eb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Neos.Neos/Documentation/References/NodeMigrations.rst
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ comes with a number of filters:
- ``PropertyNotEmpty``
- ``PropertyValue``

They all implement the ``Neos\ContentRepository\Migration\Filters\FilterInterface``. Custom filters can be developed against
They all implement the ``Neos\ContentRepository\Migration\Filters\FilterInterface`` (TODO - removed!!!). Custom filters can be developed against
that interface as well, just use the fully qualified class name for those when specifying which filter to use.

Here is an example of a migration that operates on all nodes with nodetype `Neos.ContentRepository.Testing:Document` and
Expand Down
1 change: 1 addition & 0 deletions Neos.Neos/Migrations/Postgresql/Version20230727164600.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ public function postUp(Schema $schema): void

while ($eventLogInfo = $eventLogResult->fetchAssociative()) {
$dimensionsArray = unserialize($eventLogInfo['dimension'], ['allowed_classes' => false]);
// todo utility was removed!!!
$dimensionsHash = Utility::sortDimensionValueArrayAndReturnDimensionsHash($dimensionsArray);
$this->connection->executeStatement('UPDATE neos_neos_eventlog_domain_model_event SET dimensionshash = ? WHERE dimension = ?', [$dimensionsHash, $eventLogInfo['dimension']]);
$eventLogResult = $this->connection->executeQuery('SELECT dimension FROM neos_neos_eventlog_domain_model_event where dimensionshash IS NULL AND dimension IS NOT NULL LIMIT 1');
Expand Down

0 comments on commit d31a2eb

Please sign in to comment.