feat: add curriculum management admin dashboard with AI generation and draft approval workflows
This commit is contained in:
21
pb_migrations/1780700000_sources_progress.js
Normal file
21
pb_migrations/1780700000_sources_progress.js
Normal file
@@ -0,0 +1,21 @@
|
||||
/// <reference path="../pb_data/types.d.ts" />
|
||||
migrate((app) => {
|
||||
const sources = app.findCollectionByNameOrId("sources");
|
||||
|
||||
sources.fields.add(new Field({
|
||||
"hidden": false,
|
||||
"id": "json_progress",
|
||||
"maxSize": 0,
|
||||
"name": "progress",
|
||||
"presentable": false,
|
||||
"required": false,
|
||||
"system": false,
|
||||
"type": "json"
|
||||
}));
|
||||
|
||||
app.save(sources);
|
||||
}, (app) => {
|
||||
const sources = app.findCollectionByNameOrId("sources");
|
||||
sources.fields.removeById("json_progress");
|
||||
app.save(sources);
|
||||
});
|
||||
Reference in New Issue
Block a user