mirror of
https://github.com/ent/ent.git
synced 2026-05-24 09:31:56 +03:00
ent/field: add update_default option time field
Reviewed By: alexsn Differential Revision: D17070907 fbshipit-source-id: 63c9ce75c58e524044c38f9461cb04e8e45c8017
This commit is contained in:
committed by
Facebook Github Bot
parent
bd07c86b60
commit
772b8a33f8
@@ -40,10 +40,10 @@ var (
|
||||
fields = schema.User{}.Fields()
|
||||
// descBuffer is the schema descriptor for buffer field.
|
||||
descBuffer = fields[3].Descriptor()
|
||||
// DefaultBuffer holds the default value for the buffer field.
|
||||
// DefaultBuffer holds the default value on creation for the buffer field.
|
||||
DefaultBuffer = descBuffer.Default.([]byte)
|
||||
// descTitle is the schema descriptor for title field.
|
||||
descTitle = fields[4].Descriptor()
|
||||
// DefaultTitle holds the default value for the title field.
|
||||
// DefaultTitle holds the default value on creation for the title field.
|
||||
DefaultTitle = descTitle.Default.(string)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user