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



$migrations->Run('01_add_task_indexes_again.php', <<<'DB_UPDATE_FILE'
<?php

/** @var \Claromentis\Setup\SetupFacade $migrations */
$db = $migrations->GetDb();

$db->CreateIndex('projects_task', 'projects_task_assignee', 'assignee');
$db->CreateIndex('projects_task', 'projects_task_project_id', 'project_id');

$migrations->getLogger()->notice("If you see warnings above regarding already existing indexes, this is not a problem!");

DB_UPDATE_FILE
);


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