diff --git a/core/components/com_newsletter/migrations/Migration20231222155500CreateHashStoredProc.php b/core/components/com_newsletter/migrations/Migration20231222155500CreateHashStoredProc.php index 47770c14fe..e561de113c 100644 --- a/core/components/com_newsletter/migrations/Migration20231222155500CreateHashStoredProc.php +++ b/core/components/com_newsletter/migrations/Migration20231222155500CreateHashStoredProc.php @@ -20,6 +20,8 @@ public function up() $createSP = "CREATE FUNCTION hash_access_code (campaign_id INT(11), user_name VARCHAR(150)) ". "RETURNS CHAR(64) ". + "DETERMINISTIC ". + "READS SQL DATA ". "BEGIN ". " SET @cs = (SELECT secret FROM `$campaign` WHERE id=campaign_id); ". " SET @hs = (SELECT `value` FROM `$config` WHERE `key`='secret' AND `scope`='hub'); ".