Add index on status column

This commit is contained in:
Frederic Guillot 2013-04-22 22:41:20 -04:00
parent 782b952920
commit e2076e8571
2 changed files with 7 additions and 1 deletions

View File

@ -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;

View File

@ -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'");