diff --git a/dbee.install b/dbee.install index 5c7e2be..9edd02a 100644 --- a/dbee.install +++ b/dbee.install @@ -22,7 +22,7 @@ function dbee_install() { ->condition('type', 'module') ->execute(); - // #2878467 : mail index may fails with the new lenght of the mail colomn. + // Mail index fails with the new length of the mail column. db_drop_index('users', 'mail'); // Change the description and length on the {users} table fields. @@ -32,7 +32,7 @@ function dbee_install() { db_change_field('users', $dbee_field, $dbee_field, $schema['fields'][$dbee_field]); } - // #2878467 : set a size of the mail index. + // Re-add the deleted indexes and set the correct size of the mail index. db_add_index('users', 'mail', array(array('0' => 'mail', '1' => '254'))); // Create 2 new fields into the {users} table. @@ -79,6 +79,11 @@ function dbee_install() { // Reset cache. encrypt_get_configs(TRUE); } + + // Re-Encrypt all existing email addresses, using decryption from the aes + // module (the one from aes module or submodule aes from the real aes module). + module_load_include('inc', 'dbee', 'includes/dbee.users'); + dbee_update_crypt_all('change', TRUE); } /** @@ -402,9 +407,4 @@ function dbee_update_7300(&$sandbox) { // Create the dbee encrypt config, update {users} field length. dbee_install(); - - // Re-Encrypt all existing email addresses, using decryption from the aes - // module (the one from aes module ou submodule aes from the real aes module). - module_load_include('inc', 'dbee', 'includes/dbee.users'); - dbee_update_crypt_all('change', TRUE); }