From c18207edb9934c3db4af59535c3cbff6c1fd5fef Mon Sep 17 00:00:00 2001 From: Mark Pemberton Date: Mon, 28 Feb 2011 02:06:14 -0500 Subject: [PATCH] Added enablePrivateKey column to user table and added additional index in bookmarks table --- data/tables.sql | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/data/tables.sql b/data/tables.sql index c36911f..59f15f2 100644 --- a/data/tables.sql +++ b/data/tables.sql @@ -23,7 +23,8 @@ CREATE TABLE `sc_bookmarks` ( PRIMARY KEY (`bId`), KEY `sc_bookmarks_usd` (`uId`,`bStatus`,`bDatetime`), KEY `sc_bookmarks_hui` (`bHash`,`uId`,`bId`), - KEY `sc_bookmarks_du` (`bDatetime`,`uId`) + KEY `sc_bookmarks_du` (`bDatetime`,`uId`). + KEY `sc_bookmarks_mod` (`bModified`) ) CHARACTER SET utf8 COLLATE utf8_general_ci ; -- -------------------------------------------------------- @@ -73,6 +74,7 @@ CREATE TABLE `sc_users` ( `homepage` varchar(255) default NULL, `uContent` text, `privateKey` varchar(32) NULL, + `enablePrivateKey` int(1) default '0', PRIMARY KEY (`uId`), UNIQUE KEY `privateKey` (`privateKey`) ) CHARACTER SET utf8 COLLATE utf8_general_ci ;