Files
gitlab-instance-0a899031_no…/pb_migrations/1760629025_updated_users.js
eric be7f773e79 s
2025-10-16 15:58:07 +00:00

30 lines
673 B
JavaScript

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