Error on install - schema error, DB table not created

Created on 22 January 2025, 9 days ago

Problem/Motivation

Got error:
The 'fid' field specification does not define 'not null' as TRUE.

when installing the module.

Steps to reproduce

Install the module - via admin UI or with drush.

Proposed resolution

Fix table schema definition in hook_schema().

Remaining tasks

-

User interface changes

-

API changes

-

Data model changes

duplicate_files table fields definitions:
- fid
- original_fid
add:
'unsigned' => TRUE,
'not null' => TRUE,

as for fid field in the file_managed table.

🐛 Bug report
Status

Active

Version

1.2

Component

Code

Created by

🇭🇺Hungary szato

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

Comments & Activities

Production build 0.71.5 2024