Version20160331103600.php 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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 Version20160331103600
  8. */
  9. class Version20160331103600 extends AbstractMigrationChamilo
  10. {
  11. /**
  12. * @param Schema $schema
  13. *
  14. * @throws \Doctrine\DBAL\Schema\SchemaException
  15. */
  16. public function up(Schema $schema)
  17. {
  18. $this->addSettingCurrent(
  19. 'teacher_can_select_course_template',
  20. null,
  21. 'radio',
  22. 'Course',
  23. 'true',
  24. 'TeacherCanSelectCourseTemplateTitle',
  25. 'TeacherCanSelectCourseTemplateComment',
  26. null,
  27. '',
  28. 1,
  29. true,
  30. false,
  31. [
  32. ['value' => 'true', 'text' => 'Yes'],
  33. ['value' => 'false', 'text' => 'No'],
  34. ]
  35. );
  36. }
  37. /**
  38. * @param Schema $schema
  39. */
  40. public function down(Schema $schema)
  41. {
  42. }
  43. }