wip
This commit is contained in:
17
server/migrations/utils.go
Normal file
17
server/migrations/utils.go
Normal file
@@ -0,0 +1,17 @@
|
||||
package migrations
|
||||
|
||||
import "github.com/pocketbase/pocketbase/core"
|
||||
|
||||
func createdUpdatedFields() []core.Field {
|
||||
return []core.Field{
|
||||
&core.AutodateField{
|
||||
Name: "created",
|
||||
OnCreate: true,
|
||||
},
|
||||
&core.AutodateField{
|
||||
Name: "updated",
|
||||
OnCreate: true,
|
||||
OnUpdate: true,
|
||||
},
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user