Error on install: The 'user_session_id' field specification does not define 'not null' as TRUE

Created on 31 May 2024, 7 months ago
Updated 4 July 2024, 6 months ago

Problem/Motivation

Upon installation, I'm getting the following error:

In Schema.php line 701:
The 'user_session_id' field specification does not define 'not null' as TRUE.

Still on Drupal 9.5.11 + MySQL version 5.7 + PHP 8.1, for what it's worth.

Steps to reproduce

Install scorm_field module.

Proposed resolution

Check if https://www.drupal.org/project/drupal/issues/2841291 is related.

Setting "user_session_id" property to 'not null' => TRUE, in scorm_field_install fixes it for me locally. Not sure if that's desired behaviour.

Remaining tasks

Investigate if changing 'not null' from FALSE to TRUE is ok or not, or find another solution.

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇧🇪Belgium svendecabooter Gent

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024