diff options
author | Olivier Mehani <shtrom@ssji.net> | 2019-08-06 22:39:12 +1000 |
---|---|---|
committer | Olivier Mehani <shtrom@ssji.net> | 2019-08-06 23:21:47 +1000 |
commit | 5071c8c9cf4d3fcb79851e3ea089593c81cd3b02 (patch) | |
tree | 627c45e7595b3c240e4674e62ca39af1b172659e /app | |
parent | d1dbe10e8460b7117c98ee1e02735602887fd3a4 (diff) | |
download | wallabag-5071c8c9cf4d3fcb79851e3ea089593c81cd3b02.tar.gz wallabag-5071c8c9cf4d3fcb79851e3ea089593c81cd3b02.tar.zst wallabag-5071c8c9cf4d3fcb79851e3ea089593c81cd3b02.zip |
Add index on starred entries
Fixes #4079
Signed-off-by: Olivier Mehani <shtrom@ssji.net>
Diffstat (limited to 'app')
-rw-r--r-- | app/DoctrineMigrations/Version20190806131006.php | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/app/DoctrineMigrations/Version20190806131006.php b/app/DoctrineMigrations/Version20190806131006.php new file mode 100644 index 00000000..7ad45b57 --- /dev/null +++ b/app/DoctrineMigrations/Version20190806131006.php | |||
@@ -0,0 +1,22 @@ | |||
1 | <?php declare(strict_types=1); | ||
2 | |||
3 | namespace Application\Migrations; | ||
4 | |||
5 | use Doctrine\DBAL\Schema\Schema; | ||
6 | use Doctrine\Migrations\AbstractMigration; | ||
7 | |||
8 | /** | ||
9 | * Auto-generated Migration: Please modify to your needs! | ||
10 | */ | ||
11 | final class Version20190806131006 extends AbstractMigration | ||
12 | { | ||
13 | public function up(Schema $schema) : void | ||
14 | { | ||
15 | $this->addSql('CREATE INDEX user_starred ON wallabag_entry (user_id, is_starred, starred_at)'); | ||
16 | } | ||
17 | |||
18 | public function down(Schema $schema) : void | ||
19 | { | ||
20 | $this->addSql('DROP INDEX user_starred ON `wallabag_entry`'); | ||
21 | } | ||
22 | } | ||