From 5071c8c9cf4d3fcb79851e3ea089593c81cd3b02 Mon Sep 17 00:00:00 2001 From: Olivier Mehani Date: Tue, 6 Aug 2019 22:39:12 +1000 Subject: Add index on starred entries Fixes #4079 Signed-off-by: Olivier Mehani --- app/DoctrineMigrations/Version20190806131006.php | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 app/DoctrineMigrations/Version20190806131006.php (limited to 'app/DoctrineMigrations/Version20190806131006.php') 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 @@ +addSql('CREATE INDEX user_starred ON wallabag_entry (user_id, is_starred, starred_at)'); + } + + public function down(Schema $schema) : void + { + $this->addSql('DROP INDEX user_starred ON `wallabag_entry`'); + } +} -- cgit v1.2.3