mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-10-09 12:27:52 +00:00
set timestamp() on field
This commit is contained in:
parent
ebb340d83e
commit
3f0745647b
1 changed files with 2 additions and 2 deletions
4
index.go
4
index.go
|
|
@ -584,7 +584,7 @@ func (i *Index) CreateField(name string, opts ...FieldOption) (*Field, error) {
|
|||
cfm := &CreateFieldMessage{
|
||||
Index: i.name,
|
||||
Field: name,
|
||||
CreatedAt: 0,
|
||||
CreatedAt: timestamp(),
|
||||
Meta: fo,
|
||||
}
|
||||
|
||||
|
|
@ -683,7 +683,7 @@ func (i *Index) CreateFieldIfNotExistsWithOptions(name string, opt *FieldOptions
|
|||
cfm := &CreateFieldMessage{
|
||||
Index: i.name,
|
||||
Field: name,
|
||||
CreatedAt: 0,
|
||||
CreatedAt: timestamp(),
|
||||
Meta: opt,
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue