Do not use drupal_write_record() within hook_update_N() functions

Created on 8 July 2024, 9 months ago
Updated 9 July 2024, 9 months ago

Problem/Motivation

Core function drupal_write_record has a description

Do not use drupal_write_record() within hook_update_N() functions, since the database schema cannot be relied upon when a user is running a series of updates. Instead, use db_insert() or db_update() to save the record.

πŸ› Bug report
Status

Active

Version

5.0

Component

Code - Quiz core

Created by

πŸ‡΅πŸ‡­Philippines ambot112

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024