Version20160628220000.php 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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 Version20160628220000
  9. * Integrate the Skype plugin and create new settings current to enable it
  10. * @package Application\Migrations\Schema\V111
  11. */
  12. class Version20160628220000 extends AbstractMigrationChamilo
  13. {
  14. /**
  15. * @param Schema $schema
  16. * @throws \Doctrine\DBAL\DBALException
  17. * @throws \Doctrine\DBAL\Schema\SchemaException
  18. */
  19. public function up(Schema $schema)
  20. {
  21. $this
  22. ->connection
  23. ->executeQuery("UPDATE c_lp_item SET item_type = 'dir' WHERE item_type = 'dokeos_chapter'");
  24. $this
  25. ->connection
  26. ->executeQuery("UPDATE c_lp_item SET item_type = 'dir' WHERE item_type = 'dokeos_module'");
  27. $this
  28. ->connection
  29. ->executeQuery("UPDATE c_lp_item SET item_type = 'dir' WHERE item_type = 'chapter'");
  30. $this
  31. ->connection
  32. ->executeQuery("UPDATE c_lp_item SET item_type = 'dir' WHERE item_type = 'module'");
  33. }
  34. /**
  35. * @param Schema $schema
  36. * @throws \Doctrine\DBAL\DBALException
  37. * @throws \Doctrine\DBAL\Schema\SchemaException
  38. */
  39. public function down(Schema $schema)
  40. {
  41. }
  42. }