Version8.php 624 B

123456789101112131415161718192021222324
  1. <?php
  2. namespace Chash\Migrations;
  3. use Doctrine\DBAL\Migrations\AbstractMigration,
  4. Doctrine\DBAL\Schema\Schema;
  5. /**
  6. * Manages the migration to version 1.8.0
  7. * @package ChamiloLMS\Controller\Migrations
  8. */
  9. class Version8 extends AbstractMigration
  10. {
  11. public function up(Schema $schema)
  12. {
  13. $this->addSql('UPDATE settings_current SET selected_value = "1.8.8.14911.doc" WHERE variable = "chamilo_database_version"');
  14. }
  15. public function down(Schema $schema)
  16. {
  17. $this->addSql('UPDATE settings_current SET selected_value = "1.8.7.doc" WHERE variable = "chamilo_database_version"');
  18. }
  19. }