17 lines
461 B
JavaScript
17 lines
461 B
JavaScript
|
|
/// <reference path="../pb_data/types.d.ts" />
|
||
|
|
migrate((db) => {
|
||
|
|
const dao = new Dao(db)
|
||
|
|
const collection = dao.findCollectionByNameOrId("es63bkyiblpnxdf")
|
||
|
|
|
||
|
|
collection.updateRule = "@request.auth.id != \"\""
|
||
|
|
|
||
|
|
return dao.saveCollection(collection)
|
||
|
|
}, (db) => {
|
||
|
|
const dao = new Dao(db)
|
||
|
|
const collection = dao.findCollectionByNameOrId("es63bkyiblpnxdf")
|
||
|
|
|
||
|
|
collection.updateRule = "owner = @request.auth.id"
|
||
|
|
|
||
|
|
return dao.saveCollection(collection)
|
||
|
|
})
|