Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

generate from db creates invalid not_null format

#1

When specifying not_null: as a parameter for a field the created field is still null...

---
UP: 
  create_table: 
    users: 
      name: 
        type: string
        length: 255
        not_null: 
      email: 
        type: string
        length: 255
        not_null: 
      salt: 
        type: string
        length: 255
        not_null: 
      hash: 
        type: string
        length: 255
        not_null: 
DOWN: 
  drop_table: users

Reported by Francis · November 12th, 2008 @ 04:58 PM

State: accepted
Milestone: none

Activity

  1. joel (at developwithstyle)
    joel (at developwithstyle)
    • State changed from new to invalid

    Try this instead...

    
    ---
    UP:
      create_table:
        users:
          name: notnull
          email: notnull
          salt: notnull
          hash: notnull
    DOWN:
      drop_table: users
    

    November 12th, 2008 @ 05:19 PM

  2. joel (at developwithstyle)
    joel (at developwithstyle)

    To add an index to 'name', do this:

    
    ---
    UP:
      create_table:
        users:
          name: [notnull, index]
          email: notnull
          salt: notnull
          hash: notnull
    DOWN:
      drop_table: users
    

    November 12th, 2008 @ 05:20 PM

  3. joel (at developwithstyle)
    joel (at developwithstyle)
    • Title changed from Null's not being honored to generate from db creates invalid not_null format
    • State changed from invalid to accepted

    November 12th, 2008 @ 05:37 PM

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.