silvester-23/pb_migrations/1699804056_updated_invites.js

17 lines
415 B
JavaScript
Raw Permalink Normal View History

2023-11-12 17:33:15 +01:00
/// <reference path="../pb_data/types.d.ts" />
migrate((db) => {
const dao = new Dao(db)
const collection = dao.findCollectionByNameOrId("zfbbb4gbdk9dh6k")
collection.createRule = ""
return dao.saveCollection(collection)
}, (db) => {
const dao = new Dao(db)
const collection = dao.findCollectionByNameOrId("zfbbb4gbdk9dh6k")
collection.createRule = null
return dao.saveCollection(collection)
})