20240910:1309

This commit is contained in:
2024-09-10 13:09:09 +02:00
parent 7695e03a33
commit 4632a01e61
3 changed files with 16 additions and 0 deletions

Binary file not shown.

Binary file not shown.

View File

@@ -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)
})