Version20160418093800.php 787 B

12345678910111213141516171819202122232425262728293031323334
  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. use Doctrine\DBAL\Types\Type;
  7. /**
  8. * Class Version20160418093800
  9. * Add save_correct_answers column to c_quiz table
  10. * @package Application\Migrations\Schema\V111
  11. */
  12. class Version20160418093800 extends AbstractMigrationChamilo
  13. {
  14. /**
  15. * @param Schema $schema
  16. * @throws \Doctrine\DBAL\Schema\SchemaException
  17. */
  18. public function up(Schema $schema)
  19. {
  20. $cQuizTable = $schema->getTable('c_quiz');
  21. $cQuizTable->addColumn('save_correct_answers', Type::BOOLEAN);
  22. }
  23. /**
  24. * @param Schema $schema
  25. */
  26. public function down(Schema $schema)
  27. {
  28. }
  29. }