<?php
$_db_migration_to = '32.08'; // 8.6.3
if (!isset($migrations) || !is_object($migrations))
	die("This file cannot be executed directly");
$migrations->CheckValid($_db_migration_to);
//===========================================================================================



$migrations->Run('01_indexing_queue_indexes.php', <<<'DB_UPDATE_FILE'
<?php
/**
 * @var \Claromentis\Setup\SetupFacade $migrations
 */
$database = $migrations->GetDb();

$database->CreateIndex('indexing_queue', 'idx_time_added', 'time_added');
$database->CreateIndex('indexing_queue', 'idx_object', 'object_type(50)', 'object_id(50)', 'sub_id');

DB_UPDATE_FILE
);


//===========================================================================================
$migrations->SetVersion('32.08');
