You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
727 B
33 lines
727 B
![]()
9 years ago
|
<?php
|
||
|
/* For licensing terms, see /license.txt */
|
||
|
|
||
|
namespace Application\Migrations\Schema\V110;
|
||
|
|
||
|
use Application\Migrations\AbstractMigrationChamilo;
|
||
|
use Doctrine\DBAL\Schema\Schema;
|
||
|
|
||
|
/**
|
||
|
* Add indexes
|
||
|
*/
|
||
|
class Version20151214164000 extends AbstractMigrationChamilo
|
||
|
{
|
||
|
/**
|
||
|
* @param Schema $schema
|
||
|
*/
|
||
|
public function up(Schema $schema)
|
||
|
{
|
||
|
$extraFieldValueTable = $schema->getTable('extra_field_values');
|
||
|
$extraFieldValueTable->addIndex(['field_id', 'item_id']);
|
||
|
|
||
|
$extraFieldTable = $schema->getTable('extra_field');
|
||
|
$extraFieldTable->addIndex(['extra_field_type']);
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* @param Schema $schema
|
||
|
*/
|
||
|
public function down(Schema $schema)
|
||
|
{
|
||
|
}
|
||
|
}
|