mirror of
https://github.com/walkxcode/dashboard-icons.git
synced 2025-10-26 21:19:04 +08:00
33 lines
732 B
JavaScript
33 lines
732 B
JavaScript
|
|
/// <reference path="../pb_data/types.d.ts" />
|
||
|
|
migrate((app) => {
|
||
|
|
const collection = app.findCollectionByNameOrId("_pb_users_auth_")
|
||
|
|
|
||
|
|
// update field
|
||
|
|
collection.fields.addAt(4, new Field({
|
||
|
|
"hidden": false,
|
||
|
|
"id": "bool2282622326",
|
||
|
|
"name": "admin",
|
||
|
|
"presentable": false,
|
||
|
|
"required": false,
|
||
|
|
"system": false,
|
||
|
|
"type": "bool"
|
||
|
|
}))
|
||
|
|
|
||
|
|
return app.save(collection)
|
||
|
|
}, (app) => {
|
||
|
|
const collection = app.findCollectionByNameOrId("_pb_users_auth_")
|
||
|
|
|
||
|
|
// update field
|
||
|
|
collection.fields.addAt(4, new Field({
|
||
|
|
"hidden": false,
|
||
|
|
"id": "bool2282622326",
|
||
|
|
"name": "admin",
|
||
|
|
"presentable": true,
|
||
|
|
"required": false,
|
||
|
|
"system": false,
|
||
|
|
"type": "bool"
|
||
|
|
}))
|
||
|
|
|
||
|
|
return app.save(collection)
|
||
|
|
})
|