Version20151214164000.php 727 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. /* For licensing terms, see /license.txt */
  3. namespace Application\Migrations\Schema\V110;
  4. use Application\Migrations\AbstractMigrationChamilo;
  5. use Doctrine\DBAL\Schema\Schema;
  6. /**
  7. * Add indexes
  8. */
  9. class Version20151214164000 extends AbstractMigrationChamilo
  10. {
  11. /**
  12. * @param Schema $schema
  13. */
  14. public function up(Schema $schema)
  15. {
  16. $extraFieldValueTable = $schema->getTable('extra_field_values');
  17. $extraFieldValueTable->addIndex(['field_id', 'item_id']);
  18. $extraFieldTable = $schema->getTable('extra_field');
  19. $extraFieldTable->addIndex(['extra_field_type']);
  20. }
  21. /**
  22. * @param Schema $schema
  23. */
  24. public function down(Schema $schema)
  25. {
  26. }
  27. }