mirror of
https://github.com/nuxsmin/sysPass.git
synced 2026-03-13 03:46:58 +01:00
* [MOD] Improved upgrading process. Orphaned items would be created if IDs are not set.
This commit is contained in:
@@ -65,9 +65,9 @@ CREATE TABLE `usrData` (
|
||||
`user_groupId` smallint(3) unsigned NOT NULL,
|
||||
`user_secGroupId` smallint(3) unsigned DEFAULT NULL,
|
||||
`user_login` varchar(50) NOT NULL,
|
||||
`user_pass` varbinary(255) NOT NULL,
|
||||
`user_mPass` varbinary(255) DEFAULT NULL,
|
||||
`user_mIV` varbinary(32) NOT NULL,
|
||||
`user_pass` varbinary(1000) NOT NULL,
|
||||
`user_mPass` varbinary(1000) DEFAULT NULL,
|
||||
`user_mKey` varbinary(1000) NOT NULL,
|
||||
`user_email` varchar(80) DEFAULT NULL,
|
||||
`user_notes` text,
|
||||
`user_count` int(10) unsigned NOT NULL DEFAULT '0',
|
||||
@@ -106,8 +106,8 @@ CREATE TABLE `accounts` (
|
||||
`account_categoryId` smallint(5) unsigned NOT NULL,
|
||||
`account_login` varchar(50) DEFAULT NULL,
|
||||
`account_url` varchar(255) DEFAULT NULL,
|
||||
`account_pass` varbinary(255) NOT NULL,
|
||||
`account_IV` varbinary(32) NOT NULL,
|
||||
`account_pass` varbinary(1000) NOT NULL,
|
||||
`account_key` varbinary(1000) NOT NULL,
|
||||
`account_notes` text,
|
||||
`account_countView` int(10) unsigned NOT NULL DEFAULT '0',
|
||||
`account_countDecrypt` int(10) unsigned NOT NULL DEFAULT '0',
|
||||
@@ -191,8 +191,8 @@ CREATE TABLE `accHistory` (
|
||||
`acchistory_categoryId` smallint(5) unsigned NOT NULL,
|
||||
`acchistory_login` varchar(50) NOT NULL,
|
||||
`acchistory_url` varchar(255) DEFAULT NULL,
|
||||
`acchistory_pass` varbinary(255) NOT NULL,
|
||||
`acchistory_IV` varbinary(32) NOT NULL,
|
||||
`acchistory_pass` varbinary(500) NOT NULL,
|
||||
`acchistory_key` varbinary(1000) NOT NULL,
|
||||
`acchistory_notes` text NOT NULL,
|
||||
`acchistory_countView` int(10) unsigned NOT NULL DEFAULT '0',
|
||||
`acchistory_countDecrypt` int(10) unsigned NOT NULL DEFAULT '0',
|
||||
@@ -271,6 +271,8 @@ CREATE TABLE `authTokens` (
|
||||
`authtoken_actionId` smallint(5) unsigned NOT NULL,
|
||||
`authtoken_createdBy` smallint(5) unsigned NOT NULL,
|
||||
`authtoken_startDate` int(10) unsigned NOT NULL,
|
||||
`authtoken_vault` varbinary(2000) NULL,
|
||||
`authtoken_hash` varbinary(1000) NULL,
|
||||
PRIMARY KEY (`authtoken_id`),
|
||||
UNIQUE KEY `unique_authtoken_id` (`authtoken_id`),
|
||||
KEY `IDX_checkToken` (`authtoken_userId`,`authtoken_actionId`,`authtoken_token`),
|
||||
@@ -300,7 +302,7 @@ CREATE TABLE `customFieldsData` (
|
||||
`customfielddata_itemId` int(10) unsigned NOT NULL,
|
||||
`customfielddata_defId` int(10) unsigned NOT NULL,
|
||||
`customfielddata_data` longblob,
|
||||
`customfielddata_iv` varbinary(128) DEFAULT NULL,
|
||||
`customfielddata_key` varbinary(1000) DEFAULT NULL,
|
||||
PRIMARY KEY (`customfielddata_id`),
|
||||
KEY `IDX_DEFID` (`customfielddata_defId`),
|
||||
KEY `IDX_DELETE` (`customfielddata_itemId`,`customfielddata_moduleId`),
|
||||
|
||||
Reference in New Issue
Block a user