Files
learning-platform/pb_migrations/1780000001_updated_topics.js
RaymondVerhoef d23b0b6b16
All checks were successful
On Push to Main / test (push) Successful in 30s
On Push to Main / publish (push) Successful in 58s
On Push to Main / deploy-dev (push) Successful in 1m39s
feat: add learning_relevance field to topics and implement KnowledgeGraph UI with handbook synchronization capabilities
2026-05-19 08:40:52 +02:00

31 lines
721 B
JavaScript

/// <reference path="../pb_data/types.d.ts" />
migrate((app) => {
const collection = app.findCollectionByNameOrId("pbc_2800040823")
// add field
collection.fields.addAt(4, new Field({
"autogeneratePattern": "",
"help": "",
"hidden": false,
"id": "text_learning_relevance",
"max": 0,
"min": 0,
"name": "learning_relevance",
"pattern": "",
"presentable": false,
"primaryKey": false,
"required": false,
"system": false,
"type": "text"
}))
return app.save(collection)
}, (app) => {
const collection = app.findCollectionByNameOrId("pbc_2800040823")
// remove field
collection.fields.removeById("text_learning_relevance")
return app.save(collection)
})