Version20160707131900.php 602 B

1234567891011121314151617181920212223242526272829
  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. * Fix c_quiz_answer's correct field for id_auto
  8. */
  9. class Version20160707131900 extends AbstractMigrationChamilo
  10. {
  11. /**
  12. * @param Schema $schema
  13. */
  14. public function up(Schema $schema)
  15. {
  16. $this->addSql("
  17. ALTER TABLE c_quiz_answer ADD INDEX idx_cqa_q (question_id)");
  18. }
  19. /**
  20. * @param Schema $schema
  21. */
  22. public function down(Schema $schema)
  23. {
  24. }
  25. }