20240910:1309
This commit is contained in:
1 parent
7695e03a33
commit
4632a01e61
3 files changed
+16
No files matched your search
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,16 @@
|
||||
/// <reference path="../pb_data/types.d.ts" />
|
||||
migrate((db) => {
|
||||
const dao = new Dao(db)
|
||||
const collection = dao.findCollectionByNameOrId("0f66m7amfl25mue")
|
||||
|
||||
collection.createRule = "field = @request.auth.id"
|
||||
|
||||
return dao.saveCollection(collection)
|
||||
}, (db) => {
|
||||
const dao = new Dao(db)
|
||||
const collection = dao.findCollectionByNameOrId("0f66m7amfl25mue")
|
||||
|
||||
collection.createRule = null
|
||||
|
||||
return dao.saveCollection(collection)
|
||||
})
|
||||
Reference in new issue
Block a user