Re: [interchange] Allow usernick to be NULL

"Stefan Hornburg (Racke)" <[email protected]>
Newsgroups gmane.comp.web.interchange.users
Message-ID <[email protected]>
On 01/26/2017 05:20 PM, Josh Lavin wrote:
> Quoting Stefan Hornburg (Racke) ([email protected]):
>> On 01/25/2017 11:06 PM, Josh Lavin wrote:
>>> commit 997abee40cefd483caaa6805196657874572e5c7
>>> Author: Josh Lavin <[email protected]>
>>> Date:   Wed Jan 25 14:04:53 2017 -0800
>>>
>>>     Allow usernick to be NULL
>>>     
>>>     - will resolve issues with customer create from IC Admin
>>>     - however, usernick will then be NULL
>>>     - consider adding a usernick field to the customer creation form, or
>>>       else use of UserDB fallback_login
>>>
>>
>> Hello Josh,
>>
>> wouldn't it better to use a default value of '' instead of allowing NULL?
> 
> No, because the field has a UNIQUE constraint.
> 

Yeah, that's correct :-). What about fixing the admin form too :-)

Regards
           Racke

-- 
Ecommerce and Linux consulting + Perl and web application programming.
Debian and Sympa administration.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.