Results 1 to 2 of 2

Thread: unique field

  1. #1
    Join Date
    Mar 2011
    Posts
    8

    Default unique field

    Hi,
    I have created field username with the command:
    field string --fieldName username --column username --notNull --unique

    but I am able to register with the same username, why is that?

  2. #2
    Join Date
    Dec 2007
    Location
    Stockholm, Sweden
    Posts
    190

    Default

    can you try the following

    Code:
    field string --fieldName username --unique true --notNull
    Also check http://hatimonline.com/2010/08/04/sp...ty-tutorial-0/ for validator for unique.

    (me beating my self to actually work on this tutorial series one of these days)
    Shahzada Hatim
    @geoaxis/twitter
    http://hatimonline.com

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •