Download & Extend

PK Field Should Also Be Declared Not Null

Project:Webform
Version:6.x-2.3
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

Table webform_submitted_data includes column sid in its PK list, but does not also specify it as NOT NULL which it implicitly is anyway. This yields a comparison error in the schema module. The attached patch corrects this.

AttachmentSize
webform.install-PK_NotNull.patch409 bytes

Comments

#1

Status:needs review» fixed

It looks like the SID is set to NOT NULL anyway since it's part of the primary key, so fortunately our database schema is actually correct. Thanks for this patch! Committed.

#2

Status:fixed» closed (fixed)

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

nobody click here