Skip to content

Commit

Permalink
Fixed issue #15843: Unable to run db migration via command line
Browse files Browse the repository at this point in the history
  • Loading branch information
c-schmitz committed Apr 8, 2020
1 parent bd8dd6d commit 6998921
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions application/helpers/update/updatedb_helper.php
Expand Up @@ -2848,8 +2848,8 @@ function db_upgrade_all($iOldDBVersion, $bSilent = false)
$oTransaction = $oDB->beginTransaction();

// encrypt values in db
SettingGlobal::setSetting('emailsmtppassword', LSActiveRecord::encryptSingle(getGlobalSetting('emailsmtppassword')));
SettingGlobal::setSetting('bounceaccountpass', LSActiveRecord::encryptSingle(getGlobalSetting('bounceaccountpass')));
SettingGlobal::setSetting('emailsmtppassword', LSActiveRecord::encryptSingle(App()->getConfig('emailsmtppassword')));
SettingGlobal::setSetting('bounceaccountpass', LSActiveRecord::encryptSingle(App()->getConfig('bounceaccountpass')));

// encrypt bounceaccountpass value in db
alterColumn('{{surveys}}','bounceaccountpass',"text",true,'NULL');
Expand Down

0 comments on commit 6998921

Please sign in to comment.