parent
d20c025c38
commit
b3e2444574
@ -1,41 +0,0 @@ |
||||
<?php |
||||
|
||||
namespace ChamiloLMS\Migrations; |
||||
|
||||
use Doctrine\DBAL\Migrations\AbstractMigration, |
||||
Doctrine\DBAL\Schema\Schema; |
||||
|
||||
/** |
||||
* Manages the migration to Chamilo 1.10 |
||||
* @package ChamiloLMS\Controller\Migrations |
||||
*/ |
||||
class Version10 extends AbstractMigration |
||||
{ |
||||
/** |
||||
* Chamilo upgrade |
||||
* @param Schema $schema |
||||
*/ |
||||
public function up(Schema $schema) |
||||
{ |
||||
$this->addSql("UPDATE settings_current SET selected_value = '1.10.0.001' WHERE variable = 'chamilo_database_version'"); |
||||
|
||||
//@todo change this into a function |
||||
// Web profiler |
||||
/*$this->addSql("INSERT INTO settings_current (variable, subkey, type, category, selected_value, title, comment, scope, subkeytext, access_url_changeable) VALUES ('allow_web_profiler', NULL,'radio','Portal','false','AllowWebProfilerTitle','AllowWebProfilerComment', NULL, NULL, 0)"); |
||||
$this->addSql("INSERT INTO settings_options (variable, value, display_text) VALUES ('allow_web_profiler', 'true', 'Yes')"); |
||||
$this->addSql("INSERT INTO settings_options (variable, value, display_text) VALUES ('allow_web_profiler', 'false', 'No')");*/ |
||||
|
||||
} |
||||
|
||||
/** |
||||
* Chamilo downgrade |
||||
* @param Schema $schema |
||||
*/ |
||||
public function down(Schema $schema) |
||||
{ |
||||
$this->addSql("UPDATE settings_current SET selected_value = '1.9.0' WHERE variable = 'chamilo_database_version'"); |
||||
// Web profiler |
||||
/* $this->addSql("DELETE FROM settings_current WHERE variable = 'allow_web_profiler'"); |
||||
$this->addSql("DELETE FROM settings_options WHERE variable = 'allow_web_profiler'");*/ |
||||
} |
||||
} |
||||
@ -1,23 +0,0 @@ |
||||
<?php |
||||
|
||||
namespace ChamiloLMS\Migrations; |
||||
|
||||
use Doctrine\DBAL\Migrations\AbstractMigration, |
||||
Doctrine\DBAL\Schema\Schema; |
||||
|
||||
/** |
||||
* Manages the migration to Chamilo 1.11 |
||||
* @package ChamiloLMS\Controller\Migrations |
||||
*/ |
||||
class Version11 extends AbstractMigration |
||||
{ |
||||
public function up(Schema $schema) |
||||
{ |
||||
$this->addSql('UPDATE settings_current SET selected_value = "1.11" WHERE variable = "chamilo_database_version"'); |
||||
} |
||||
|
||||
public function down(Schema $schema) |
||||
{ |
||||
$this->addSql('UPDATE settings_current SET selected_value = "1.10" WHERE variable = "chamilo_database_version"'); |
||||
} |
||||
} |
||||
@ -1,24 +0,0 @@ |
||||
<?php |
||||
|
||||
namespace ChamiloLMS\Migrations; |
||||
|
||||
use Doctrine\DBAL\Migrations\AbstractMigration, |
||||
Doctrine\DBAL\Schema\Schema; |
||||
|
||||
|
||||
/** |
||||
* Manages the migration to version 1.8.0 |
||||
* @package ChamiloLMS\Controller\Migrations |
||||
*/ |
||||
class Version8 extends AbstractMigration |
||||
{ |
||||
public function up(Schema $schema) |
||||
{ |
||||
$this->addSql('UPDATE settings_current SET selected_value = "1.8.8.14911.doc" WHERE variable = "chamilo_database_version"'); |
||||
} |
||||
|
||||
public function down(Schema $schema) |
||||
{ |
||||
$this->addSql('UPDATE settings_current SET selected_value = "1.8.7.doc" WHERE variable = "chamilo_database_version"'); |
||||
} |
||||
} |
||||
@ -1,23 +0,0 @@ |
||||
<?php |
||||
|
||||
namespace ChamiloLMS\Migrations; |
||||
|
||||
use Doctrine\DBAL\Migrations\AbstractMigration, |
||||
Doctrine\DBAL\Schema\Schema; |
||||
|
||||
/** |
||||
* Manages the migration to version 1.9.0 |
||||
* @package ChamiloLMS\Controller\Migrations |
||||
*/ |
||||
class Version9 extends AbstractMigration |
||||
{ |
||||
public function up(Schema $schema) |
||||
{ |
||||
$this->addSql('UPDATE settings_current SET selected_value = "1.9.0.18715.doc" WHERE variable = "chamilo_database_version"'); |
||||
} |
||||
|
||||
public function down(Schema $schema) |
||||
{ |
||||
$this->addSql('UPDATE settings_current SET selected_value = "1.8.8.14911.doc" WHERE variable = "chamilo_database_version"'); |
||||
} |
||||
} |
||||
@ -1,4 +0,0 @@ |
||||
name: Chamilo Migrations |
||||
migrations_namespace: ChamiloLMS\Migrations |
||||
table_name: chamilo_migration_versions |
||||
migrations_directory: src/ChamiloLMS/Migrations/ |
||||
Loading…
Reference in new issue