mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-06-18 02:59:27 +00:00
add lastrevisiondate to tblDocumentContent
This commit is contained in:
parent
880d0d8654
commit
fd2f6f169d
|
@ -316,6 +316,7 @@ CREATE TABLE `tblDocumentContent` (
|
|||
`fileSize` bigint(20) DEFAULT NULL,
|
||||
`checksum` char(32) DEFAULT NULL,
|
||||
`revisiondate` datetime DEFAULT NULL,
|
||||
`lastrevisiondate` datetime DEFAULT NULL,
|
||||
PRIMARY KEY (`id`),
|
||||
UNIQUE KEY `document` (`document`,`version`),
|
||||
CONSTRAINT `tblDocumentContent_document` FOREIGN KEY (`document`) REFERENCES `tblDocuments` (`id`)
|
||||
|
|
|
@ -269,6 +269,7 @@ CREATE TABLE "tblDocumentContent" (
|
|||
"fileSize" BIGINT,
|
||||
"checksum" char(32),
|
||||
"revisiondate" TIMESTAMP default NULL,
|
||||
"lastrevisiondate" TIMESTAMP default NULL,
|
||||
UNIQUE ("document","version")
|
||||
) ;
|
||||
|
||||
|
|
|
@ -271,6 +271,7 @@ CREATE TABLE `tblDocumentContent` (
|
|||
`fileSize` INTEGER,
|
||||
`checksum` char(32),
|
||||
`revisiondate` TEXT default NULL,
|
||||
`lastrevisiondate` TEXT default NULL,
|
||||
UNIQUE (`document`,`version`)
|
||||
) ;
|
||||
|
||||
|
|
|
@ -12,6 +12,8 @@ ALTER TABLE "tblUsers" ADD COLUMN "webauthn" TYPE text DEFAULT NULL;
|
|||
|
||||
ALTER TABLE "tblUsers" ADD COLUMN "disabledUntil" TYPE TIMESTAMP DEFAULT NULL;
|
||||
|
||||
ALTER TABLE "tblDocumentContent" ADD COLUMN "lastrevisiondate" TIMESTAMP default NULL;
|
||||
|
||||
CREATE TABLE "tblAttributeDefinitionGroups" (
|
||||
"id" SERIAL UNIQUE,
|
||||
"name" varchar(100) default NULL,
|
||||
|
|
|
@ -14,6 +14,30 @@ DROP TABLE `tblVersion`;
|
|||
|
||||
ALTER TABLE `new_tblVersion` RENAME TO `tblVersion`;
|
||||
|
||||
CREATE TABLE `new_tblDocumentContent` (
|
||||
`id` INTEGER PRIMARY KEY AUTOINCREMENT,
|
||||
`document` INTEGER NOT NULL default '0' REFERENCES `tblDocuments` (`id`),
|
||||
`version` INTEGER unsigned NOT NULL,
|
||||
`comment` text,
|
||||
`date` INTEGER default NULL,
|
||||
`createdBy` INTEGER default NULL,
|
||||
`dir` varchar(255) NOT NULL default '',
|
||||
`orgFileName` varchar(150) NOT NULL default '',
|
||||
`fileType` varchar(10) NOT NULL default '',
|
||||
`mimeType` varchar(100) NOT NULL default '',
|
||||
`fileSize` INTEGER,
|
||||
`checksum` char(32),
|
||||
`revisiondate` TEXT default NULL,
|
||||
`lastrevisiondate` TEXT default NULL,
|
||||
UNIQUE (`document`,`version`)
|
||||
) ;
|
||||
|
||||
INSERT INTO `new_tblDocumentContent` SELECT * FROM `tblDocumentContent`;
|
||||
|
||||
DROP TABLE `tblDocumentContent`;
|
||||
|
||||
ALTER TABLE `new_tblDocumentContent` RENAME TO `tblDocumentContent`;
|
||||
|
||||
CREATE TABLE `new_tblUsers` (
|
||||
`id` INTEGER PRIMARY KEY AUTOINCREMENT,
|
||||
`login` varchar(50) default NULL,
|
||||
|
|
|
@ -12,6 +12,8 @@ ALTER TABLE `tblUsers` ADD COLUMN `webauthn` text DEFAULT NULL AFTER `pwd`;
|
|||
|
||||
ALTER TABLE `tblUsers` ADD COLUMN `disabledUntil` datetime DEFAULT NULL AFTER `disabled`;
|
||||
|
||||
ALTER TABLE `tblDocumentContent` ADD COLUMN `lastrevisiondate` datetime DEFAULT NULL AFTER `revisiondate`;
|
||||
|
||||
CREATE TABLE `tblAttributeDefinitionGroups` (
|
||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`name` varchar(100) DEFAULT NULL,
|
||||
|
|
Loading…
Reference in New Issue
Block a user