]>
Commit | Line | Data |
---|---|---|
5071c8c9 OM |
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 | } |