mirror of
https://git.code.sf.net/p/seeddms/code
synced 2024-11-26 07:22:11 +00:00
do not set TEXT field to default ''. Use NULL instead
mysql STRICT_TRANS_MODE does not allow it
This commit is contained in:
parent
284ee2bba1
commit
5f1d38bba3
|
@ -37,7 +37,7 @@ CREATE TABLE `tblAttributeDefinitions` (
|
|||
`minvalues` INTEGER NOT NULL default '0',
|
||||
`maxvalues` INTEGER NOT NULL default '0',
|
||||
`valueset` TEXT default NULL,
|
||||
`regex` TEXT DEFAULT '',
|
||||
`regex` TEXT DEFAULT NULL,
|
||||
UNIQUE(`name`)
|
||||
) ;
|
||||
|
||||
|
|
|
@ -12,7 +12,7 @@ ALTER TABLE tblDocumentContent ADD COLUMN `checksum` char(32);
|
|||
|
||||
ALTER TABLE tblUsers ADD COLUMN `quota` bigint;
|
||||
|
||||
ALTER TABLE tblSessions ADD COLUMN `clipboard` text DEFAULT '';
|
||||
ALTER TABLE tblSessions ADD COLUMN `clipboard` text DEFAULT NULL;
|
||||
|
||||
CREATE TABLE tblWorkflowStates (
|
||||
`id` int(11) NOT NULL auto_increment,
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
BEGIN;
|
||||
|
||||
ALTER TABLE tblSessions ADD COLUMN `splashmsg` TEXT DEFAULT '';
|
||||
ALTER TABLE tblSessions ADD COLUMN `splashmsg` TEXT DEFAULT NULL;
|
||||
|
||||
ALTER TABLE tblAttributeDefinitions ADD COLUMN `regex` TEXT DEFAULT '';
|
||||
ALTER TABLE tblAttributeDefinitions ADD COLUMN `regex` TEXT DEFAULT NULL;
|
||||
|
||||
UPDATE tblVersion set major=4, minor=3, subminor=0;
|
||||
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
START TRANSACTION;
|
||||
|
||||
ALTER TABLE tblSessions ADD COLUMN `splashmsg` TEXT DEFAULT '';
|
||||
ALTER TABLE tblSessions ADD COLUMN `splashmsg` TEXT DEFAULT NULL;
|
||||
|
||||
ALTER TABLE tblAttributeDefinitions ADD COLUMN `regex` TEXT DEFAULT '';
|
||||
ALTER TABLE tblAttributeDefinitions ADD COLUMN `regex` TEXT DEFAULT NULL;
|
||||
|
||||
UPDATE tblVersion set major=4, minor=3, subminor=0;
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user