Fixed SQL structure for PrivateKey
This commit is contained in:
parent
6ed90e647a
commit
16791766de
@ -15,5 +15,5 @@ CREATE TABLE `sc_users_sslclientcerts` (
|
|||||||
) CHARACTER SET utf8 COLLATE utf8_general_ci;
|
) CHARACTER SET utf8 COLLATE utf8_general_ci;
|
||||||
|
|
||||||
ALTER TABLE `sc_users` ADD `privateKey` VARCHAR(33) NULL;
|
ALTER TABLE `sc_users` ADD `privateKey` VARCHAR(33) NULL;
|
||||||
CREATE INDEX `privateKey` ON `sc_users` (`privateKey`);
|
CREATE UNIQUE INDEX `privateKey` ON `sc_users` (`privateKey`);
|
||||||
|
|
||||||
|
@ -72,7 +72,9 @@ CREATE TABLE `sc_users` (
|
|||||||
`email` varchar(50) NOT NULL default '',
|
`email` varchar(50) NOT NULL default '',
|
||||||
`homepage` varchar(255) default NULL,
|
`homepage` varchar(255) default NULL,
|
||||||
`uContent` text,
|
`uContent` text,
|
||||||
PRIMARY KEY (`uId`)
|
`privateKey` varchar(33) default NULL,
|
||||||
|
PRIMARY KEY (`uId`),
|
||||||
|
UNIQUE KEY `privateKey` (`privateKey`)
|
||||||
) CHARACTER SET utf8 COLLATE utf8_general_ci ;
|
) CHARACTER SET utf8 COLLATE utf8_general_ci ;
|
||||||
|
|
||||||
-- --------------------------------------------------------
|
-- --------------------------------------------------------
|
||||||
@ -84,9 +86,7 @@ CREATE TABLE `sc_users_sslclientcerts` (
|
|||||||
`sslClientIssuerDn` VARCHAR( 1024 ) NOT NULL ,
|
`sslClientIssuerDn` VARCHAR( 1024 ) NOT NULL ,
|
||||||
`sslName` VARCHAR( 64 ) NOT NULL ,
|
`sslName` VARCHAR( 64 ) NOT NULL ,
|
||||||
`sslEmail` VARCHAR( 64 ) NOT NULL ,
|
`sslEmail` VARCHAR( 64 ) NOT NULL ,
|
||||||
`privateKey` varchar(33) default NULL,
|
PRIMARY KEY ( `id` )
|
||||||
PRIMARY KEY ( `id` ) ,
|
|
||||||
UNIQUE KEY `privateKey` (`privateKey`)
|
|
||||||
) CHARACTER SET utf8 COLLATE utf8_general_ci;
|
) CHARACTER SET utf8 COLLATE utf8_general_ci;
|
||||||
|
|
||||||
--
|
--
|
||||||
|
@ -13,7 +13,7 @@ Database updates: Apply data/schema/6.sql or do the following:
|
|||||||
INSERT INTO `sc_version` (`schema_version`) VALUES ('6');
|
INSERT INTO `sc_version` (`schema_version`) VALUES ('6');
|
||||||
|
|
||||||
ALTER TABLE `sc_users` ADD `privateKey` VARCHAR(33) NULL;
|
ALTER TABLE `sc_users` ADD `privateKey` VARCHAR(33) NULL;
|
||||||
CREATE INDEX `privateKey` ON `sc_users` (`privateKey`);
|
CREATE UNIQUE INDEX `privateKey` ON `sc_users` (`privateKey`);
|
||||||
|
|
||||||
|
|
||||||
From version 0.96 to 0.97
|
From version 0.96 to 0.97
|
||||||
|
Loading…
Reference in New Issue
Block a user