From c52dc775322c47c3ca5df99de5f17748cff9018b Mon Sep 17 00:00:00 2001 From: "B. Endres" Date: Fri, 13 May 2022 10:15:28 +0200 Subject: [PATCH] [#42] migrate profiles with last_access NOW() --- CRM/Twingle/Upgrader.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Twingle/Upgrader.php b/CRM/Twingle/Upgrader.php index 39c4c48..9b3af0c 100644 --- a/CRM/Twingle/Upgrader.php +++ b/CRM/Twingle/Upgrader.php @@ -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']