...
Code Block | ||
---|---|---|
| ||
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.
...