diff --git a/src/Domain/Bootstrap.php b/src/Domain/Bootstrap.php index 9e475e705f2..d554d4bfa1b 100644 --- a/src/Domain/Bootstrap.php +++ b/src/Domain/Bootstrap.php @@ -100,11 +100,10 @@ protected function init() { $this->register_dependencies(); $this->register_payment_methods(); - if ( is_admin() ) { - if ( $this->package->get_version() !== $this->package->get_version_stored_on_db() ) { - $this->migration->run_migrations(); - $this->package->set_version_stored_on_db(); - } + // This is just a temporary solution to make sure the migrations are run. We have to refactor this. More details: https://github.com/woocommerce/woocommerce-blocks/issues/10196. + if ( $this->package->get_version() !== $this->package->get_version_stored_on_db() ) { + $this->migration->run_migrations(); + $this->package->set_version_stored_on_db(); } add_action(