diff --git a/Migrations/Mysql/Version20200319145957.php b/Migrations/Mysql/Version20200319145957.php index 5870f3f..c6d4c30 100644 --- a/Migrations/Mysql/Version20200319145957.php +++ b/Migrations/Mysql/Version20200319145957.php @@ -13,7 +13,7 @@ class Version20200319145957 extends AbstractMigration /** * @return string */ - public function getDescription() + public function getDescription(): string { return ''; } @@ -22,10 +22,10 @@ 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'); } @@ -33,10 +33,10 @@ public function up(Schema $schema) * @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'); } -} \ No newline at end of file +} diff --git a/composer.json b/composer.json index 0cec23b..3d0a036 100644 --- a/composer.json +++ b/composer.json @@ -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": { @@ -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" + ] } -} \ No newline at end of file +}