Add index on status column
This commit is contained in:
parent
782b952920
commit
e2076e8571
@ -10,7 +10,7 @@ require 'schema.php';
|
||||
require 'model.php';
|
||||
|
||||
|
||||
const DB_VERSION = 3;
|
||||
const DB_VERSION = 4;
|
||||
const APP_VERSION = 'master';
|
||||
const APP_USERAGENT = 'Miniflux - http://miniflux.net';
|
||||
const HTTP_TIMEOUT = 5;
|
||||
|
@ -3,6 +3,12 @@
|
||||
namespace Schema;
|
||||
|
||||
|
||||
function version_4($pdo)
|
||||
{
|
||||
$pdo->exec("CREATE INDEX idx_status ON items(status)");
|
||||
}
|
||||
|
||||
|
||||
function version_3($pdo)
|
||||
{
|
||||
$pdo->exec("ALTER TABLE config ADD COLUMN language TEXT DEFAULT 'en_US'");
|
||||
|
Loading…
Reference in New Issue
Block a user