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



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

/** @var \Claromentis\Setup\SetupFacade $migrations */
$db = $migrations->GetDb();
//This at-symbol is here because this index might not exist, and we have no way of checking
@$db->DropIndex('oauth_auth_codes', 'oauth_auth_codes_session_id_foreign', 'session_id');

DB_UPDATE_FILE
);


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