2019-07-08 14:45:45 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Application\Migrations;
|
|
|
|
|
|
|
|
use Doctrine\DBAL\Schema\Schema;
|
2024-02-19 01:30:12 +01:00
|
|
|
use Wallabag\Doctrine\WallabagMigration;
|
2019-07-08 14:45:45 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Change reading speed value.
|
|
|
|
*/
|
|
|
|
final class Version20190708122957 extends WallabagMigration
|
|
|
|
{
|
|
|
|
public function up(Schema $schema): void
|
|
|
|
{
|
|
|
|
$this->addSql('UPDATE ' . $this->getTable('config', true) . ' SET reading_speed = reading_speed*200');
|
|
|
|
}
|
|
|
|
|
|
|
|
public function down(Schema $schema): void
|
|
|
|
{
|
|
|
|
$this->addSql('UPDATE ' . $this->getTable('config', true) . ' SET reading_speed = reading_speed/200');
|
|
|
|
}
|
|
|
|
}
|