Closed (fixed)
Project:
View reference
Version:
6.x-2.23
Component:
Code
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
12 Nov 2009 at 20:53 UTC
Updated:
28 Nov 2009 at 06:30 UTC
The schema module is complaining about this module's declared database schema:
viewreference.view_id is part of the primary key but is not specified to be 'not null'.
| Comment | File | Size | Author |
|---|---|---|---|
| viewreference-DRUPAL-6--2_view_vid_not_null.patch | 1.02 KB | dboulet |
Comments
Comment #1
danielb commentedYou are just reversing the work done in response to this issue: http://drupal.org/node/386268
I'm thinking we need a separate primary key or something different to solve both issues.
Comment #2
dboulet commentedThanks, I hadn't seen that other issue. Yes, it seems then that my patch won't do, and some other solution will have to be found.
Comment #3
danielb commentedIt seems to me that your patch, and this module's schema's original design is correct. It is CCK attempting to record a null value that is pointless, and there may be a spot elsewhere in viewreference's code that could be altered to prevent this?
Comment #4
danielb commentedI've readded 'not null' => TRUE, and put an 'if' test before the insert query, this will hopefully prevent it trying to write null values without creating any new problems.
It will appear in the next dev snapshot.