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 authored and markusguenther committed Aug 17, 2023
1 parent 7ab709b commit bd60a11
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 bd60a11

Please sign in to comment.