Add editor_id_idx index for ::posts table

This commit is contained in:
Visman 2023-08-11 22:39:27 +07:00
parent 8b829e571a
commit a828436496
2 changed files with 6 additions and 3 deletions

View file

@ -933,6 +933,7 @@ class Install extends Admin
'INDEXES' => [
'topic_id_idx' => ['topic_id'],
'multi_idx' => ['poster_id', 'topic_id', 'posted'],
'editor_id_idx' => ['editor_id'],
],
'ENGINE' => $this->DBEngine,
];

View file

@ -25,7 +25,7 @@ class Update extends Admin
{
const PHP_MIN = '8.0.0';
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_TTL = 1800;
const CONFIG_FILE = 'main.php';
@ -884,6 +884,8 @@ class Update extends Admin
$config->save();
$this->c->DB->addIndex('::posts', 'editor_id_idx', ['editor_id']);
return null;
}
}