From 640f5306f57c12f8effc24fe3749dccbb66392c4 Mon Sep 17 00:00:00 2001 From: friendica Date: Mon, 17 Sep 2012 01:34:05 -0700 Subject: [PATCH] fix item_id table --- boot.php | 2 +- database.sql | 4 +++- update.php | 13 ++++++++++++- 3 files changed, 16 insertions(+), 3 deletions(-) diff --git a/boot.php b/boot.php index 072d6a714..2119347ae 100644 --- a/boot.php +++ b/boot.php @@ -13,7 +13,7 @@ require_once('library/Mobile_Detect/Mobile_Detect.php'); define ( 'FRIENDICA_PLATFORM', 'Friendica'); define ( 'FRIENDICA_VERSION', '3.0.1468' ); define ( 'DFRN_PROTOCOL_VERSION', '2.23' ); -define ( 'DB_UPDATE_VERSION', 1155 ); +define ( 'DB_UPDATE_VERSION', 1156 ); define ( 'EOL', "
\r\n" ); define ( 'ATOM_TIME', 'Y-m-d\TH:i:s\Z' ); diff --git a/database.sql b/database.sql index 1faaf5f2e..0f82616f7 100644 --- a/database.sql +++ b/database.sql @@ -592,11 +592,13 @@ CREATE TABLE IF NOT EXISTS `item` ( -- CREATE TABLE IF NOT EXISTS `item_id` ( + `id` int(11) NOT NULL AUTO_INCREMENT, `iid` int(11) NOT NULL, `uid` int(11) NOT NULL, `sid` char(255) NOT NULL, `service` char(255) NOT NULL, - PRIMARY KEY (`iid`), + PRIMARY KEY (`id`), + KEY `iid` (`iid`), KEY `uid` (`uid`), KEY `sid` (`sid`), KEY `service` (`service`) diff --git a/update.php b/update.php index cf6fa138e..3d3eec6f9 100644 --- a/update.php +++ b/update.php @@ -1,6 +1,6 @@