Exceptions thrown when upgrading from 3.0.2 to 3.0.3

Created on 13 December 2024, 3 months ago

Problem/Motivation

As part of efforts to update the module from 3.0.2 to 3.0.3, I ran the module updates, which resulted in errors:

In ExceptionHandler.php line 53:
 SQLSTATE[42S22]: Column not found: 1054 Unknown column 'created' in 'field
 list': INSERT INTO "config_log" ("uid", "operation", "name", "created") VAL
 UES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeho
 lder_2, :db_insert_placeholder_3); Array
 (
 [:db_insert_placeholder_0] => 1
 [:db_insert_placeholder_1] => delete
 [:db_insert_placeholder_2] => system.logging
 [:db_insert_placeholder_3] => 1734123697
 )
In StatementWrapper.php line 145:
 SQLSTATE[42S22]: Column not found: 1054 Unknown column 'created' in 'field
 list'
πŸ› Bug report
Status

Active

Version

3.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States ebeyrent

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

Comments & Activities

  • Issue created by @ebeyrent
  • πŸ‡­πŸ‡ΊHungary nagy.balint

    Hi!

    Did the update hook cause that error (update.php or drush updb)?

  • πŸ‡ΊπŸ‡ΈUnited States ebeyrent

    I encountered this using "drush updb"

  • πŸ‡­πŸ‡ΊHungary nagy.balint

    It seems that the config_log module is trying to log a config change in the config_log table while the drush updb was running, so before the schema modifications could take place.

    admin/config/development/config_log
    If the "Custom table ("config_log")" option is disabled then likely it won't attempt to insert into the table, and then the update hook can run.

  • πŸ‡ΊπŸ‡ΈUnited States ebeyrent

    Ah, so the update hook needs to change that config setting before trying to make changes to the schema, and then set the config back when done.

Production build 0.71.5 2024