Problem/Motivation

The module db schema should include not null as this can trigger an error:

 Syntax error or access violation: 1171 All parts of a PRIMARY KEY must be NOT NULL; if you need NULL in a key, use UNIQUE instead

(php7 + mysql 5.7)

Proposed resolution

Add the not null element to the schema. See attached patch.

CommentFileSizeAuthor
cer-patch-pid-in-schema.patch319 bytesharings_rob

Comments

harings_rob created an issue. See original summary.

harings_rob’s picture

Issue summary: View changes

Patch failed on php 7 due to other problems. Not related to this patch.

phenaproxima’s picture

Status: Needs review » Fixed

Good call. Fixed!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.