Situation
Applying the latest patch and getting the SQL error when running the sql_patch.php
OpenEMR Version
I’m using OpenEMR version v6.0.0 (3)
Browser:
I’m using: Chrome/latest. Same on firefox.
Operating System
I’m using: Server is CentOS7 with MariaDB server 5.5.68
Logs
Query Error
ERROR: query failed: CREATE TABLE
document_templates(idbigint(21) UNSIGNED NOT NULL,pidbigint(20) DEFAULT NULL,providerint(11) UNSIGNED DEFAULT NULL,encounterint(11) UNSIGNED DEFAULT NULL,modified_datedatetime NOT NULL DEFAULT current_timestamp(),profilevarchar(31) DEFAULT NULL,categoryvarchar(63) DEFAULT NULL,locationvarchar(255) DEFAULT NULL,template_namevarchar(255) DEFAULT NULL,statusvarchar(31) DEFAULT NULL,exclude_portaltinyint(1) NOT NULL DEFAULT 0,exclude_dashboardtinyint(1) UNSIGNED NOT NULL DEFAULT 0,sizeint(11) NOT NULL DEFAULT 0,template_contentmediumblob DEFAULT NULL,mimevarchar(31) DEFAULT NULL, PRIMARY KEY (id), UNIQUE KEYlocation(pid,category,template_name,status)) ENGINE=InnoDBError: Invalid default value for ‘modified_date’
/var/www/library/sql_upgrade_fx.php at 1175:sqlStatement
/var/www/sql_patch.php at 53:upgradeFromSqlFile(patch.sql)