forked from GNUsocial/gnu-social
[DATABASE] Update "modified" in Managed_DataObject instead of a DBMS trigger
Instead of relying on the MariaDB's ON UPDATE CURRENT_TIMESTAMP trigger update "modified" attributes in Managed_DataObject. Every raw query that needs adjusting is adjusted, as they won't update "modified" automatically anymore. The main goal behind this change is to fix "modified" updates on PostgreSQL.
This commit is contained in:
@@ -1043,7 +1043,6 @@ class Schema
|
||||
$col['type'] = 'datetime';
|
||||
if (!array_key_exists('default', $col)) {
|
||||
$col['default'] = 'CURRENT_TIMESTAMP';
|
||||
// FIXME: PostgreSQL support.
|
||||
$col['auto_update_timestamp'] = true;
|
||||
}
|
||||
// no break
|
||||
|
Reference in New Issue
Block a user