Создана кнопка выхода из системы

This commit is contained in:
Web-serfer 2026-04-15 19:04:27 +05:00
parent 229826acc3
commit 261d5db2d7
13 changed files with 1244 additions and 12 deletions

View file

@ -0,0 +1,29 @@
/// <reference path="../pb_data/types.d.ts" />
migrate((app) => {
const collection = app.findCollectionByNameOrId("_pb_users_auth_")
// add field
collection.fields.addAt(10, new Field({
"autogeneratePattern": "",
"hidden": false,
"id": "text2434144904",
"max": 0,
"min": 0,
"name": "lastName",
"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("text2434144904")
return app.save(collection)
})