Новые изменения в проекте
This commit is contained in:
parent
ecb720f751
commit
ddc0a26635
13 changed files with 950 additions and 48 deletions
20
backend/pb_migrations/1776691990_updated_reviews.js
Normal file
20
backend/pb_migrations/1776691990_updated_reviews.js
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
/// <reference path="../pb_data/types.d.ts" />
|
||||
migrate((app) => {
|
||||
const collection = app.findCollectionByNameOrId("pbc_4163081445")
|
||||
|
||||
// update collection data
|
||||
unmarshal({
|
||||
"updateRule": "user = @request.auth.id || @request.auth.id = \"admin_id\""
|
||||
}, collection)
|
||||
|
||||
return app.save(collection)
|
||||
}, (app) => {
|
||||
const collection = app.findCollectionByNameOrId("pbc_4163081445")
|
||||
|
||||
// update collection data
|
||||
unmarshal({
|
||||
"updateRule": ""
|
||||
}, collection)
|
||||
|
||||
return app.save(collection)
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue