at path:
ROOT
/
wp-content
/
plugins
/
tutor
/
migrations
/
Migration.php
run:
R
W
Run
Contracts
DIR
2026-04-14 05:34:27
R
W
Run
BatchProcessor.php
5.98 KB
2026-04-14 05:34:27
R
W
Run
Delete
Rename
Migration.php
698 By
2026-04-14 05:34:27
R
W
Run
Delete
Rename
ProcessByWcMigrator.php
2.96 KB
2026-04-14 05:34:27
R
W
Run
Delete
Rename
QuizAttemptMigrator.php
1.98 KB
2026-04-14 05:34:27
R
W
Run
Delete
Rename
error_log
up
📄
Migration.php
Save
<?php /** * Migration * * @package Tutor * @author Themeum <support@themeum.com> * @link https://themeum.com * @since 3.8.0 */ namespace Tutor\Migrations; /** * Class Migration */ class Migration { /** * Constructor */ public function __construct() { $this->schedule_migrations(); } /** * Schedule migrations. * * @since 3.8.0 * * @return void */ public function schedule_migrations() { $migrators = array( QuizAttemptMigrator::instance(), ); if ( tutor_utils()->has_wc() ) { $migrators[] = ProcessByWcMigrator::instance(); } foreach ( $migrators as $migrator ) { if ( ! $migrator->is_completed() ) { $migrator->schedule(); } } } }