From: friendica Date: Mon, 17 Sep 2012 08:34:05 +0000 (-0700) Subject: fix item_id table X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=640f5306f57c12f8effc24fe3749dccbb66392c4;p=friendica.git fix item_id table --- diff --git a/boot.php b/boot.php index 072d6a7141..2119347ae5 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 1faaf5f2e0..0f82616f7b 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 cf6fa138ea..3d3eec6f97 100644 --- a/update.php +++ b/update.php @@ -1,6 +1,6 @@