Removing migration and set the necessary changes to configuration file - refs BT#13479

pull/2487/head
Angel Fernando Quiroz Campos 7 years ago
parent 885aa4c383
commit 7cacdb3d75
  1. 34
      app/Migrations/Schema/V111/Version20171002154600.php
  2. 5
      main/install/configuration.dist.php
  3. 1
      main/install/data.sql

@ -1,34 +0,0 @@
<?php
/* For licensing terms, see /license.txt */
namespace Application\Migrations\Schema\V111;
use Application\Migrations\AbstractMigrationChamilo;
use Doctrine\DBAL\Schema\Schema;
/**
* Class Version20171002154600
*
* Added a new option in registration settings called "confirmation"
* This option prevents the new user to login in the platform if your account is not
* confirmed via email.
* @package Application\Migrations\Schema\V111
*/
class Version20171002154600 extends AbstractMigrationChamilo
{
/**
* @param Schema $schema
*/
public function up(Schema $schema)
{
$this->addSql("INSERT INTO settings_options (variable, value, display_text) VALUES ('allow_registration', 'confirmation', 'MailConfirmation')");
}
/**
* @param Schema $schema
*/
public function down(Schema $schema)
{
$this->addSql("DELETE settings_options WHERE variable='allow_registration' AND value='confirmation' AND display_text='MailConfirmation'");
}
}

@ -694,3 +694,8 @@ $_configuration['gradebook_badge_sidebar'] = [
// Allow session admin to read careers
//$_configuration['allow_session_admin_read_careers'] = true;
// Add user activation by confirmation email
// This option prevents the new user to login in the platform if your account is not confirmed via email
// You need add a new option called "confirmation" to the registration settings
//INSERT INTO settings_options (variable, value, display_text) VALUES ('allow_registration', 'confirmation', 'MailConfirmation')

@ -336,7 +336,6 @@ VALUES
('allow_registration','true','Yes'),
('allow_registration','false','No'),
('allow_registration','approval','AfterApproval'),
('allow_registration','confirmation','MailConfirmation'),
('allow_registration_as_teacher','true','Yes'),
('allow_registration_as_teacher','false','No'),
('allow_lostpassword','true','Yes'),

Loading…
Cancel
Save