Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93
/home/sportsfe.../httpdocs/wp-conte.../plugins/wordpres.../src/config/migratio...
File: 20201216141134_ExpandPrimaryTermIDColumnLengths.php
<?php
[0] Fix | Delete
[1] Fix | Delete
namespace Yoast\WP\SEO\Config\Migrations;
[2] Fix | Delete
[3] Fix | Delete
use Yoast\WP\Lib\Migrations\Migration;
[4] Fix | Delete
use Yoast\WP\Lib\Model;
[5] Fix | Delete
[6] Fix | Delete
/**
[7] Fix | Delete
* ExpandPrimaryTermIDColumnLengths class.
[8] Fix | Delete
*/
[9] Fix | Delete
class ExpandPrimaryTermIDColumnLengths extends Migration {
[10] Fix | Delete
[11] Fix | Delete
/**
[12] Fix | Delete
* The plugin this migration belongs to.
[13] Fix | Delete
*
[14] Fix | Delete
* @var string
[15] Fix | Delete
*/
[16] Fix | Delete
public static $plugin = 'free';
[17] Fix | Delete
[18] Fix | Delete
/**
[19] Fix | Delete
* The columns to change the column type and length of.
[20] Fix | Delete
*
[21] Fix | Delete
* @var string[]
[22] Fix | Delete
*/
[23] Fix | Delete
protected static $columns_to_change = [
[24] Fix | Delete
'post_id',
[25] Fix | Delete
'term_id',
[26] Fix | Delete
];
[27] Fix | Delete
[28] Fix | Delete
/**
[29] Fix | Delete
* Migration up.
[30] Fix | Delete
*
[31] Fix | Delete
* @return void
[32] Fix | Delete
*/
[33] Fix | Delete
public function up() {
[34] Fix | Delete
foreach ( self::$columns_to_change as $column ) {
[35] Fix | Delete
$this->change_column(
[36] Fix | Delete
$this->get_table_name(),
[37] Fix | Delete
$column,
[38] Fix | Delete
'biginteger',
[39] Fix | Delete
[ 'limit' => 20 ]
[40] Fix | Delete
);
[41] Fix | Delete
}
[42] Fix | Delete
}
[43] Fix | Delete
[44] Fix | Delete
/**
[45] Fix | Delete
* Migration down.
[46] Fix | Delete
*
[47] Fix | Delete
* @return void
[48] Fix | Delete
*/
[49] Fix | Delete
public function down() {
[50] Fix | Delete
}
[51] Fix | Delete
[52] Fix | Delete
/**
[53] Fix | Delete
* Retrieves the table name to use for storing indexables.
[54] Fix | Delete
*
[55] Fix | Delete
* @return string The table name to use.
[56] Fix | Delete
*/
[57] Fix | Delete
protected function get_table_name() {
[58] Fix | Delete
return Model::get_table_name( 'Primary_Term' );
[59] Fix | Delete
}
[60] Fix | Delete
}
[61] Fix | Delete
[62] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function