id() . ' ' . $entry['migration']->description() ); } WP_CLI::success( count( $pending ) . ' migration(s) pending.' ); return; } $result = Epicformbuilder_Migrations_Runner::run(); foreach ( $result->errors as $error ) { WP_CLI::warning( $error['plugin'] . ' ' . $error['id'] . ': ' . $error['message'] ); } if ( 0 < $result->skipped ) { WP_CLI::warning( 'Another process holds the migration lock; ' . $result->skipped . ' skipped.' ); } WP_CLI::success( $result->applied . ' applied, ' . $result->failed . ' failed.' ); } }