aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrett Profitt <brett.profitt@gmail.com>2012-04-18 20:31:26 -0700
committerBrett Profitt <brett.profitt@gmail.com>2012-04-18 20:31:26 -0700
commit8b1036819422049d81bca3384259ac2f74e7a27a (patch)
treeeb55323b121d64caf24deb21a89ac7686991aeb9
parent8aad9f081b9fd83f8cd8358547234fbdcdaf9611 (diff)
downloadelgg-8b1036819422049d81bca3384259ac2f74e7a27a.tar.gz
elgg-8b1036819422049d81bca3384259ac2f74e7a27a.tar.bz2
Fixes #4291. Removing the unique index on user and site guids in the users_apisessions table.
-rw-r--r--engine/lib/upgrades/2012041801-1.8.3-multiple_user_tokens-852225f7fd89f6c5.php13
-rw-r--r--version.php2
2 files changed, 14 insertions, 1 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
diff --git a/version.php b/version.php
index cc4415228..689306412 100644
--- a/version.php
+++ b/version.php
@@ -11,7 +11,7 @@
// YYYYMMDD = Elgg Date
// XX = Interim incrementer
-$version = 2012041800;
+$version = 2012041801;
// Human-friendly version name
$release = '1.8.3';