Skip to content

Commit

Permalink
Add dimensions hash to node event model
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan2022Bausch committed Jul 28, 2023
1 parent 2af8796 commit 6b27c57
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Neos.Neos/Migrations/Postgresql/Version20230727164600.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)');
Expand All @@ -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');
}

Expand Down

0 comments on commit 6b27c57

Please sign in to comment.