2023-07-28 11:21:41 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
declare(strict_types=1);
|
|
|
|
|
|
|
|
namespace Application\Migrations;
|
|
|
|
|
|
|
|
use Doctrine\DBAL\Schema\Schema;
|
2024-02-19 01:30:12 +01:00
|
|
|
use Wallabag\Doctrine\WallabagMigration;
|
2023-07-28 11:21:41 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Remove mobi export.
|
|
|
|
*/
|
|
|
|
final class Version20230728091417 extends WallabagMigration
|
|
|
|
{
|
|
|
|
public function up(Schema $schema): void
|
|
|
|
{
|
|
|
|
$this->addSql('DELETE FROM' . $this->getTable('internal_setting') . " WHERE name = 'export_mobi';");
|
|
|
|
}
|
|
|
|
|
|
|
|
public function down(Schema $schema): void
|
|
|
|
{
|
|
|
|
$this->addSql('INSERT INTO ' . $this->getTable('internal_setting') . " (name, value, section) VALUES ('export_mobi', '1', 'export');");
|
|
|
|
}
|
|
|
|
}
|