
generate from db creates invalid not_null format
Reported by Francis | November 12th, 2008 @ 04:58 PM
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
Comments and changes to this ticket
-
joel (at developwithstyle) November 12th, 2008 @ 05:19 PM
- 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
-
joel (at developwithstyle) November 12th, 2008 @ 05:20 PM
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
-
joel (at developwithstyle) November 12th, 2008 @ 05:37 PM
- Title changed from Null's not being honored to generate from db creates invalid not_null format
- State changed from invalid to accepted
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.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป