Version20151119082400.php 728 B

12345678910111213141516171819202122232425262728293031323334
  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. use Doctrine\DBAL\Types\Type;
  7. /**
  8. * Add new indexes
  9. */
  10. class Version20151119082400 extends AbstractMigrationChamilo
  11. {
  12. /**
  13. * @param Schema $schema
  14. */
  15. public function up(Schema $schema)
  16. {
  17. $user = $schema->getTable('user');
  18. $user->addIndex(['user_id']);
  19. $userRelTag = $schema->getTable('user_rel_tag');
  20. $userRelTag->addIndex(['user_id']);
  21. $userRelTag->addIndex(['tag_id']);
  22. }
  23. /**
  24. * @param Schema $schema
  25. */
  26. public function down(Schema $schema)
  27. {
  28. }
  29. }