Skip to content

Commit

Permalink
Fixed issue #9724: Lost token emails on upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
c-schmitz committed Jun 29, 2015
1 parent 1aa7c92 commit 162255e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion application/helpers/update/updatedb_helper.php
Expand Up @@ -1410,7 +1410,8 @@ function upgradeTokenTables179()
alterColumn($sTableName, $sColumnName, "text");
}
}
$oDB->createCommand("UPDATE {$sTableName} set email={$sSubstringCommand}(email,0,254)")->execute();
$oDB->createCommand("UPDATE {$sTableName} set email={$sSubstringCommand}(email,1,254)")->execute();
try { setTransactionBookmark(); $oDB->createCommand()->dropIndex("idx_{$sTableName}_efl",$sTableName); } catch(Exception $e) { rollBackToTransactionBookmark();}
alterColumn($sTableName, 'email', "string(254)");
alterColumn($sTableName, 'firstname', "string(150)");
alterColumn($sTableName, 'lastname', "string(150)");
Expand Down

0 comments on commit 162255e

Please sign in to comment.