set field of type 'text' to NULL instead of ''

mysql doesn't support setting '' in STRICT_TRANS_MODE
This commit is contained in:
Uwe Steinmann 2016-08-08 08:03:38 +02:00
parent 3a006be5bf
commit 284ee2bba1
2 changed files with 4 additions and 4 deletions

View File

@ -490,9 +490,9 @@ CREATE TABLE `tblSessions` (
`lastAccess` int(11) NOT NULL default '0',
`theme` varchar(30) NOT NULL default '',
`language` varchar(30) NOT NULL default '',
`clipboard` text default '',
`clipboard` text default NULL,
`su` INTEGER DEFAULT NULL,
`splashmsg` text default '',
`splashmsg` text default NULL,
PRIMARY KEY (`id`),
CONSTRAINT `tblSessions_user` FOREIGN KEY (`userID`) REFERENCES `tblUsers` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

View File

@ -427,9 +427,9 @@ CREATE TABLE `tblSessions` (
`lastAccess` INTEGER NOT NULL default '0',
`theme` varchar(30) NOT NULL default '',
`language` varchar(30) NOT NULL default '',
`clipboard` text default '',
`clipboard` text default NULL,
`su` INTEGER DEFAULT NULL,
`splashmsg` text default ''
`splashmsg` text default NULL
) ;
-- --------------------------------------------------------