Version20160727122700.php 741 B

123456789101112131415161718192021222324252627282930313233343536
  1. <?php
  2. /* For licensing terms, see /license.txt */
  3. namespace Application\Migrations\Schema\V111;
  4. use Application\Migrations\AbstractMigrationChamilo,
  5. Doctrine\DBAL\Schema\Schema;
  6. /**
  7. * Class Version20160727122700
  8. * Add missing index to c_lp
  9. * @package Application\Migrations\Schema\V111
  10. */
  11. class Version20160727122700 extends AbstractMigrationChamilo
  12. {
  13. /**
  14. * @param Schema $schema
  15. */
  16. public function up(Schema $schema)
  17. {
  18. $schema
  19. ->getTable('c_lp')
  20. ->addIndex(['session_id'], 'session');
  21. }
  22. /**
  23. * @param Schema $schema
  24. */
  25. public function down(Schema $schema)
  26. {
  27. $schema
  28. ->getTable('c_lp')
  29. ->dropIndex('session');
  30. }
  31. }