Version20160315155700.php 737 B

1234567891011121314151617181920212223242526272829303132
  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 Version20160315155700
  8. * Change type of the course_creation_use_template setting
  9. */
  10. class Version20160315155700 extends AbstractMigrationChamilo
  11. {
  12. /**
  13. * @param Schema $schema
  14. *
  15. * @throws \Doctrine\DBAL\Schema\SchemaException
  16. */
  17. public function up(Schema $schema)
  18. {
  19. $this->addSql("UPDATE settings_current SET type = 'select_course' WHERE variable = 'course_creation_use_template'");
  20. }
  21. /**
  22. * @param Schema $schema
  23. */
  24. public function down(Schema $schema)
  25. {
  26. }
  27. }