diff --git a/CHANGELOG-v7.md b/CHANGELOG-v7.md index 8f3e0c41..ad47c18d 100644 --- a/CHANGELOG-v7.md +++ b/CHANGELOG-v7.md @@ -16,6 +16,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Update module dependency warning in documentation - Updated the phpstan in development dependencies and fixed several related coding style issues +### Removed +- Migration trigger on module activation + ## [7.0.2] - 2022-08-10 ### Fixed diff --git a/src/Infrastructure/ModuleSetup.php b/src/Infrastructure/ModuleSetup.php index 905084f1..881c154e 100644 --- a/src/Infrastructure/ModuleSetup.php +++ b/src/Infrastructure/ModuleSetup.php @@ -40,9 +40,6 @@ public static function onActivate(): void /** @var ModuleSetup $moduleSetup */ $moduleSetup = $container->get(self::class); $moduleSetup->runSetup(); - - // execute module migrations - self::executeModuleMigrations(); } /** @@ -51,20 +48,4 @@ public static function onActivate(): void public static function onDeactivate(): void { } - - /** - * Execute necessary module migrations on activate event - */ - private static function executeModuleMigrations(): void - { - $migrations = (new MigrationsBuilder())->build(); - - $output = new BufferedOutput(); - $migrations->setOutput($output); - $needsUpdate = $migrations->execute('migrations:up-to-date', 'oe_graphql_base'); - - if ($needsUpdate) { - $migrations->execute('migrations:migrate', 'oe_graphql_base'); - } - } }