Closed (fixed)
Project:
Drupal core
Version:
6.x-dev
Component:
database system
Priority:
Critical
Category:
Bug report
Assigned:
Reporter:
Created:
9 Aug 2007 at 03:54 UTC
Updated:
26 Sep 2007 at 05:13 UTC
similar as case in http://drupal.org/node/165766: we are specifying a unique key with field "name", where "name" is allow null. i have check profile.module INSERT and UPDATE handling, and found that we already have unique checking during form submit. we will only need to update its schema.
P.S. it is check with both MySQL and DB2, and all passed :)
| Comment | File | Size | Author |
|---|---|---|---|
| drupal-6.x-dev-profile.schema-0.1.diff | 941 bytes | hswong3i |
Comments
Comment #1
gábor hojtsyThanks, committed!
Comment #2
(not verified) commentedComment #3
bjaspan commentedThis patch introduces a core schema discrepancy.
profile_schema declares () profile_fields.name to have default '' but profile.install:1.1 (D5's version) created the column as "default NULL" (i.e. no default, but nullable). As a result, after updating D5 to D6, there is a mismatch. Which is right? I think "no default, not null" is semantically correct as you cannot have a profile field without a name, but I'm not certain.
Comment #4
bjaspan commentedThis is fixed by my patch in http://drupal.org/node/173982.
Comment #5
hswong3i commented@bjaspan: sorry for introducing this inconsistence, and thank you for your kindly help :)
Comment #6
(not verified) commented