Version20150615171900.php 840 B

12345678910111213141516171819202122232425262728293031323334
  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. * Version20150615171900 class
  8. * Change in CCourseDescription entity
  9. *
  10. * @author Angel Fernando Quiroz Campos <angel.quiroz@beeznest.com>
  11. */
  12. class Version20150615171900 extends AbstractMigrationChamilo
  13. {
  14. /**
  15. * @param Schema $schema
  16. */
  17. public function up(Schema $schema)
  18. {
  19. $this->addSql('ALTER TABLE c_course_description CHANGE description_type description_type INTEGER NOT NULL DEFAULT 1');
  20. }
  21. /**
  22. * @param Schema $schema
  23. */
  24. public function down(Schema $schema)
  25. {
  26. $this->addSql('ALTER TABLE c_course_description CHANGE description_type description_type BOOLEAN NOT NULL');
  27. }
  28. }