Merge branch 'seeddms-4.3.x' into seeddms-5.0.x

This commit is contained in:
Uwe Steinmann 2016-08-08 20:29:27 +02:00
commit 7f7bb2926d
7 changed files with 12 additions and 11 deletions

View File

@ -49,6 +49,7 @@
fixes #239)
- make UserView look similar to UserList
- log correct ip even after a reverse proxy (Closes #206)
- fix sql error in table creation if sql mode is set to STRICT_TRANS_TABLE
--------------------------------------------------------------------------------
Changes in version 4.3.27

View File

@ -48,7 +48,7 @@ class SeedDMS_PasswordHistoryManager {
function add($user, $pwd) { /* {{{ */
$queryStr = "INSERT INTO tblUserPasswordHistory (userID, pwd, `date`) ".
"VALUES (".$this->db->qstr($user->getId()).", ".$this->db->qstr($pwd).", CURRENT_TIMESTAMP)";
"VALUES (".$this->db->qstr($user->getId()).", ".$this->db->qstr($pwd).", ".$this->db->getCurrentDatetime().")";
if (!$this->db->getResult($queryStr)) {
return false;
}

View File

@ -493,9 +493,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

@ -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`)
) ;
@ -428,9 +428,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
) ;
-- --------------------------------------------------------

View File

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

View File

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

View File

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