2012041801-1.8.3-multiple_user_tokens-852225f7fd89f6c5.php 376 B

12345678910111213
  1. <?php
  2. /**
  3. * Elgg 1.8.3 upgrade 2012041801
  4. * multiple_user_tokens
  5. *
  6. * Fixes https://github.com/elgg/elgg/issues/4291
  7. * Removes the unique index on users_apisessions for user_guid and site_guid
  8. */
  9. $db_prefix = elgg_get_config('dbprefix');
  10. $q = "ALTER TABLE {$db_prefix}users_apisessions DROP INDEX user_guid,
  11. ADD INDEX user_guid (user_guid, site_guid)";
  12. update_data($q);