diff options
author | Brett Profitt <brett.profitt@gmail.com> | 2012-04-18 20:31:26 -0700 |
---|---|---|
committer | Brett Profitt <brett.profitt@gmail.com> | 2012-04-18 20:31:26 -0700 |
commit | 8b1036819422049d81bca3384259ac2f74e7a27a (patch) | |
tree | eb55323b121d64caf24deb21a89ac7686991aeb9 /engine/lib/upgrades | |
parent | 8aad9f081b9fd83f8cd8358547234fbdcdaf9611 (diff) | |
download | elgg-8b1036819422049d81bca3384259ac2f74e7a27a.tar.gz elgg-8b1036819422049d81bca3384259ac2f74e7a27a.tar.bz2 |
Fixes #4291. Removing the unique index on user and site guids in the users_apisessions table.
Diffstat (limited to 'engine/lib/upgrades')
-rw-r--r-- | engine/lib/upgrades/2012041801-1.8.3-multiple_user_tokens-852225f7fd89f6c5.php | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/engine/lib/upgrades/2012041801-1.8.3-multiple_user_tokens-852225f7fd89f6c5.php b/engine/lib/upgrades/2012041801-1.8.3-multiple_user_tokens-852225f7fd89f6c5.php new file mode 100644 index 000000000..07732f261 --- /dev/null +++ b/engine/lib/upgrades/2012041801-1.8.3-multiple_user_tokens-852225f7fd89f6c5.php @@ -0,0 +1,13 @@ +<?php +/** + * Elgg 1.8.3 upgrade 2012041801 + * multiple_user_tokens + * + * Fixes http://trac.elgg.org/ticket/4291 + * Removes the unique index on users_apisessions for user_guid and site_guid + */ + +$db_prefix = elgg_get_config('dbprefix'); +$q = "ALTER TABLE {$db_prefix}users_apisessions DROP INDEX user_guid, + ADD INDEX user_guid (user_guid, site_guid)"; +update_data($q);
\ No newline at end of file |