aboutsummaryrefslogtreecommitdiffhomepage
path: root/app/DoctrineMigrations/Version20190708122957.php
diff options
context:
space:
mode:
authorJeremy Benoist <jeremy.benoist@gmail.com>2019-07-08 14:45:45 +0200
committerJeremy Benoist <jeremy.benoist@gmail.com>2019-07-08 20:18:59 +0200
commit41022cb289f5d08418ccb2d7050098c4ee3721e4 (patch)
tree3a16462a3900d617b6bc0451a3964b98c8f45206 /app/DoctrineMigrations/Version20190708122957.php
parent92cd51aa2c29e23f137cde9b9732ced33ff38e59 (diff)
downloadwallabag-41022cb289f5d08418ccb2d7050098c4ee3721e4.tar.gz
wallabag-41022cb289f5d08418ccb2d7050098c4ee3721e4.tar.zst
wallabag-41022cb289f5d08418ccb2d7050098c4ee3721e4.zip
Add ability to manually define the reading speed
Instead of using a select, let the user decide its own speed.
Diffstat (limited to 'app/DoctrineMigrations/Version20190708122957.php')
-rw-r--r--app/DoctrineMigrations/Version20190708122957.php22
1 files changed, 22 insertions, 0 deletions
diff --git a/app/DoctrineMigrations/Version20190708122957.php b/app/DoctrineMigrations/Version20190708122957.php
new file mode 100644
index 00000000..9585e997
--- /dev/null
+++ b/app/DoctrineMigrations/Version20190708122957.php
@@ -0,0 +1,22 @@
1<?php
2
3namespace Application\Migrations;
4
5use Doctrine\DBAL\Schema\Schema;
6use Wallabag\CoreBundle\Doctrine\WallabagMigration;
7
8/**
9 * Change reading speed value.
10 */
11final class Version20190708122957 extends WallabagMigration
12{
13 public function up(Schema $schema): void
14 {
15 $this->addSql('UPDATE ' . $this->getTable('config', true) . ' SET reading_speed = reading_speed*200');
16 }
17
18 public function down(Schema $schema): void
19 {
20 $this->addSql('UPDATE ' . $this->getTable('config', true) . ' SET reading_speed = reading_speed/200');
21 }
22}