set same date fields to default null

This commit is contained in:
Uwe Steinmann 2016-09-16 12:48:20 +02:00
parent 10f01c0fc6
commit 5c558601c7
4 changed files with 8 additions and 8 deletions

View File

@ -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,

View File

@ -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)
);

View File

@ -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)
);

View File

@ -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,