aboutsummaryrefslogtreecommitdiffstats
path: root/install/database.sql
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-09-09 04:55:43 -0700
committerfriendica <info@friendica.com>2013-09-09 04:55:43 -0700
commit0565a6ef01b7c513be8ee90f805867eb2ed664e8 (patch)
treef3d6d2cec435c519b9c3b17cfdc2aaecb74a8683 /install/database.sql
parent25a5a5ff4dd457398d762f0ff92f01b134b92eaa (diff)
downloadvolse-hubzilla-0565a6ef01b7c513be8ee90f805867eb2ed664e8.tar.gz
volse-hubzilla-0565a6ef01b7c513be8ee90f805867eb2ed664e8.tar.bz2
volse-hubzilla-0565a6ef01b7c513be8ee90f805867eb2ed664e8.zip
change primary key on updates table
Diffstat (limited to 'install/database.sql')
-rw-r--r--install/database.sql4
1 files changed, 3 insertions, 1 deletions
diff --git a/install/database.sql b/install/database.sql
index ce46149c4..9b1b6cad2 100644
--- a/install/database.sql
+++ b/install/database.sql
@@ -883,10 +883,12 @@ CREATE TABLE IF NOT EXISTS `tokens` (
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
CREATE TABLE IF NOT EXISTS `updates` (
+ `ud_id` int(10) unsigned NOT NULL AUTO INCREMENT,
`ud_hash` char(128) NOT NULL,
`ud_guid` char(255) NOT NULL DEFAULT '',
`ud_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- PRIMARY KEY (`ud_hash`),
+ PRIMARY KEY (`ud_id`),
+ KEY `ud_hash` (`ud_hash`),
KEY `ud_guid` (`ud_guid`),
KEY `ud_date` (`ud_date`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;