mirror of
https://git.code.sf.net/p/seeddms/code
synced 2024-11-26 15:32:13 +00:00
set same date fields to default null
This commit is contained in:
parent
10f01c0fc6
commit
5c558601c7
|
@ -825,7 +825,7 @@ CREATE TABLE `tblTransmittals` (
|
|||
`name` text NOT NULL,
|
||||
`comment` text NOT NULL,
|
||||
`userID` int(11) NOT NULL default '0',
|
||||
`date` datetime NOT NULL,
|
||||
`date` datetime default NULL,
|
||||
`public` tinyint(1) NOT NULL default '0',
|
||||
PRIMARY KEY (`id`),
|
||||
CONSTRAINT `tblTransmittals_user` FOREIGN KEY (`userID`) REFERENCES `tblUsers` (`id`) ON DELETE CASCADE
|
||||
|
@ -842,7 +842,7 @@ CREATE TABLE `tblTransmittalItems` (
|
|||
`transmittal` int(11) NOT NULL DEFAULT '0',
|
||||
`document` int(11) default NULL,
|
||||
`version` smallint(5) unsigned NOT NULL default '0',
|
||||
`date` datetime NOT NULL,
|
||||
`date` datetime default NULL,
|
||||
PRIMARY KEY (`id`),
|
||||
UNIQUE (transmittal, document, version),
|
||||
CONSTRAINT `tblTransmittalItems_document` FOREIGN KEY (`document`) REFERENCES `tblDocuments` (`id`) ON DELETE CASCADE,
|
||||
|
|
|
@ -714,7 +714,7 @@ CREATE TABLE tblTransmittals (
|
|||
`name` text NOT NULL,
|
||||
`comment` text NOT NULL,
|
||||
`userID` INTEGER NOT NULL default '0' REFERENCES `tblUsers` (`id`) ON DELETE CASCADE,
|
||||
`date` TEXT NOT NULL,
|
||||
`date` TEXT default NULL,
|
||||
`public` INTEGER NOT NULL default '0'
|
||||
);
|
||||
|
||||
|
@ -729,7 +729,7 @@ CREATE TABLE `tblTransmittalItems` (
|
|||
`transmittal` INTEGER NOT NULL DEFAULT '0' REFERENCES `tblTransmittals` (`id`) ON DELETE CASCADE,
|
||||
`document` INTEGER default NULL REFERENCES `tblDocuments` (`id`) ON DELETE CASCADE,
|
||||
`version` INTEGER unsigned NOT NULL default '0',
|
||||
`date` TEXT NOT NULL,
|
||||
`date` TEXT default NULL,
|
||||
UNIQUE (transmittal, document, version)
|
||||
);
|
||||
|
||||
|
|
|
@ -64,7 +64,7 @@ CREATE TABLE tblTransmittals (
|
|||
`name` text NOT NULL,
|
||||
`comment` text NOT NULL,
|
||||
`userID` INTEGER NOT NULL default '0' REFERENCES `tblUsers` (`id`) ON DELETE CASCADE,
|
||||
`date` TEXT NOT NULL,
|
||||
`date` TEXT default NULL,
|
||||
`public` INTEGER NOT NULL default '0'
|
||||
);
|
||||
|
||||
|
@ -73,7 +73,7 @@ CREATE TABLE `tblTransmittalItems` (
|
|||
`transmittal` INTEGER NOT NULL DEFAULT '0' REFERENCES `tblTransmittals` (`id`) ON DELETE CASCADE,
|
||||
`document` INTEGER default NULL REFERENCES `tblDocuments` (`id`) ON DELETE CASCADE,
|
||||
`version` INTEGER unsigned NOT NULL default '0',
|
||||
`date` TEXT NOT NULL,
|
||||
`date` TEXT default NULL,
|
||||
UNIQUE (transmittal, document, version)
|
||||
);
|
||||
|
||||
|
|
|
@ -91,7 +91,7 @@ CREATE TABLE `tblTransmittals` (
|
|||
`name` text NOT NULL,
|
||||
`comment` text NOT NULL,
|
||||
`userID` int(11) NOT NULL default '0',
|
||||
`date` datetime NOT NULL,
|
||||
`date` datetime default NULL,
|
||||
`public` tinyint(1) NOT NULL default '0',
|
||||
PRIMARY KEY (`id`),
|
||||
CONSTRAINT `tblTransmittals_user` FOREIGN KEY (`userID`) REFERENCES `tblUsers` (`id`) ON DELETE CASCADE
|
||||
|
@ -102,7 +102,7 @@ CREATE TABLE `tblTransmittalItems` (
|
|||
`transmittal` int(11) NOT NULL DEFAULT '0',
|
||||
`document` int(11) default NULL,
|
||||
`version` smallint(5) unsigned NOT NULL default '0',
|
||||
`date` datetime NOT NULL,
|
||||
`date` datetime default NULL,
|
||||
PRIMARY KEY (`id`),
|
||||
UNIQUE (transmittal, document, version),
|
||||
CONSTRAINT `tblTransmittalItems_document` FOREIGN KEY (`document`) REFERENCES `tblDocuments` (`id`) ON DELETE CASCADE,
|
||||
|
|
Loading…
Reference in New Issue
Block a user