mirror of
https://github.com/wallabag/wallabag.git
synced 2024-11-26 19:11:07 +00:00
5071c8c9cf
Fixes #4079 Signed-off-by: Olivier Mehani <shtrom@ssji.net>
22 lines
567 B
PHP
22 lines
567 B
PHP
<?php declare(strict_types=1);
|
|
|
|
namespace Application\Migrations;
|
|
|
|
use Doctrine\DBAL\Schema\Schema;
|
|
use Doctrine\Migrations\AbstractMigration;
|
|
|
|
/**
|
|
* Auto-generated Migration: Please modify to your needs!
|
|
*/
|
|
final class Version20190806131006 extends AbstractMigration
|
|
{
|
|
public function up(Schema $schema) : void
|
|
{
|
|
$this->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`');
|
|
}
|
|
}
|