17 lines
415 B
JavaScript
17 lines
415 B
JavaScript
/// <reference path="../pb_data/types.d.ts" />
|
|
migrate((db) => {
|
|
const dao = new Dao(db)
|
|
const collection = dao.findCollectionByNameOrId("zfbbb4gbdk9dh6k")
|
|
|
|
collection.updateRule = ""
|
|
|
|
return dao.saveCollection(collection)
|
|
}, (db) => {
|
|
const dao = new Dao(db)
|
|
const collection = dao.findCollectionByNameOrId("zfbbb4gbdk9dh6k")
|
|
|
|
collection.updateRule = null
|
|
|
|
return dao.saveCollection(collection)
|
|
})
|