This commit is contained in:
Rachit Bhargava
2024-01-10 11:53:33 -05:00
parent 83d223b0df
commit 054b4fffc9
16481 changed files with 0 additions and 3473867 deletions

View File

@@ -1,35 +0,0 @@
<?php
namespace Yoast\WP\SEO\Premium\Database;
use Exception;
use Yoast\WP\SEO\Initializers\Migration_Runner;
/**
* Triggers premium database migrations and handles results.
*/
class Migration_Runner_Premium extends Migration_Runner {
/**
* Runs this initializer.
*
* {@inheritDoc}
*/
public function initialize() {
$this->run_premium_migrations();
// The below action is used when queries fail, this may happen in a multisite environment when switch_to_blog is used.
\add_action( '_yoast_run_migrations', [ $this, 'run_premium_migrations' ] );
}
/**
* Runs the Premium migrations.
*
* @return void
*
* @throws Exception When a migration errored.
*/
public function run_premium_migrations() {
$this->run_migrations( 'premium', \WPSEO_PREMIUM_VERSION );
}
}