mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-14 13:42:04 +00:00
- field version in tblDocumentContent is no longer auto_increment
because innoDB doesn't all it, without being a primary index and it makes no sense, because a version should count up for a document not over all documents
This commit is contained in:
parent
a32a2e7237
commit
7f1fca5c23
|
@ -52,7 +52,7 @@ CREATE TABLE `tblDocumentApprovers` (
|
||||||
|
|
||||||
CREATE TABLE `tblDocumentContent` (
|
CREATE TABLE `tblDocumentContent` (
|
||||||
`document` int(11) NOT NULL default '0',
|
`document` int(11) NOT NULL default '0',
|
||||||
`version` smallint(5) unsigned NOT NULL auto_increment,
|
`version` smallint(5) unsigned NOT NULL,
|
||||||
`comment` text,
|
`comment` text,
|
||||||
`date` int(12) default NULL,
|
`date` int(12) default NULL,
|
||||||
`createdBy` int(11) default NULL,
|
`createdBy` int(11) default NULL,
|
||||||
|
@ -60,7 +60,7 @@ CREATE TABLE `tblDocumentContent` (
|
||||||
`orgFileName` varchar(150) NOT NULL default '',
|
`orgFileName` varchar(150) NOT NULL default '',
|
||||||
`fileType` varchar(10) NOT NULL default '',
|
`fileType` varchar(10) NOT NULL default '',
|
||||||
`mimeType` varchar(70) NOT NULL default '',
|
`mimeType` varchar(70) NOT NULL default '',
|
||||||
PRIMARY KEY (`document`,`version`)
|
UNIQUE (`document`,`version`)
|
||||||
) ;
|
) ;
|
||||||
|
|
||||||
-- --------------------------------------------------------
|
-- --------------------------------------------------------
|
||||||
|
@ -328,6 +328,7 @@ CREATE TABLE `tblUsers` (
|
||||||
`theme` varchar(32) NOT NULL,
|
`theme` varchar(32) NOT NULL,
|
||||||
`comment` text NOT NULL,
|
`comment` text NOT NULL,
|
||||||
`isAdmin` smallint(1) NOT NULL default '0',
|
`isAdmin` smallint(1) NOT NULL default '0',
|
||||||
|
`isGuest` smallint(1) NOT NULL default '0',
|
||||||
`hidden` smallint(1) NOT NULL default '0',
|
`hidden` smallint(1) NOT NULL default '0',
|
||||||
PRIMARY KEY (`id`)
|
PRIMARY KEY (`id`)
|
||||||
) ;
|
) ;
|
||||||
|
@ -402,5 +403,5 @@ CREATE TABLE `tblEvents` (
|
||||||
--
|
--
|
||||||
|
|
||||||
INSERT INTO tblFolders VALUES (1, 'DMS', 0, 'DMS root', 1, 0, 2, 0);
|
INSERT INTO tblFolders VALUES (1, 'DMS', 0, 'DMS root', 1, 0, 2, 0);
|
||||||
INSERT INTO tblUsers VALUES (1, 'admin', '21232f297a57a5a743894a0e4a801fc3', 'Administrator', 'address@server.com', '', '', '', 1, 0);
|
INSERT INTO tblUsers VALUES (1, 'admin', '21232f297a57a5a743894a0e4a801fc3', 'Administrator', 'address@server.com', '', '', '', 1, 0, 0);
|
||||||
INSERT INTO tblUsers VALUES (2, 'guest', NULL, 'Guest User', NULL, '', '', '', 0, 0);
|
INSERT INTO tblUsers VALUES (2, 'guest', NULL, 'Guest User', NULL, '', '', '', 0, 1, 0);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user