[#42] migrate profiles with last_access NOW()

This commit is contained in:
B. Endres 2022-05-13 10:15:28 +02:00
parent c96abd8407
commit c52dc77532

View file

@ -74,7 +74,7 @@ class CRM_Twingle_Upgrader extends CRM_Twingle_Upgrader_Base {
$profile = new CRM_Twingle_Profile($profile_name, $profile_data);
$data = json_encode($profile->getData());
CRM_Core_DAO::executeQuery(
"INSERT IGNORE INTO civicrm_twingle_profile(name,config,last_access,access_counter) VALUES (%1, %2, null, 0)",
"INSERT IGNORE INTO civicrm_twingle_profile(name,config,last_access,access_counter) VALUES (%1, %2, NOW(), 0)",
[
1 => [$profile_name, 'String'],
2 => [$data, 'String']