Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagephp
Application::event()->addListener(
    FrameworkEvents::ROUTING_BEFORE,
    function (\NewFrontiers\Framework\Events\FrameworkEvent $event) {
        NewFrontiers\Modules\DatabaseMigration\DatabaseMigrationController::runUpdate();
    });

Additionally, you may want to add DatabaseMigrationController::runUpdate(); to your bootstrapTests.php too, so that your test database gets migrated as well.

...