diff --git a/core/model/schema/modx.mysql.schema.xml b/core/model/schema/modx.mysql.schema.xml index aa7ef1032bf..613f5218ef8 100644 --- a/core/model/schema/modx.mysql.schema.xml +++ b/core/model/schema/modx.mysql.schema.xml @@ -646,7 +646,7 @@ - + diff --git a/core/src/Revolution/mysql/modManagerLog.php b/core/src/Revolution/mysql/modManagerLog.php index 7020239c56a..d65c3663fb7 100644 --- a/core/src/Revolution/mysql/modManagerLog.php +++ b/core/src/Revolution/mysql/modManagerLog.php @@ -18,7 +18,7 @@ class modManagerLog extends \MODX\Revolution\modManagerLog 'fields' => array ( 'user' => 0, - 'occurred' => NULL, + 'occurred' => 'CURRENT_TIMESTAMP', 'action' => '', 'classKey' => '', 'item' => '0', @@ -38,8 +38,8 @@ class modManagerLog extends \MODX\Revolution\modManagerLog array ( 'dbtype' => 'datetime', 'phptype' => 'datetime', - 'null' => true, - 'default' => NULL, + 'null' => false, + 'default' => 'CURRENT_TIMESTAMP', ), 'action' => array ( diff --git a/setup/includes/upgrades/common/3.0.5-db-changes.php b/setup/includes/upgrades/common/3.0.5-db-changes.php new file mode 100644 index 00000000000..8cd088417ce --- /dev/null +++ b/setup/includes/upgrades/common/3.0.5-db-changes.php @@ -0,0 +1,12 @@ +getManager(); + +$manager->alterField(\MODX\Revolution\modManagerLog::class, 'occurred'); diff --git a/setup/includes/upgrades/mysql/3.0.5-pl.php b/setup/includes/upgrades/mysql/3.0.5-pl.php new file mode 100644 index 00000000000..e038042b58d --- /dev/null +++ b/setup/includes/upgrades/mysql/3.0.5-pl.php @@ -0,0 +1,11 @@ +