Migration to V5.4 : missing columns `created_at` and `updated_at`
I migrate Rosario from a previous version 5.0.4 to version 5.4, and I see that the tables didn't have the columns created_at
and updated_at
. (I do a comparaison with an empty database created with InstallDatabase.php).
Apache 2.4
PHP 7.2
PostgreSQL 10.1
https://gitlab.com/francoisjacquet/rosariosis/blob/mobile/ProgramFunctions/Update.fnc.php#L1471
$sql_add_created_updated_at_columns = '';
foreach ( $tables as $table )
{
$add_created_updated_at_columns( $table );
}
if ( $sql_add_created_updated_at_columns )
{
DBQuery( $sql_add_created_updated_at_columns );
}
$add_created_updated_at_columns is a reference on a function that returns a string. But the return string is lost, and the variable $sql_add_created_updated_at_columns is never updated!!!!