2014111800-1.10.0-add_new_hash_column-536087bbb2dbc82b.php 324 B

1234567891011121314151617
  1. <?php
  2. /**
  3. * Elgg 1.10.0 upgrade 2014111800
  4. * add_new_hash_column
  5. *
  6. * Upgrades user entity schema to support new password hashes
  7. */
  8. $db = _elgg_services()->db;
  9. $prefix = $db->getTablePrefix();
  10. $db->updateData("
  11. ALTER TABLE {$prefix}users_entity
  12. ADD `password_hash` varchar(255) NOT NULL DEFAULT ''
  13. AFTER `salt`
  14. ");