[PIE-8] Add recipe detail view #6
28
api/pb_migrations/1755039357_updated_steps.js
Normal file
28
api/pb_migrations/1755039357_updated_steps.js
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
/// <reference path="../pb_data/types.d.ts" />
|
||||||
|
migrate((app) => {
|
||||||
|
const collection = app.findCollectionByNameOrId("pbc_4284789913")
|
||||||
|
|
||||||
|
// remove field
|
||||||
|
collection.fields.removeById("relation3666391351")
|
||||||
|
|
||||||
|
return app.save(collection)
|
||||||
|
}, (app) => {
|
||||||
|
const collection = app.findCollectionByNameOrId("pbc_4284789913")
|
||||||
|
|
||||||
|
// add field
|
||||||
|
collection.fields.addAt(3, new Field({
|
||||||
|
"cascadeDelete": false,
|
||||||
|
"collectionId": "pbc_842702175",
|
||||||
|
"hidden": false,
|
||||||
|
"id": "relation3666391351",
|
||||||
|
"maxSelect": 1,
|
||||||
|
"minSelect": 0,
|
||||||
|
"name": "recipe",
|
||||||
|
"presentable": false,
|
||||||
|
"required": false,
|
||||||
|
"system": false,
|
||||||
|
"type": "relation"
|
||||||
|
}))
|
||||||
|
|
||||||
|
return app.save(collection)
|
||||||
|
})
|
Loading…
x
Reference in New Issue
Block a user