Skip to content

Commit

Permalink
Merge pull request #2 from swisscomeventandmedia/task/flow73
Browse files Browse the repository at this point in the history
TASK: Flow 7.3 compatibility
  • Loading branch information
simstern authored Jan 24, 2022
2 parents f49667f + 456ff6d commit 4a30986
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 9 deletions.
12 changes: 6 additions & 6 deletions Migrations/Mysql/Version20200319145957.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class Version20200319145957 extends AbstractMigration
/**
* @return string
*/
public function getDescription()
public function getDescription(): string
{
return '';
}
Expand All @@ -22,21 +22,21 @@ public function getDescription()
* @param Schema $schema
* @return void
*/
public function up(Schema $schema)
public function up(Schema $schema): void
{
$this->abortIf($this->connection->getDatabasePlatform()->getName() != 'mysql', 'Migration can only be executed safely on "mysql".');

$this->addSql('CREATE TABLE swisscom_commandmigration_domain_model_migrationstatus (persistence_object_identifier VARCHAR(40) NOT NULL, version VARCHAR(255) NOT NULL, PRIMARY KEY(persistence_object_identifier)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
}

/**
* @param Schema $schema
* @return void
*/
public function down(Schema $schema)
public function down(Schema $schema): void
{
$this->abortIf($this->connection->getDatabasePlatform()->getName() != 'mysql', 'Migration can only be executed safely on "mysql".');

$this->addSql('DROP TABLE swisscom_commandmigration_domain_model_migrationstatus');
}
}
}
16 changes: 13 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"name": "swisscom/commandmigration",
"license": "MIT",
"require": {
"neos/flow": "^4.0 || ^5.0"
"neos/flow": "^4.0 || ^5.0 || ^6.0 || ^7.0"
},
"autoload": {
"psr-4": {
Expand All @@ -14,6 +14,16 @@
"extra": {
"neos": {
"package-key": "Swisscom.CommandMigration"
}
},
"applied-flow-migrations": [
"Neos.Flow-20180415105700",
"Neos.Flow-20190425144900",
"Neos.Flow-20190515215000",
"Neos.Flow-20200813181400",
"Neos.Flow-20201003165200",
"Neos.Flow-20201109224100",
"Neos.Flow-20201205172733",
"Neos.Flow-20201207104500"
]
}
}
}

0 comments on commit 4a30986

Please sign in to comment.