migrations: добавить site_stats и поля в posts, удалить старые коллекции
This commit is contained in:
parent
e7700a3391
commit
79db7c8563
5 changed files with 381 additions and 0 deletions
20
backend/pb_migrations/1778153252_updated_site_stats.js
Normal file
20
backend/pb_migrations/1778153252_updated_site_stats.js
Normal 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)
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue