You've already forked pocketbase
mirror of
https://github.com/pocketbase/pocketbase.git
synced 2025-11-24 15:14:30 +02:00
added support for specifying collection id with the factory and added collections indexes validator to prevent duplicated definitions
This commit is contained in:
@@ -800,7 +800,7 @@ func TestCollectionCreate(t *testing.T) {
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
demo1.AddIndex("exist_test", false, "created", "")
|
||||
demo1.AddIndex("exist_test", false, "updated", "")
|
||||
if err = app.Save(demo1); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
@@ -1268,7 +1268,7 @@ func TestCollectionUpdate(t *testing.T) {
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
demo1.AddIndex("exist_test", false, "created", "")
|
||||
demo1.AddIndex("exist_test", false, "updated", "")
|
||||
if err = app.Save(demo1); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user