first commit
This commit is contained in:
commit
0065c017e4
496 changed files with 54265 additions and 0 deletions
25
backend/pb_migrations/1766057419_updated_about_values.js
Normal file
25
backend/pb_migrations/1766057419_updated_about_values.js
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
/// <reference path="../pb_data/types.d.ts" />
|
||||
migrate((app) => {
|
||||
const collection = app.findCollectionByNameOrId("pbc_2125634568")
|
||||
|
||||
// add field
|
||||
collection.fields.addAt(2, new Field({
|
||||
"hidden": false,
|
||||
"id": "json3480750588",
|
||||
"maxSize": 0,
|
||||
"name": "values_items",
|
||||
"presentable": false,
|
||||
"required": false,
|
||||
"system": false,
|
||||
"type": "json"
|
||||
}))
|
||||
|
||||
return app.save(collection)
|
||||
}, (app) => {
|
||||
const collection = app.findCollectionByNameOrId("pbc_2125634568")
|
||||
|
||||
// remove field
|
||||
collection.fields.removeById("json3480750588")
|
||||
|
||||
return app.save(collection)
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue