Files
wanderer/db/pb_migrations/1706558119_updated_waypoints.js
2024-01-29 21:30:54 +01:00

19 lines
475 B
JavaScript

/// <reference path="../pb_data/types.d.ts" />
migrate((db) => {
const dao = new Dao(db)
const collection = dao.findCollectionByNameOrId("goeo2ubp103rzp9")
collection.updateRule = ""
collection.deleteRule = ""
return dao.saveCollection(collection)
}, (db) => {
const dao = new Dao(db)
const collection = dao.findCollectionByNameOrId("goeo2ubp103rzp9")
collection.updateRule = null
collection.deleteRule = null
return dao.saveCollection(collection)
})