diff options
author | Jérémy Benoist <j0k3r@users.noreply.github.com> | 2019-07-09 11:53:20 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-09 11:53:20 +0200 |
commit | 4f4633008725e8cc7a760047f501fbed488def6f (patch) | |
tree | b15d68d51565dfde13b6b7fe7a2fc4c1bc5ecc7f /app/DoctrineMigrations | |
parent | 8effd6e99e5a1f1d0d663ee77b0f5015220d1b4a (diff) | |
parent | 41022cb289f5d08418ccb2d7050098c4ee3721e4 (diff) | |
download | wallabag-4f4633008725e8cc7a760047f501fbed488def6f.tar.gz wallabag-4f4633008725e8cc7a760047f501fbed488def6f.tar.zst wallabag-4f4633008725e8cc7a760047f501fbed488def6f.zip |
Merge pull request #4053 from wallabag/feature/manual-input-reading-speed
Add ability to manually define the reading speed
Diffstat (limited to 'app/DoctrineMigrations')
-rw-r--r-- | app/DoctrineMigrations/Version20190708122957.php | 22 |
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 | |||
3 | namespace Application\Migrations; | ||
4 | |||
5 | use Doctrine\DBAL\Schema\Schema; | ||
6 | use Wallabag\CoreBundle\Doctrine\WallabagMigration; | ||
7 | |||
8 | /** | ||
9 | * Change reading speed value. | ||
10 | */ | ||
11 | final 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 | } | ||