migrations: добавить site_stats и поля в posts, удалить старые коллекции

This commit is contained in:
Web-serfer 2026-05-07 16:56:12 +05:00
parent e7700a3391
commit 79db7c8563
5 changed files with 381 additions and 0 deletions

View file

@ -0,0 +1,20 @@
/// <reference path="../pb_data/types.d.ts" />
migrate((app) => {
const collection = app.findCollectionByNameOrId("pbc_1840088895")
// update collection data
unmarshal({
"updateRule": ""
}, collection)
return app.save(collection)
}, (app) => {
const collection = app.findCollectionByNameOrId("pbc_1840088895")
// update collection data
unmarshal({
"updateRule": null
}, collection)
return app.save(collection)
})