Новые правки в компоенты
This commit is contained in:
parent
36a3d37ad3
commit
815986969a
19 changed files with 1703 additions and 143 deletions
30
backend/pb_migrations/1776528770_updated_reviews.js
Normal file
30
backend/pb_migrations/1776528770_updated_reviews.js
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
/// <reference path="../pb_data/types.d.ts" />
|
||||
migrate((app) => {
|
||||
const collection = app.findCollectionByNameOrId("pbc_4163081445")
|
||||
|
||||
// add field
|
||||
collection.fields.addAt(6, new Field({
|
||||
"hidden": false,
|
||||
"id": "select2063623452",
|
||||
"maxSelect": 1,
|
||||
"name": "status",
|
||||
"presentable": false,
|
||||
"required": false,
|
||||
"system": false,
|
||||
"type": "select",
|
||||
"values": [
|
||||
"pending",
|
||||
"published",
|
||||
"spam"
|
||||
]
|
||||
}))
|
||||
|
||||
return app.save(collection)
|
||||
}, (app) => {
|
||||
const collection = app.findCollectionByNameOrId("pbc_4163081445")
|
||||
|
||||
// remove field
|
||||
collection.fields.removeById("select2063623452")
|
||||
|
||||
return app.save(collection)
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue