From 6b27c5714609840ff66063090a96af1e84a2a968 Mon Sep 17 00:00:00 2001 From: Jonathan Bausch Date: Fri, 28 Jul 2023 11:39:50 +0200 Subject: [PATCH] Add dimensions hash to node event model --- Neos.Neos/Migrations/Postgresql/Version20230727164600.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Neos.Neos/Migrations/Postgresql/Version20230727164600.php b/Neos.Neos/Migrations/Postgresql/Version20230727164600.php index 1f970fcca00..e584f6e34a3 100644 --- a/Neos.Neos/Migrations/Postgresql/Version20230727164600.php +++ b/Neos.Neos/Migrations/Postgresql/Version20230727164600.php @@ -20,7 +20,7 @@ public function getDescription() : string */ public function up(Schema $schema) : void { - $this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'postgresql', 'Migration can only be executed safely on \'postgresql\'.'); + $this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'postgresql', 'Migration can only be executed safely on "postgresql".'); $this->addSql('ALTER TABLE neos_neos_eventlog_domain_model_event ADD dimensionshash VARCHAR(32) DEFAULT NULL'); $this->addSql('CREATE INDEX dimensionshash ON neos_neos_eventlog_domain_model_event (dimensionshash)'); @@ -32,9 +32,9 @@ public function up(Schema $schema) : void */ public function down(Schema $schema) : void { - $this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'postgresql', 'Migration can only be executed safely on \'postgresql\'.'); + $this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'postgresql', 'Migration can only be executed safely on "postgresql".'); - $this->addSql('DROP INDEX dimensionshash ON neos_neos_eventlog_domain_model_event'); + $this->addSql('DROP INDEX dimensionshash'); $this->addSql('ALTER TABLE neos_neos_eventlog_domain_model_event DROP dimensionshash'); }