Add editor_id_idx index for ::posts table
This commit is contained in:
parent
8b829e571a
commit
a828436496
2 changed files with 6 additions and 3 deletions
|
@ -931,8 +931,9 @@ class Install extends Admin
|
||||||
],
|
],
|
||||||
'PRIMARY KEY' => ['id'],
|
'PRIMARY KEY' => ['id'],
|
||||||
'INDEXES' => [
|
'INDEXES' => [
|
||||||
'topic_id_idx' => ['topic_id'],
|
'topic_id_idx' => ['topic_id'],
|
||||||
'multi_idx' => ['poster_id', 'topic_id', 'posted'],
|
'multi_idx' => ['poster_id', 'topic_id', 'posted'],
|
||||||
|
'editor_id_idx' => ['editor_id'],
|
||||||
],
|
],
|
||||||
'ENGINE' => $this->DBEngine,
|
'ENGINE' => $this->DBEngine,
|
||||||
];
|
];
|
||||||
|
|
|
@ -25,7 +25,7 @@ class Update extends Admin
|
||||||
{
|
{
|
||||||
const PHP_MIN = '8.0.0';
|
const PHP_MIN = '8.0.0';
|
||||||
const REV_MIN_FOR_UPDATE = 53;
|
const REV_MIN_FOR_UPDATE = 53;
|
||||||
const LATEST_REV_WITH_DB_CHANGES = 67;
|
const LATEST_REV_WITH_DB_CHANGES = 68;
|
||||||
const LOCK_NAME = 'lock_update';
|
const LOCK_NAME = 'lock_update';
|
||||||
const LOCK_TTL = 1800;
|
const LOCK_TTL = 1800;
|
||||||
const CONFIG_FILE = 'main.php';
|
const CONFIG_FILE = 'main.php';
|
||||||
|
@ -884,6 +884,8 @@ class Update extends Admin
|
||||||
|
|
||||||
$config->save();
|
$config->save();
|
||||||
|
|
||||||
|
$this->c->DB->addIndex('::posts', 'editor_id_idx', ['editor_id']);
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue