Version20160727122700.php 740 B

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. /* For licensing terms, see /license.txt */
  3. namespace Application\Migrations\Schema\V111;
  4. use Application\Migrations\AbstractMigrationChamilo;
  5. use 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. }