1
0
mirror of https://github.com/pocketbase/pocketbase.git synced 2025-01-08 09:14:37 +02:00

updated migration timestamp

This commit is contained in:
Gani Georgiev 2023-01-08 11:05:44 +02:00
parent 40830b6c43
commit 19ad827302

View File

@ -36,6 +36,10 @@ func init() {
var isMultiRelLiteral func(mainCollection *models.Collection, literal string) bool
isMultiRelLiteral = func(mainCollection *models.Collection, literal string) bool {
if strings.HasPrefix(literal, "@collection.") {
return true
}
if strings.HasPrefix(literal, `"`) ||
strings.HasPrefix(literal, `'`) ||
strings.HasPrefix(literal, "@request.method") ||
@ -44,10 +48,6 @@ func init() {
return false
}
if strings.HasPrefix(literal, "@collection.") {
return true
}
parts := strings.Split(literal, ".")
if len(parts) <= 1 {
return false